How To Backup And Restore The Services Configuration (Startup Type) In Windows



There are hundreds of services that are installed and run in Windows operating system. Changing the settings of these services, such as configuration of Startup Type which determine whether Windows will load and start the services on system starts up, it's extremely improved the system performance related to fast startup, reduced system resource usage (RAM and CPU) and make Windows more responsive if you do it right.

It is best to backup and save the existing start state of all services, which can then be used to quickly restore all services to their original startup state when there is something goes wrong.

Here is two scripts that you can use to backup, restore or also merge the configuration you've made to other computer with the same OS setup.

VBScript

This VBScript that will 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 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 to restore or merge into other computers. The REG file will have the prefix Services_Backup_ followed by the current date, and will be saved to the Desktop.


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

Note: You’ll need to restart the target computer after restore or merging the file for changes to take effect.

Batch File

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.

The generated back up batch script file will have the name in the form of Services_Day_DD_MM_YYYY_HH_MM.bat to avoid any accidental overwrite when user does multiple export or backup. It can be located at C:\Windows\System32.


Download Services_Start_State_Backup.zip and save to Desktop. Unzip the archive and run the script Services_Start_State_Backup.bat.

Note: You’ll need to restart the target computer after restore or merging the file for changes to take effect.

Those scripts supports Windows XP/2003/Vista/7.

0 Comments:

Post a Comment