Diagnostic Policy Service Error 5 – Access is denied

When you start the Diagnostic Policy Service in your Windows 10 or 11 system, the following error may occur:

Windows could not start the Diagnostic Policy Service service on Local Computer:

Error 5: Access is denied.

Diagnostic Policy Service error 5 - access is denied

When this occurs, the following entry is logged into the System event log.

Log Name:      System
Source:        Service Control Manager
Date:          
Event ID:      7023
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      
Description:
The Diagnostic Policy Service service terminated with the following error: 
Access is denied.

The Diagnostic Policy Service enables problem detection, troubleshooting, and resolution for Windows components. If this service is stopped, diagnostics will no longer function.



Resolution

The Diagnostic Policy Service error code 5 occurs due to incorrect registry permissions. Please follow the steps below to resolve the issue:

  1. Start the Registry Editor by running regedit.exe.
  2. Go to the following branch in the Registry Editor:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\WDI\Config
  3. Right-click Config and click Permissions…
  4. Click Advanced.
  5. Click Add.
  6. Click Select a principal.
  7. In the Object name text box, type NT SERVICE\DPS, and click OK.
    Diagnostic Policy Service error 5 - access is denied - fix permissions
  8. Click Show advanced permissions.
  9. Enable the following checkboxes:
    • Query Value
    • Set Value
    • Create Subkey
    • Enumerate subkeys
    • Notify
    • Read Control

    Diagnostic Policy Service error 5 - access is denied - fix permissions

  10. Click OK.
  11. The DPS account should now have write access (special permissions) for the Config registry key. Click OK, OK to apply the changes and close all the dialogs.
    Diagnostic Policy Service error 5 - access is denied - fix permissions
  12. Exit the Registry Editor.

You should be able to start the Diagnostic Policy Service service now.


One small request: If you liked this post, please share this?

One "tiny" share from you would seriously help a lot with the growth of this blog. Some great suggestions:
  • Pin it!
  • Share it to your favorite blog + Facebook, Reddit
  • Tweet it!
So thank you so much for your support. It won't take more than 10 seconds of your time.

Ramesh Srinivasan is passionate about Microsoft technologies and he has been a ten-time recipient of the Microsoft MVP award in Windows Desktop Experience (Windows Shell), from 2003 to 2012. Ramesh founded Winhelponline.com in 2005.

Leave a Comment