Troubleshoot Start/Stop services in Server from registry level

This example for
 Display name: Diagnostic System Host
Service name: WdiSystemHost

Path to executable:C:\Windows\System32\svchost.exe -k LocalSystemNetworkRestricted

Please navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\WdiSystemHost and locate Start registry key

Double click on Start and edit the value:
Change Startup type :
Automatic - 2
Manual - 3
Disabled - 4
Automatic (Delayed Start) - 2 
Note: When you change to Automatic (Delayed Start) a new key DelayedAutostart is created with value 1.When you change to Automatic from Automatic (Delayed Start)DelayedAutostart change value to 0.

We can do this same with CMD Prompt:

Copy and paste below cmd as per your requirement:
To Start Diagnostic System Host:
net start WdiSystemHost
Note: You can’t start a service if Startup type is on Disabled
To Stop Diagnostic System Host:
net stop WdiSystemHost
To change Startup type:
Automatic:REG add "HKLM\SYSTEM\CurrentControlSet\services\WdiSystemHost" /v Start /t REG_DWORD /d 2 /f
Manual:REG add "HKLM\SYSTEM\CurrentControlSet\services\WdiSystemHost" /v Start /t REG_DWORD /d 3 /f
Disabled:REG add "HKLM\SYSTEM\CurrentControlSet\services\WdiSystemHost" /v Start /t REG_DWORD /d 4 /f
Automatic (Delayed Start):REG add "HKLM\SYSTEM\CurrentControlSet\services\WdiSystemHost" /v Start /t REG_DWORD /d 2 /f
Note: When you change to Automatic (Delayed Start) a new key DelayedAutostart is created with value 1.REG add "HKLM\SYSTEM\CurrentControlSet\services\WdiSystemHost" /v DelayedAutostart /t REG_DWORD /d 1 /f
When you change to Automatic from Automatic (Delayed Start)DelayedAutostart change value to 0.
REG add "HKLM\SYSTEM\CurrentControlSet\services\WdiSystemHost" /v DelayedAutostart /t REG_DWORD /d 0 /f

Comments

Popular posts from this blog

Troubleshooting Netlogon Error Codes

Service Principal Names (SPNs) SetSPN Syntax (Setspn.exe)

Troubleshooting AD Active Directory Replication Error 8456 or 8457: "The source | destination server is currently rejecting replication requests"