- Fix: Failed to connect to Windows service
- The possible causes of the “Failed to connect to a Windows service” error message
- How to get rid of the “Failed to connect to a Windows service” error message
- Solution 1: Fix this problem using the Registry Editor
- Solution 2: Try clean booting the affected computer
- Solution 3: Reset the affected computer’s Winsock catalog
- Solution 4: Allow Full Control of all relevant registry keys to Administrators using the Registry Editor
- Solution 5: Turn Fast Startup off (for affected Windows 10 computers only)
- Method 1
- Method 2
- Solution 6: Manually create registry keys and registry values
- Solution 7: Starting System Event Notification Service
Fix: Failed to connect to Windows service
Group policies are settings pushed into a computer’s registry to configure security settings and other operational behaviors. Group policies can be pushed down from Active Directory (actually, they’re pulled down by the client) or by configuring local group policy.
Some users have reported seeing an error message in their computer’s Notification Panel that has the heading “Failed to connect to a Windows service” and states, “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.”
The possible causes of the “Failed to connect to a Windows service” error message
This error arises when a computer crashes after the rebooting process during Windows Updates. The computer restarts after the crash and reports an unexpected shutdown during Windows Updates. Right after this, it starts displaying this error message. In most cases, this error message is given birth to by the loss of important Registry settings required to initialize the Group Policy Client service.
How to get rid of the “Failed to connect to a Windows service” error message
If you are suffering from this problem and are trying to get rid of it, you should, first and foremost, try to repair and restore Windows service components. You can do so by simply downloading and running Restoro to scan for and repair corrupt and missing repositories from here
However, if trying to repair and restore Windows service components using Restoro doesn’t work, fear not as there are quite a few other highly effective solutions that can be used to try and resolve this problem. The following are the most effective solutions that you can use to try and fix this issue:
Solution 1: Fix this problem using the Registry Editor
Press the Windows Logo key + R to open a Run dialog, type regedit into the Run dialog and click on OK. Doing so will launch the Registry Editor.
In the left pane of the Registry Editor, navigate to the directory described below and check to see whether or not a folder named gpsvc is present. This folder is responsible for service configuration and parameters. In almost all cases, it will be present.HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Services
If gpsvc is present, then navigate to the directory described below in the left pane of the Registry Editor. This is an extremely important and fragile directory so make sure that you don’t touch anything else.
HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > Windows NT > CurrentVersion > SvcHost
Inside the SvcHost folder, there must be some keys and values which are required for the process to be completed. Check for a multi-string value GPSvsGroup inside SvcHost. If it is not present, you are going to have to create it yourself. In order to create the multi-string value, right-click on the SvcHost folder, hover over New and click on Multi-String Value.
Doing so will create a new registry value in the right pane. Rename the new multi-string value GPSvcGroup by right-clicking it, clicking on Rename, typing in GPSvcGroup and pressing Enter. Now, double click on the GPSvcGroup value to modify it, replace whatever is in the Value data field with GPSvc and click on OK.
The next thing you might need to do is to create a new folder (key) inside SvcHost. To do so, right-click on SvcHost in the left pane, hover over New and click on Key. Rename the new registry key GPSvcGroup.
Click on the GPSvcGroup key in the left pane to have its contents displayed in the right pane. You now need to create 2 new DWORD (32-bit) values in the right pane of GPSvcGroup To do so, right-click on an empty space in the right pane, hover over New and click on DWORD (32-bit) Value. This process needs to be repeated 2 times to create a total of 2 new DWORD (32-bit) values.
The first value needs to be renamed AuthenticationCapabilities and should have 12320 as its Value data and Decimal as its base.
The second value needs to be renamed CoInitializeSecurityParam and should have 1 as its Value data and Decimal as its base.
Close the Registry Editor.
Restart the computer and check to see whether or not the problem still persists once it boots up.
Solution 2: Try clean booting the affected computer
- Press the Windows Logo key + R to open a Run dialog. Type msconfig into the Run dialog and click on OK.
- Navigate to the Services tab, enable the Hide all Microsoft services by checking the box beside it and click on Disable all.
Next, switch to the Startup tab and disable all start-up services. If you are using Windows 8/8.1 or 10, you are going to have to click on Open Task Manager when you get to the Startup tab and, one by one, right-click on the name of each of the applications listed and click on Disable in the context menu in order to do so. You can re-enable the applications later using the same procedure, but you should only re-enable apps that are really needed.
- Restart the PC and check to see if the problem persists once it boots up.
Solution 3: Reset the affected computer’s Winsock catalog
For some reason, many users affected by this issue have been able to get rid of it by simply resetting their computers’ Winsock catalogs. In order to reset a Windows computer’s Winsock catalog, you need to:
- Open the Start Menu.
- Search for “cmd”.
- Right-click on the search result titled cmd and click on Run as administrator. Doing so will launch an elevated Command Prompt.
- Type the following into the elevated Command Prompt and press Enter:
netsh winsock reset
- Once the command has been fully executed, close the elevated Command Prompt.
- Restart the computer. Check to see whether or not resetting the computer’s Winsock catalog did the trick once it boots up.
Solution 4: Allow Full Control of all relevant registry keys to Administrators using the Registry Editor
- Press the Windows Logo key + R to open a Run
- Type regedit into the Run dialog and press Enter to launch the Registry Editor.
- In the left pane of the Registry Editor, navigate to the following directory:
HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > services
- In the left pane of the Registry Editor, right-click on the gpsvc sub-key under the services key and click on Permissions… in the context menu.
- Click on Advanced.
- Navigate to the Owner
- Under the Change owner to: section, click on Administrators to select it, enable the Replace owner on subcontainers and objects option by checking the box beside it, click on Apply and then click on OK.
- Repeat steps 4–5.
- Click on Administrators to select it and click on Edit….
- Check the Allow box directly in front of Full Control and click on OK.
- Enable the Replace all child object permissions with inheritablepermissionsfromthisobject option by checking the box beside it.
- Click on Apply and then on OK.
- Click on Apply and then on OK, but this time in the Permissions for gpsvc
- Download the default configuration of the gpsvc registry key for the version of Windows that the affected computer is running on:
- Now, back in the Registry Editor, click on File >Import….
- In the Import Registry File dialog, navigate to where the registry file you downloaded in step 14 is located, click on the registry file to select it and click on Open.
- You may be asked to confirm the import of the registry file or the merging of it with the affected computer’s registry, so be sure to confirm the action.
- Once the downloaded registry file has been successfully imported and merged with the computer’s registry, restart the computer and then check to see whether or not the issue has been fixed when it boots up.
Solution 5: Turn Fast Startup off (for affected Windows 10 computers only)
Many users affected by this problem who have computers running on Windows 10 have had success with fixing this issue by turning off Fast Startup, a feature designed to allow Windows 10 computers to boot up faster but a feature that, in many cases, ends up becoming more of a nuisance than a blessing. In such cases, disabling Fast Startup has been able to fix this issue. The following are the two ways you can go about disabling Fast Startup:
Method 1
- Right-click on the Start Menu button to open the WinX Menu.
- Click on Power Options.
- Click on Choose what the power buttons do in the right pane of the window.
- Click on Change settings that are currently unavailable.
- Uncheck the checkbox beside Turn on Fast Startup (recommended), thus disabling it.
- Click on Save changes.
- Restart the computer.
Method 2
The second method that can be used to disable Fast Startup is to simply disable the Hibernate feature, deleting the hiberfile and disabling Fast Startup as a result. You should use this method if Method 1 doesn’t work or if you simply want to disable Fast Startup and gain a bit of disk space (the hiberfile takes up as much disk space as the amount of RAM your computer has) at the same time, although it should be noted that using this method will also result in the loss of the Hibernate feature.
- Right-click on the Start Menu button to open the WinX Menu.
- Click on Command Prompt (Admin) to launch an elevated Command Prompt.
- Type the following into the elevated Command Prompt and then press Enter:
- Close the elevated Command Prompt.
- Restart the computer.
Once you have used your preferred method to disable Fast Startup, you should no longer be seeing the “Failed to connect to a Windows service” error message on your Windows 10 computer.
Solution 6: Manually create registry keys and registry values
Before you do any registry configuration, we are recommending you to backup registry database. Why you need to do registry backup? In case of some misconfiguration, you can revert registry database to previous state when everything worked without new problems.
- Hold Windows logo and type regedit
- Right click on regedit and at choose Run as administrator
- Click Yes to confirm running regedit as Administrator
- Click File and then ..
- Type File name, in our example backup24072017, under Export range select All and click Save
- Navigate to following location:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Svchost
- On the right side you will see different value data. You need to select netsvcs
- Right click on netsvcs and then click Modify
- In next window you will see that gpvsc is missing. You will need to click at the end of one value data and press Enter, to write gpvsc, as shown in next image.
- Click OK
- Right click on Svchost and then choose New and click Key
- Type netsvcs and press Enter
- Right click on white window background, and choose New, and then click DWORD (32-bit) Value, regardless you are using 32-bit operating system or 64-bit operating system.
- Type name CoInitializeSecurityParam and press Enter
- Right click on CoInitializeSecurityParam and choose Modify
- Change value to 1 and click OK
- Right click on white window background, choose New, and then click DWORD (32-bit) Value, regardless you are using 32-bit operating system or 64-bit operating system
- Type name CoInitializeSecurityAllowLowBox and press Enter
- Right click on CoInitializeSecurityAllowLowBox and choose Modify
- Change value to 1 and click OK
- Right click on white window background, choose New, and then click DWORD (32-bit) Value, regardless you are using 32-bit operating system or 64-bit operating system
- Type name AuthenticationCapabilities and press Enter
- Right click on AuthenticationCapabilitiesand choose Modify
- Change value to 3020 and click OK
- Restart your Windows
- Hold Windowslogo and press R
- Type services.msc and press Enter
- Navigate to service names Group Policy Client and check is it running. If it is running, you successfully solved your problem.
Solution 7: Starting System Event Notification Service
It is possible that the System Event Notification Service has been disabled which can result in triggering this error. Therefore, in this step, we will be enabling and starting the System Event Notification Service. For that:
- Press “Windows” + “R” keys simultaneously to open the Run prompt.
- Type in “services.msc” and press “Enter“.
Typing in “Services.msc” and pressing Enter
- Locate the “SystemEvent NotificationService” and doubleclick on it.
Double-clicking on the “System Event Notification Service”
- Click on the “Startup Type” dropdown and select “Automatic“.
Selecting Automatic
- Click on the “Start” option and click on “Apply”.
- Click on “OK” and check to see if the issue persists.