Before configuring and managing system services, it is very important to back up them. Once an error occurs, you can immediately restore to normal state. Here, we introduce the direct backup of the service-related content in the registry.
1. Backup system service
Before configuring and managing system services, it is very important to back up them. Once an error occurs, you can immediately restore to normal state. Here, we introduce the direct backup of the service-related content in the registry.
(1) Run the Registry Editor and expand the Registry HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services in turn.
(2) Click the "File → Export" menu command, in the dialog box that appears, click the "Selected Branch" option to export and save the registry content under this branch as a REG file. If you need to restore system services, you can directly double-click the REG file to import the registry.
2. Disaster protection
If you accidentally disable an important service due to your misoperation, causing Windows to fail to start, and therefore, you cannot restart the corresponding service, which will cause a vicious cycle. In this case, we can only use the system console for manual recovery. In the system console, we can start any service or control the startup type of the service at will.
Put the Windows XP installation disc into the optical drive, and set the optical drive boot to priority in the BIOS. When starting the computer and entering the "Welcome to Installer" interface, press the R key as prompted to enter the Windows XP "Recovery Console" interface. Select the system you want to repair and type the system administrator password.
In the command prompt state, we need to use the "Enable" and "Disable" commands. Among them, the command format of Enable is "enable [service_name] [startup_type]"; the command format of Disable is "disable [service_name]". Here, [service_name] is the service or device name you want to enable/disable, while [startup_type] is the startup type, indicating a different startup type. Available types include Service_disabled, Service_boot_start, Service_system_start, Service_auto_start, Service_demand_start.
Let's take the example of disabling system help in Windows XP, first set the startup type of the service to disable, and then re-enable it.
(1) Enter the "Failure Recovery Console" interface, run the "listsvc" command to view the running status of various services. Here, we can see that the system help service is started. Enter the "disable helpsvc" command and press Enter to disable the system help service.
(2) If you need to restart the service and set the service to run automatically with the system, you can enter the "enable helpsvc service_boot_start" command to enter.
1. Backup system service
Before configuring and managing system services, it is very important to back up them. Once an error occurs, you can immediately restore to normal state. Here, we introduce the direct backup of the service-related content in the registry.
(1) Run the Registry Editor and expand the Registry HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services in turn.
(2) Click the "File → Export" menu command, in the dialog box that appears, click the "Selected Branch" option to export and save the registry content under this branch as a REG file. If you need to restore system services, you can directly double-click the REG file to import the registry.
2. Disaster protection
If you accidentally disable an important service due to your misoperation, causing Windows to fail to start, and therefore, you cannot restart the corresponding service, which will cause a vicious cycle. In this case, we can only use the system console for manual recovery. In the system console, we can start any service or control the startup type of the service at will.
Put the Windows XP installation disc into the optical drive, and set the optical drive boot to priority in the BIOS. When starting the computer and entering the "Welcome to Installer" interface, press the R key as prompted to enter the Windows XP "Recovery Console" interface. Select the system you want to repair and type the system administrator password.
In the command prompt state, we need to use the "Enable" and "Disable" commands. Among them, the command format of Enable is "enable [service_name] [startup_type]"; the command format of Disable is "disable [service_name]". Here, [service_name] is the service or device name you want to enable/disable, while [startup_type] is the startup type, indicating a different startup type. Available types include Service_disabled, Service_boot_start, Service_system_start, Service_auto_start, Service_demand_start.
Let's take the example of disabling system help in Windows XP, first set the startup type of the service to disable, and then re-enable it.
(1) Enter the "Failure Recovery Console" interface, run the "listsvc" command to view the running status of various services. Here, we can see that the system help service is started. Enter the "disable helpsvc" command and press Enter to disable the system help service.
(2) If you need to restart the service and set the service to run automatically with the system, you can enter the "enable helpsvc service_boot_start" command to enter.