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 Batch File

The folks at MyDigitalLife Website have made available the Services Start State Backup Script that can automatically save the startup state of all Windows Services in the current computer and creates another Batch file containing the SC command-line to change the Startup Type of services with the current start state. This Batch file when run in the target computer, automatically applies the Services startup settings.

You can download the "Services Start State Backup Script" from MyDigitalLife.

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.


Related Posts


Email SubscriptionPrefer an E-mail subscription?

Enter your email address:

Delivered by FeedBurner

One Comment

  1. said this on Friday, September 16th 2011 10:37 pm

    hello,

    Can you please inverse date and adding time for best sort feature :

    Services_Backup_9162011.REG = bad

    Services_Backup_20110916-18h44.REG = best

    +

    For security reason AND control if i have bad sector hdd, please add SHA-1.

    For your vbs file …

    note : i create always a description file originalname(addversiondate).(originalextention).dsc.txt with extra infos ; (i use free download manager = FDM). Presently, i have only ScrapBook(ed) (a Firefox add-on), this web page with zip file.

    +

    bonus : Add maybe CRC32 in the name of the generated file ; example :

    Services_Backup_20110916-19h07(CRC32=12345678).REG = OK

    I use implbits . com / HashTab . aspx (Windows = V4.0 / Mac = V1.2).

    Thanks by advance and thank you for all your tools :))

Leave a Reply