Script to Backup the Services Configuration (Startup Type) in Windows 7/XP/2003/Vista

After doing a fresh install of Windows XP/2003/Vista/7, disabling unused Windows Services is one of the time consuming tasks you perform. One configured, you can backup the service startup state using a Batch file or Script so that it can be used for subsequent installations, or if you need to automate the task on several computers in your workgroup.

Using VBScript

I’ve created a VBScript that outputs the Service Startup configuration to a .REG file. The script enumerates the list of Win32 services and their startup state from the following registry (rather than using SC) key:

HKEY_LOCAL_MACHINE SYSTEM CurrentControlSet Services

The Startup type of all the Win32 services are written to a .REG file, which can then be run in other computers. The REG file will have the prefix Services_Backup_ followed by the current date, and will be saved to the Desktop. Note that you’ll need to restart the target computer after running the file.

Download services_conf_backup.zip and save to Desktop. Unzip the archive and run the script services_conf_backup.vbs.

Download services_conf_backup.zip

Leave a Reply