<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE rdf:RDF [
<!ENTITY % HTMLlat1 PUBLIC
 "-//W3C//ENTITIES Latin 1 for XHTML//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent">
]>
<rdf:RDF
 xmlns="http://purl.org/rss/1.0/"
 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 xmlns:dc="http://purl.org/dc/elements/1.1/"
 xmlns:content="http://purl.org/rss/1.0/modules/content/"
 xmlns:admin="http://webns.net/mvcb/"
>
<channel rdf:about="http://www.tuxx-home.at">
<title>Windows</title>
<link>http://www.tuxx-home.at/archives/cat_10/</link>
<description>News from the front</description>
<dc:language>en-us</dc:language>
<dc:creator>Alexander Griesser</dc:creator>
<dc:date>2010-01-20T11:47:55+01:00</dc:date>
<admin:generatorAgent rdf:resource="http://nanoblogger.sourceforge.net" />
<items>
<rdf:Seq>
<rdf:li rdf:resource="http://www.tuxx-home.at/archives/2010/01/20/T11_46_02/" />
<rdf:li rdf:resource="http://www.tuxx-home.at/archives/2010/01/16/T17_01_18/" />
<rdf:li rdf:resource="http://www.tuxx-home.at/archives/2009/12/14/T10_30_33/" />
<rdf:li rdf:resource="http://www.tuxx-home.at/archives/2009/03/11/T23_54_26/" />
<rdf:li rdf:resource="http://www.tuxx-home.at/archives/2009/03/11/T23_49_21/" />
<rdf:li rdf:resource="http://www.tuxx-home.at/archives/2008/03/06/T08_32_28/" />
<rdf:li rdf:resource="http://www.tuxx-home.at/archives/2006/01/12/T13_58_08/" />
</rdf:Seq>
</items>
</channel>
<item rdf:about="http://www.tuxx-home.at/archives/2010/01/20/T11_46_02/">
<link>http://www.tuxx-home.at/archives/2010/01/20/T11_46_02/</link>
<title>Windows 7 God Mode</title>
<dc:date>2010-01-20T11:46:02+01:00</dc:date>
<dc:creator>Alexander Griesser</dc:creator>
<dc:subject>Windows</dc:subject>
<description><![CDATA[Create a folder anywhere on your windows 7 installation and give it the name <b>GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}</b>, then open the folder. Might come in handy.]]></description>
</item>
<item rdf:about="http://www.tuxx-home.at/archives/2010/01/16/T17_01_18/">
<link>http://www.tuxx-home.at/archives/2010/01/16/T17_01_18/</link>
<title>Fixing registry permissions errors when starting services on Windows Vista</title>
<dc:date>2010-01-16T17:01:18+01:00</dc:date>
<dc:creator>Alexander Griesser</dc:creator>
<dc:subject>Windows</dc:subject>
<description><![CDATA[Today I got a notebook in my hands which failed to start several essential network services, like NLA, DHCP, ...<br />
The error message shown in the event log when trying to start the NLA service was:<br />
<pre>
The service "NLA (Network Location Awareness)" has stopped with the
following service specific error: 3221226008
</pre>
<br />
The system might also show the following error code:<br />
<pre>
1073741288
</pre>
<br />
The solution to this fix is pretty simple, it's a registry permissions problem. Although I do not know what actually caused this issue, the system internal user "SERVICE" (or "DIENST" in german) needs to be added to the services registry hive in CCS and assigned special permissions to read and create values as well as enumerate subkeys.<br />
To do this, start "regedit" and browse to the location of the failing service. For NLA, this is<br />
<pre>
HKLM\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters
</pre>
<br />
Right click this key and add the user "SERVICE" to the list of allowed users. Assign the following special permissions to it: <b>READ VALUE</b>, <b>CREATE SUBKEYS</b>, <b>ENUMERATE SUBKEYS</b>.<br />
That's all you need to do to fix this issue, start the service again then and repeat these steps for all other services too.<br />
<br />
I used sysinternals (err, Microsofts) Process Monitor with some filters to find out the failing registry key, I suggest you have that running in the background too, it makes finding out the failing keys pretty easy.
<br />
<br />
If you have a lot of registry permission errors or if something is seriously f*ked up, try to restore the registry permissions to their default values with the following command:<br />
<pre>
secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose /areas REGKEYS
</pre>
<br />
More information about this procedure can be found in <a class="external" href="http://support.microsoft.com/kb/313222">KB313222</a>.]]></description>
</item>
<item rdf:about="http://www.tuxx-home.at/archives/2009/12/14/T10_30_33/">
<link>http://www.tuxx-home.at/archives/2009/12/14/T10_30_33/</link>
<title>Captain, we need more storage space!</title>
<dc:date>2009-12-14T10:30:33+01:00</dc:date>
<dc:creator>Alexander Griesser</dc:creator>
<dc:subject>Windows</dc:subject>
<description><![CDATA[Running performance tests on Microsoft Cluster Servers is pretty funny sometimes, especially when you're about to do storage performance testing. Some of the tools (like SIO) require you to create a big file on a provisioned LUN which these tools will then use to run their writes and reads on. On unixoide operating systems, this is pretty easy to accomplish, thanks to &quot;dd&quot;, Windows doesn't have that out of the box as to my knowledge, so what I tried to do then is to zip compress one of the 5g dd files from one of my linux machines and copy it to the windows machine to extract it there. Oddly enough, the 5g zero-padded file was compressed to 5MB (zip sucks, _I_ would have compressed that much better). Anyhow, I copied the zip file to the windows server then and tried to extract it there. I ended up copying the 5g file without compressing it first.<br />
<br />
<img src="/images/petabyte.png" width="442" height="249" alt="We definitely need more space on our storage..." title="We definitely need more space on our storage..." class="border" />]]></description>
</item>
<item rdf:about="http://www.tuxx-home.at/archives/2009/03/11/T23_54_26/">
<link>http://www.tuxx-home.at/archives/2009/03/11/T23_54_26/</link>
<title>Modifying Crystal Report (.rpt) files</title>
<dc:date>2009-03-11T23:54:26+01:00</dc:date>
<dc:creator>Alexander Griesser</dc:creator>
<dc:subject>Windows</dc:subject>
<description><![CDATA[Today I was in the need to modify some text passages in a predefined crystal report file (.rpt) used by a very old application which is still an essential tool for the customer.<br />
<br />
Of course, things like cellphone numbers, etc. change over years and that's where the need arose to change some things in the heading of the printouts of this application.<br />
After googling a lot, I found a finally working application to modify these reoprts (the latest version of crystal report viewer didn't support these specific rpt files, because they were too old):<br />
<br />
<a href="http://www.recrystallize.com/merchant/softwareforces/rptinspector.htm#Download" class="target">http://www.recrystallize.com/merchant/softwareforces/rptinspector.htm#Download</a><br />
<br />
It's a 21-day free trial and works a treat, I have completed this task in two minutes after the download of this tool has completed. Woohoo, bookmarked  <img src="http://www.tuxx-home.at/moods/smilies/wink.gif" alt=";)" />]]></description>
</item>
<item rdf:about="http://www.tuxx-home.at/archives/2009/03/11/T23_49_21/">
<link>http://www.tuxx-home.at/archives/2009/03/11/T23_49_21/</link>
<title>Analyzing Microsoft Minidumps</title>
<dc:date>2009-03-11T23:49:21+01:00</dc:date>
<dc:creator>Alexander Griesser</dc:creator>
<dc:subject>Windows</dc:subject>
<description><![CDATA[This entry is more a virtual, searchable post-it than something I'd like to blog about, but to help me not forget that anymore, here it is (maybe it even helps someone else who asked google about how to analyze a minidump file):<br />
<br />
<pre>
   1. Open a command prompt (Start -> Run -> "cmd")
   2. cd \program files\debugging tools (Or wherever they are installed to)
   3. kd -z C:\WINDOWS\Minidump\Mini???????-??.dmp
   4. kd> .logopen c:\debuglog.txt
   5. kd> .sympath srv*c:\symbols*http://msdl.microsoft.com/download/symbols
   6. kd> .reload;!analyze -v;r;kv;lmnt;.logclose;q
   7. You now have a debuglog.txt in c:\, open it in a text edit (Notepad?). 
</pre>
<br />
Information borrowed from <a href="http://www.memecode.com/docs/minidump.php" class="external">http://www.memecode.com/docs/minidump.php</a>.]]></description>
</item>
<item rdf:about="http://www.tuxx-home.at/archives/2008/03/06/T08_32_28/">
<link>http://www.tuxx-home.at/archives/2008/03/06/T08_32_28/</link>
<title>Installing Vista SP1</title>
<dc:date>2008-03-06T08:32:28+01:00</dc:date>
<dc:creator>Alexander Griesser</dc:creator>
<dc:subject>Windows</dc:subject>
<description><![CDATA[Well, you know the good old saying: &quot;There's life in the old dog yet&quot;?
Let me explain. Yesterday I tried to install Vista SP1 on my notebook and failed miserably. I tried three different ways of getting this installed (using the offline installation file, trying some tips mentioned on <a class="external" href="http://www.winfuture.de">winfuture.de</a>, applying a registry key so that my system will get Vista SP1 through windows update) but none of them worked.<br />
At first it looked quite well, but after the second or third reboot (I don't know exactly as I've been away from my laptop while installing it) it reverted all changes and told me that the installation was unsuccessful.<br /><br />
There were different error messages, e.g. 0x800f0826 and later on there was also 0x81000109. Googling for these error messages didn't really help, besides telling me that I should deactivate Anti-Virus software (desperate as I was at this moment, I really did deactivate it...), run a filesystem check, run `sfc /scannow`, etc. Needless to say, that didn't help at all.<br />Grepping through the CBS.log file generated during the SP1 install didn't help either and so I continued my search on Google by finding out _WHAT_ changes SP1 provides to get an idea about what could cause the problem. After reading quite some articles I found out that the (BCD-like) bootloader gets updated too. Doh!<br />
Although I suppressed <a class="external" href="http://tuxx-home.at/archives/2007/10/02/T13_47_04/">my last experience with BCD bootloaders</a>, I guessed that this might be the cause for my new problems too and so I started fixing this old issue.<br />
It took me quite a while to find out what's really wrong with my system but after all, it was very easy to fix.<br />
<br />
You remember, `bcdedit` and its evil friends weren't able to find the default BCD store which I created on C:\boot\BCD. So why is this? Using some tools out of the <a class="external" href="http://www.sysinternals.com">sysinternals</a> package and monitoring a standard `bcdedit` invocation showed that it didn't look for some files on the hard drive before replying with "Can't find BCD store"-like messages.<br />
Long story short: I had the wrong partition marked as active. As this system is configured for triple-booting Linux, Windows XP and Windows Vista, I thought that the Vista partition needs the one to be active but that assumption was simply wrong. After making the XP partition active again (using `diskpart`), `bcdedit` was able to find the default store again and additionally, `msconfig` would let me modify my startup entries again (previously, the "Startup"-tab in `msconfig` was empty). So it seems as if `bcdedit` is looking for the active partition in your current partition table rather than for a specified folder which is nice, BTW, but I wouldn't have expected that from Microsoft ;)<br />
So, should that be the solution for my problem? I tried to install SP1 again and what should I say - it worked perfectly. After about half an hour of automatic reboots and funny numbers counting up to 100% it was alive. So far, I'm quite satisfied with SP1 (copying large amounts of data seems to work better at the first glance) but what really makes me happy is that the problem with the BCD store is now gone and with it, I regained the possibility to hibernate my machine  <img src="http://www.tuxx-home.at/moods/smilies/wink.gif" alt=";)" />]]></description>
</item>
<item rdf:about="http://www.tuxx-home.at/archives/2006/01/12/T13_58_08/">
<link>http://www.tuxx-home.at/archives/2006/01/12/T13_58_08/</link>
<title>Automating Windows Backups for Workstations</title>
<dc:date>2006-01-12T13:58:08+01:00</dc:date>
<dc:creator>Alexander Griesser</dc:creator>
<dc:subject>Windows</dc:subject>
<description><![CDATA[Today I wrote a small Windows command line script for automating
Windows backups on ordinary workstations (My Documents folder, Outlook
PST files and several application directories).<br /><br />
The script runs fully automatic and is therefore very user-friendly because
the technical barrier for making backups on workstations must be as low
as possible, otherwise no backups are made (this is my experience). The script
is also capable of copying files from remote computers to back them up on a
local CD burning device.<br /><br />
So here we go.<br /><br />

<span class="uln bold">Assumptions:</span><br />
I assume that the destination folder for the temporary backup files and the
directory where all the tools needed reside is &quot;<span class="bold">C:\Backup</span>&quot;.<br />
I also assume that you run Windows XP (because of the &quot;<span class="bold">rd</span>&quot; command (older versions of Windows don't have this command,
but you can use deltree instead).<br /><br />

<span class="uln bold">Installation of the tools:</span><br />
First of all you need some parts of the <a class="external" href="http://unxutils.sourceforge.net/">UnxUtils package</a>. For this script we only need &quot;<span class="bold">tar.exe</span>&quot;. If you want to compress the generated tar file
you will also need either gzip or bzip or some other compression utility.<br />
The reason why I create a tar file to be saved on disc is because of the long
filenames that may occure on Windows systems (more than the ISO9660 standard
would allow).<br /><br />
The next thing we need is the <a class="external" href="http://www.geoshock.com/cdrtools/">cdrtools package for Windows</a>. From this package we need &quot;<span class="bold">cdrecord</span>&quot; and &quot;<span class="bold">mkisofs</span>&quot;.<br /><br />

<span class="uln bold">Discover the CD burning device</span><br />
To discover the CD burning device for cdrecord, use the following command:
<pre>
cdrecord -scanbus
</pre>
Which produces an output like:
<pre>
        0,0,0     0) 'SEAGATE ' 'ST318453LW      ' '0003' Disk
        0,1,0     1) *
        0,2,0     2) 'TEAC    ' 'CD-ROM CD-532S  ' '1.0A' Removable CD-ROM
        0,3,0     3) *
        0,4,0     4) *
        0,5,0     5) *
        0,6,0     6) *
        0,7,0     7) *
</pre>
In this case, your CD burning device would be &quot;<span class="bold">0,2,0</span>&quot;.<br /><br />
<span class="uln bold">The directory structure:</span><br />
If you did everything right, you should have a directory structure like this one
listed here:
<pre>
Directory C:\BACKUP

12.01.2006  11:57    &lt;DIR&gt;          .
12.01.2006  11:57    &lt;DIR&gt;          ..
12.01.2006  10:43             1.655 awbfw.cmd
17.05.2005  15:16           314.368 cdrecord.exe
03.07.2005  02:30         1.295.582 cygwin1.dll
17.05.2005  15:16           421.376 mkisofs.exe
11.11.2001  00:00           114.688 tar.exe
</pre>

<span class="uln bold">The script:</span><br />
Please keep in mind that the synthetic linebreaks (\ at the end of a line, etc.)
are not functional in Windows command line scripts. I just put them in here
so that the Code-Block doesn't get to wide.<br />
<pre>
@echo off

rem Automatic Windows Backup Script for Workstations
rem
rem This script tars the files to be backup'ed together into one archive,
rem creates an ISO-image of the tar-archive and burns it onto a CD with the
rem help of cdrecord
rem
rem (c) 2006 by Alexander Griesser &lt;work@tuxx-home.at&gt;

rem Get the current date
set TODAY=%DATE:~0%

rem ============================ CONFIGURATION ========================
rem Specify an Identifier for this Backup
set ITEM=Tagname

rem The Backup-Root directory (the necessary tools also have to reside here)
set BACKUP_ROOT=C:\Backup

rem Path to the logfile
set LOGFILE=%BACKUP_ROOT%\Backup-%ITEM%.log

rem cdrecords burning device identifier (use cdrecord -scanbus to get
rem that info)
set CDDEVICE=2,0,0

rem Activate this setting if you need to copy files from another
rem computer in your network to this computer
rem set BACKUP_DIR=%BACKUP_ROOT%\%ITEM%
rem ===================================================================

echo Automatic Windows Backup for Workstations
echo
echo Please ensure that the CD burner is connected to your PC and
echo that a CD is inserted and press Enter when ready.
pause

rem Activate this command to copy files from another computer to this
rem machine for backup (you will need the robocopy utility from the
rem Microsoft Windows Ressource Kit for this - or any other utility
rem that does the trick)
rem echo Copying files from remote computer(s)...
rem %BACKUP_ROOT%\robocopy.exe \\otherpc\C$\application \
  %BACKUP_DIR%\application /E /R:5 /W:5 /LOG:%LOGFILE%

rem Creation of the backup archive by either using local folders (for backing
rem up this computer) or by using %BACKUP_DIR% as source (when copying files
rem from remote computers)
echo Creating Backup Archive...
%BACKUP_ROOT%\tar.exe -cf %BACKUP_ROOT%\%ITEM%-%TODAY%.tar \
  C:\\application1 C:\\application2 "%USERPROFILE%\\Eigene Dateien" \
  "%USERPROFILE%\\Lokale Einstellungen\\Anwendungsdaten\\Microsoft\\Outlook" \
  &gt;%LOGFILE%

rem echo Creating Backup Archive for remote computer(s)...
rem %BACKUP_ROOT%\tar.exe -cf %BACKUP_ROOT%\%ITEM%-%TODAY%.tar %BACKUP_DIR% \
  &gt;&gt;%LOGFILE%

echo Creating CD-Image...
%BACKUP_ROOT%\mkisofs.exe -J -v -o %BACKUP_ROOT%\%ITEM%-%TODAY%.iso \
  %BACKUP_ROOT%\%ITEM%-%TODAY%.tar &gt;&gt;%LOGFILE%

echo Deleting temporary files...
del /F /Q %BACKUP_ROOT%\%ITEM%-%TODAY%.tar &gt;&gt;%LOGFILE%

echo Burning CD
echo This make take some time, please be patient. A progress meter is being
echo displayed during the burning process and after the backup has
echo completed successfully, the CD will be ejected.
echo
%BACKUP_ROOT%\cdrecord dev=%CDDEVICE% gracetime=0 -tao -verbose -eject \
  -data %BACKUP_ROOT%\%ITEM%-%TODAY%.iso
echo Deleting temporary files
del /F /Q %BACKUP_ROOT%\%ITEM%-%TODAY%.iso
echo
echo Backup completed successfully
echo
echo Please check if the CD is readable and that it contains a file
echo named %ITEM%-%TODAY%.tar
echo
pause
</pre>
<br />
<span class="uln bold">Downloads:</span><br />
<ul>
  <li><a href="/projects/awbfw/awbfw.cm_">awbfw.cm_</a> (rename to .cmd after downloading)</li>
  <li><a href="/projects/awbfw/awbfw.cmd.html">Syntax highlighted version of awbfw.cmd</a></li>
</ul>]]></description>
</item>
</rdf:RDF>

