Internet was working fine on my laptop and other portable devices. But when I turned on my PC the next day it was showing no internet access or limited connectivity on the wireless icon in the Windows status bar. I was facing diagnostics policy service is not running error when I tried to diagnose the network problem. If you are facing the same problem on your Windows 10, 8 or 7 computer, then follow the steps below to fix this error.
Fix Diagnostics Policy Service Error
Before trying diagnostics utility, I rebooted the network devices like modem and router. But the internet wasn’t working on my PC. Then I used the same internet connection on another machine, and it was working fine. I thought something is wrong with my Windows network settings and I performed the following steps to solve the problem. You should follow these steps to fix the problem.
- Try to troubleshoot the problem using Windows built-in Network Diagnostics tool. Right-click on the limited connection network/WiFi icon in the status bar and select “Troubleshoot Problems” from the menu.
- Diagnostics tool will take some time to analyze Windows network settings and will show you the problem if found any and ask to fix that.
- If you are getting an error message like “The Diagnostics Policy Service Is Not Running.” The error shows that the diagnostics service is not running and we need to run the diagnostics policy service and fix the problem.
- Press shortcut Windows+Q keys or Press the Windows key from keyboard and then type cmd, this will search the Command Prompt. Right-click on Command Prompt search result and select “Run as Administrator” option from the menu.
- In the Command Prompt Window, you need to run the following two commands one by one
net localgroup Administrators /add networkservice
net localgroup Administrators /add localservice
If the command executed successfully, then you will see the success message as shown below.
NOTE: If you are getting any error while running these commands. Make sure you run the command prompt as administrator. Also, try to modify the command, just replace /add with /delete and run both commands. After that rerun both commands with /add same as mentioned above or showing in the screenshot below.
- Type Exit and hit Enter to close the command prompt. Now, restart your computer to apply the changes.
- Now, troubleshoot problem again see step-1 above.
Fix the root cause of “Diagnostics Policy Service Is Not Running”
One of our expert readers shared his opinion. The above method may allow accessing the internet, but this doesn’t fix the root cause which is the system’s files corruption. To fix internet problem properly you need to repair the system files and restore it. To do that you need to follow these steps.
Restore your Windows to an early restore point to undo system changes that may cause system files corruption.
- Press Windows key from keyboard and type “system protect” to search it. In the search results click “Create restore point” option.
- In the System Protection window, make sure Windows partition is selected under the “Protection Settings” section. Like in my case C: System drive.
- Now, click the “System Restore” button and follow the on-screen instruction to revert back your Windows to the latest restore point. At this step, you can check if your internet is working without any error. If the problem persists then continue reading.
- Once, restore completed open up the Command Prompt as Administrator. Simply press Windows key and type “cmd” and then in the search results right-click on the Command Prompt and select “Run as Administrator” option.
- In the command prompt windows type the command
this command starts scanning your files to find any corrupt system files. If this command failed to fix corrupt files automatically then it will give some suggestions. As you can see below in screenshot this found some corrupt files but unable to fix the problem automatically.
- In that case, you should run the following commands. I would suggest, before running the following command you should read about DISM here on Microsoft website.
DISM.exe /Online /Cleanup-Image /RestoreHealth
- After running this command reboot your computer and scan once again with the command
sfc /scannowand it should return without any corrupt files found.
Check Diagnostic Policy Service Status
You can also check the diagnostic policy service status form the Windows Services utility.
- Press Windows+R keys to open the Run window, type command
"services.msc” and hit OK.
- In the Services window scroll down to find a service with the name “Diagnostic Policy Service.” Right-click on this and select Properties, here make sure this service is up and running as shown below.
Share your experience below in comments. If you still having the same problem or any other related problem, please reply below. We will be happy to answer your questions.