Category Archives: Windows

Running a command with system account

The simplest way to run a command with a system account – for example testing the installation process of an installation script – is using PsExec.

PSEXEC -i -s cmd.exe

This will open a new Cmd-window as system.

nt authority\system


Return codes

When performing a silent install, catching the return code is useful for troubleshooting.

For a list of Return Codes (= Exit Codes / Windows System Error Codes), see below links from Microsoft and Symantec:

Overview of Windows Installer error codes (from Microsoft):

Note that exit codes may be different.

Return code for Office 2010 updates:

The installer of SAP GUI will generate different exit codes.  See link below:

Uninstalling Linux with GRUB2 on dual-boot Linux-Windows 8.1

After some testing with Linux I figured I didn’t need it on this machine.  As a 128GB SSD is not that gigantic I wanted to reclaim the diskspace it used.
The configuration was pretty basic: 2 partitions for Windows 8.1 (350MB system reserved partition and a large Windows partition) and 2 partitions for Linux (swap and ext4).  Simply deleting the Linux partition rendered the system to an unbootable state.  After resizing the Windows partition again and reinstalling Linux the system booted again.

Some time later I continued my quest for disk space reclaiming.  Basically I used the procedure on

To be a little more on the safe time now I removed GRUB2 first: I booted from my Windows 8.1 USB install disk.  When the first dialog came up (language selection) I pressed Shift-F10 to open a Cmd prompt.  I ran the “bootrec.exe /fixmbr” command and after reboot GRUB2 was indeed gone.

I deleted the Linux partitions with the Windows Disk Management.  Then I booted from a Linux Live USB disk and increased the Windows partition size again with GParted.