Diagnostic Execution Service (diagsvc) Defaults in Windows 10

Executes diagnostic actions for troubleshooting support.

Default Settings

Startup type:Manual
Display name:Diagnostic Execution Service
Service name:diagsvc
Service type:share
Error control:normal
Object:LocalSystem
Path:%SystemRoot%\System32\svchost.exe -k diagnostics
File:%SystemRoot%\system32\DiagSvc.dll
Registry key:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\diagsvc
Privileges:
  • SeTcbPrivilege
  • SeTakeOwnershipPrivilege

Default Behavior

Diagnostic Execution Service is a Win32 service. In Windows 10 it is starting only if the user, an application or another service starts it. When the Diagnostic Execution Service is started, it is running as LocalSystem in a shared process of svchost.exe along with other services. If Diagnostic Execution Service fails to start, the failure details are being recorded into Event Log. Then Windows 10 will start up and notify the user that the diagsvc service has failed to start due to the error.

Dependencies

Diagnostic Execution Service cannot be started under any conditions, if the Remote Procedure Call (RPC) service is disabled.

Restore Default Startup Configuration for Diagnostic Execution Service

Before you begin doing this, make sure that all the services on which Diagnostic Execution Service depends are configured by default and function properly. See the list of dependencies above.

1. Run the Command Prompt as an administrator.

2. Copy the command below, paste it into the command window and press ENTER:

sc config diagsvc start= demand

3. Close the command window and restart the computer.

The diagsvc service is using the DiagSvc.dll file that is located in the %WinDir%\system32 folder. If the file is changed, damaged or deleted, you can restore its original version from Windows 10 installation media.