Fix failed to connect to Windows service: The main cause of this error is when Windows is unable to start or connect to required Windows Services to carry out the system operations. This error can be caused by Windows Font Cache Service, Windows Event Logs Service, System Event Notification Service, or any other service. You can’t possibly figure out the service causing this problem so troubleshooting will largely depend on trying to fix all the possible issues. So without any further ado, let’s see how to fix failed to connect to Windows service.
Depending upon the system user’s may receive one of the following error messages:
Windows could not connect to the System Event Notification Service service. This problem prevents standard users from logging on to the system. As an administrative user, you can review the System Event Log for details about why the service didn’t respond Windows could not connect to the Group Policy Client service. This problem prevents standard users from logging on to the system. As an administrative user, you can review the System Event Log for details about why the service didn’t respond.
How to Fix Failed to connect to Windows service
So without wasting any time let’s see resolve Failed to connect to Windows service error in Windows 10 with the help of the below-listed guide.
Method 1: Delete Windows Logs File
Sometimes Windows log files are corrupted which causes the error “failed to connect to Windows service.” To fix the issue delete all the log files.
1. Navigate to the following folder:
2. Now make sure to rename the Logs folder to something else.
3. If you are unable to rename the folder then you have to stop Windows Event Logs Service.
4. To do so press Windows Key + R then type services.msc and then find Windows Event Logs.
5. Right-click on Windows Event Logs Service and select Stop. Minimize the Services window do not close it.
6. Next try to rename the folder, if you are not able to rename then delete everything present inside the Logs folder.
Note: If you find that you do not have access to all of the logs due to them being locked, you can try Unlocker Assistant, which will allow access to all the locked files and the ability to delete them.
7. Again open the Services window and start the Windows Event Logs Service.
8. Check if the problem is resolved or not.
Method 2: Use netsh winsock reset command
1. Press Windows Key + X then select Command Prompt (Admin).
2. Now type the following command in the cmd and hit enter:
netsh winsock reset
3. Close the command prompt window then restart your PC and see if you were able to fix Failed to connect to Windows service issue.
Also Read: Fix The L2TP Connection Attempt Failed Error on Windows 10
Method 3: Fix the error using Registry Editor
1. Press Windows Key + R then type “regedit” (without quotes) and hit enter to open Registry Editor.
2. Now navigate to the following key in the Registry Editor:
3. Next, find the value of imagepath key and check its data. In our case, its data is svchost.exe -k netsvcs.
4. This means the above data is in charge of the gpsvc service.
5. Now navigate to the following path in the Registry Editor:
6. In the right window pane, locate netsvcs and then double click on it.
7. Check the Value data field and make sure gpsvc is not missing. If it’s not there then add the gpsvc value and be very careful in doing so because you don’t want to delete anything else. Click Ok and close the dialog box.
8. Next, navigate to the following folder:
Note: This is not the same key present under SvcHost, it’s present under the SvcHost folder in the left window pane)
9. If netsvcs folder is not present under the SvcHost folder then you need to manually create it. To do so, right-click on the SvcHost folder and select New > Key. Next, enter netsvcs as the name of the new key.
10. Select the netsvcs folder which you just created under SvcHost and in the left window pane then right-click and select New > DWORD (32-bit) value.
11. Now enter the name of the new DWORD as CoInitializeSecurityParam and double-click on it.
12. Set Value data to 1 and click OK to save changes.
13. Now similarly create the following three DWORD (32-bit) Value under netsvcs folder and enter the value data as specified below:
Name of the DWORD Value Data CoInitializeSecurityAllowLowBox: 1 CoInitializeSecurityAllowInteractiveUsers: 1 AuthenticationCapabilities: 3020
14. Click OK after setting the value of each of them and close the Registry Editor.
Method 4: Stop Windows Font Cache Service
1. Press Windows Key + R then type services.msc and hit enter.
2. In the Services window that opens, find Windows Font Cache Service and right-click on it then select Stop.
3. Now minimize the Services window as you are going to need it later and again press Windows Key + R then type %localappdata% and hit enter.
4. Next, locate the FontCache DAT files and delete them. For example, in my case the file name was GDIPFONTCACHEV1.
5. Again go back to Services window and right-click on Windows Font Cache Service then choose Start.
6. Restart your PC to save changes and this may help you Fix Failed to connect to Windows service issue, is not the continue.
Method 5: Disable Fast Startup
The fast startup combines features of both Cold or full shutdown and Hibernates. When you shut down your PC with a fast startup feature enabled, it closes all the programs and applications running on your PC and also logged out all the users. It acts as a freshly booted Windows. But Windows kernel is loaded and system session is running which alerts device drivers to prepare for hibernation i.e. saves all current applications and programs running on your PC before closing them.
This can sometimes cause an issue with the programs which can lead to the “Failed to connect to Windows service error“. In order fix the issue you need to disable the Fast Startup feature which seems to be working for other users.
Method 6: Clean boot your system
1. Press Windows Key + R then type msconfig and hit enter to System Configuration.
2. On the General tab, choose Selective Startup and under it make sure the option “load startup items” is unchecked.
3. Navigate to the Services tab and checkmark the box that says “Hide all Microsoft services.“
4. Next, click Disable all of which would disable all the other remaining services.
5. Restart your PC check if the problem persists or not.
6. After you had finish troubleshooting make sure to undo the above steps in order to start your PC normally.
Method 7: Run CCleaner and Malwarebytes
Perform a Full antivirus scan to make sure your computer is secure. In addition to this run CCleaner and Malwarebytes Anti-malware.
1. Download and install CCleaner.
2. Double-click on the setup.exe to start the installation.
3. Click on the Install button to start the installation of CCleaner. Follow on-screen instructions to complete the installation.
4. Launch the application and from the left-hand side menu, select Custom.
5. Now see if you need to checkmark anything other than the default settings. Once done, click on Analyze.
6. Once the analysis is complete, click on the “Run CCleaner” button.
7. Let CCleaner run its course and this will clear all cache and cookies on your system.
8. Now, to clean your system further, select the Registry tab, and ensure the following are checked.
9. Once done, click on the “Scan for Issues” button and allow CCleaner to scan.
10. CCleaner will show the current issues with Windows Registry, simply click on the Fix selected Issues button.
11. When CCleaner asks “Do you want backup changes to the registry?” select Yes.
12. Once your backup has completed, select Fix All Selected Issues.
13. Reboot your PC to save changes.
If this doesn’t fix the issue then run Malwarebytes and let it scan your system for harmful files.
Method 8: Disable User Account Control
1. Type Control Panel in the Windows Search then click on the top of the search result.
2. Next, select User Accounts > User Accounts > Change User Account Control Settings.
3. Move the slider all the way down to Never notify.
4. Click Ok to save changes and reboot your system. The above method may help you fix failed to connect to Windows service error, if not, continue.
Method 9: Run System File Checker (SFC) and Check Disk (CHKDSK)
1. Press Windows Key + X then click on Command Prompt(Admin).
2. Now type the following in the cmd and hit enter:
3. Wait for the above process to finish and once done restart your PC.
4. Next, run CHKDSK which can fix bad sectors in your hard disk.
5. Let the above process complete and again reboot your PC to save changes.
Method 10: Perform System Restore
When none of the above methods works in resolving the error then System Restore can definitely help you in fixing this error. So without wasting any time run system restore in order to fix failed to connect to Windows service error.
That’s it you have successfully Fix Failed to connect to Windows service error but if you still have any queries regarding this article feel free to ask them in the comment’s section.