04. August 2013 · Comments Off on Run a program as a Service · Categories: Microsoft, Windows · Tags: , , ,

I wanted to setup some programs to run as Windows Services but found information on the subject to be scattered around everywhere. So this post is basically for consolidation and clarification but is not focused on unattended installations.

What is a Service?
A Windows Service is automatically started when your system boots. There is no need to logon to the system. Services also are not affected by people logging off. Services automatically recover from program crashes and Standby and Hibernation modes. Windows 9x/ME do not have a Service facility. Installing software as a Service requires Administrator permissions.

What are the options for running a program as a Service?

  • sc.exe
    This is Microsoft software and is installed by default on XP and 2003. It is probably the best and easiest method but it won’t work if the target executable was not programmed to run as a Service. This rules it out for what many people are trying to do since most programs that are designed ro run as a Service have that option included somewhere in the application. sc.exe is useful for the Unattended crowd, though.
    More »
17. May 2013 · Comments Off on Fixing the Volume Shadow Copy service · Categories: Windows · Tags: , ,

After installing DHCP on Windows Server 2008 R2, you may start to see the following error message in the event logs :

Volume Shadow Copy Service error: Unexpected error calling routine RegOpenKeyExW(-2147483646,SYSTEMCurrentControlSetServicesVSSDiag,…). hr = 0×80070005, Access is denied.

Inspection of the detailed tab of the event log entry will show information about the process that generated the error. Take note of the user mentioned after the “- User: Name:” portion of the bytes. To resolve this error, simply give that user full permission to the HKEY_LOCAL_MACHINESYSTEMCurrentControlSetservicesVSS registry key.

16. April 2013 · Comments Off on [MDTWDS] Windows could not parse or process the unattend answer file for pass [specialize] · Categories: Windows · Tags: , ,

Windows_could_not_parse_or_process

I just discovered an issue with using MDT to integrate Internet Explorer 10 into Windows 7 image files. Building the images was no problem, but when I tried to deploy them it would bomb with this error every time:

“Windows could not parse or process the unattend answer file for pass [specialize].
More »