Diagnostic Policy Service - high CPU


  1. Posts : 12
    w10
       #1

    Diagnostic Policy Service - high CPU


    HP laptop problem
    In the last few days, this laptop started having poor performance, with Task manager showing Diagnostic Policy Service taking up to 30% or more of CPU.

    HP Spectre x360 - 13-4197dx (ENERGY STAR)
    Diagnostic Policy Service - high CPU-p1.jpg

    In the last few days it started having poor performance, with Task manager showing Diagnostic Policy Service taking up to 30% or more of CPU.

    Diagnostic Policy Service - high CPU-image.png

    Did upgrade of BIOS, no improvement.
    Downloaded all current windows upgrades – no fix.
    I created a new (admin) user, same problem.
    I ran all of the diagnostics in the HP Support Assistant, all passed – no effect.
    I ran "sfc /scannow." and "Dism /Online /Cleanup-Image /RestoreHealth" – no effect.

    There is an online thread on this in the HP forums, which does not seem to show any fix.
    https://h30434.www3.hp.com/t5/Notebo...c/td-p/6209980

    The HP support is abysmal – it took several minutes for him to echo back “so this is your computer system?”, and then the only suggestion was a factory reset.
    Attached Thumbnails Attached Thumbnails Diagnostic Policy Service - high CPU-p1a.jpg  
      My Computer


  2. Posts : 6
    Windows 10
       #2

    Hello, i finally found the solution for the problem! The dps service constantly creates log files in folder "C:\Windows\system32\sru" every second. This leads to high disk usage and the folder becomes very large, multiple Gigabytes of data. Force stopping the service and then deleting this folder fixes the problem. The folder is not created anymore when you start the service. You must stop the service before deleting the folder.

    I made a batch file which stoppes the service and prompts the user to delete the folder. Then the service is startet again. Just create a text file and insert following code. Then save as .bat file. You need to start the bat as admin though.

    Download bat or make own bat with code block below
    https://nofile.io/f/w2cdg4n8TSZ/fixDPSservice.bat

    Code:
    @echo off
    echo ... Set DPS service start type to manual ...
    echo.
    sc config DPS start= demand
    
    echo.
    echo ... Find PID of DPS service ...
    
    for /f "tokens=2 delims=[:]" %%f in ('sc queryex dps ^|find /i "PID"') do set PID=%%f
    
    echo.
    echo ... Kill DPS service
    echo.
    
    taskkill /f /pid %PID%
    
    
    echo.
    echo ... Delete sru Folder ...
    echo.
    
    rd /s "%windir%\system32\sru"
    
    echo.
    echo ... Set DPS service start type to auto ...
    echo.
    sc config DPS start= auto
    
    echo.
    echo ... Start DPS service ...
    
    sc start DPS
    echo.
    
    pause
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 09:16.
Find Us




Windows 10 Forums