FacebookTwitterLinkedIn

How to Fix "Failed to connect to a Windows service" Error on Windows 10

How to Fix the "Failed to connect to a Windows service" Error in Windows 10

Windows services run in the background and are launched through Service Control Manager that users can use to start/stop and manage all services. For example, you can instruct a service to run when the Windows operating system starts or trigger the service manually.

failed to connet to a windows service

You may have encountered the "Failed to connect to a Windows service" error. As this is only the headline of the error message, further details might say that the Group Policy Client service, System Event Notification service, or other Windows service is failing to connect. There is no single solution to this problem because it largely depends on the specific service mentioned in the error message.

In this guide, we focus on the problem relating to the Group Policy Client service. To fix the problem, you might need to edit Windows Registry, perform a clean boot, and turn off the fast startup feature.

Read the guide below and try each method to see which works.

Video Showing How to Fix "Failed to connect to a Windows service" Error:

Table of Contents:

Edit Windows Registry

Windows Registry is a collection of databases of configuration settings in Microsoft Windows operating systems. Note that incorrectly changing Windows Registry can damage the operating system irreversibly.

To open Registry Editor, open the Run dialog box. Press Windows Windows key + R or right-click Start and select "Run".

edit windows registry step 1

Now type the "regedit" command and press Enter or click "OK".

edit windows registry step 2

Now follow this path: "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion" and find and select the SvcHost key. Check if you see "GPSvcGroup" within the SvcHost key on the right pane.

If not, create it manually by right-clicking the SvcHost key and selecting "New", and then "Multi-String Value".

edit windows registry step 3

A new multi-string value will be created. Name this new multi-string value as "GPSvcGroup" by right-clicking it and selecting "Rename". Name it as GPSvcGroup and press Enter.

edit windows registry step 4

Now double-click the newly-created GPSvcGroup multi-string value and type "GPSvc" in its Value data field. Click "OK" to save the changes.

edit windows registry step 5

Right-click the Svchost key, select "New" and click "Key". Name the newly created key as "GPSvcGroup".

edit windows registry step 6

Now create several DWORD (32-bit) values on the right pane, in the GPSvcGroup key. Right-click the background of the right pane when the GPSvcGroup key is selected. Select "New", and then "DWORD (32-bit) Value". Repeat this twice. Two new DWORD (32-bit) values should now be created.

edit windows registry step 7

Right-click the first value, select "Rename", and name it "AuthenticationCapabilities". Double-click the AuthenticationCapabilities REG_DWORD and set "Value data" to "12320". Select the "Decimal" option under the Base section. Click "OK" to save the changes.

edit windows registry step 8

Rename the second newly-created value to "CoInitializeSecurityParam", double-click it, and set "Value data" to "1". Select the "Decimal" option under the Base section. Click "OK" to save the changes.

edit windows registry step 9

Now close the Registry Editor and restart your computer. Check if the "Failed to connect to a Windows service" Group Policy Client service problem persists.

[Back to Table of Contents]

Perform a Clean Boot

If the first method does not solve the problem, you can perform a Clean Boot. When you start Windows using a normal startup operation, several applications and services start automatically and then run in the background. These programs include basic system processes, antivirus software, system utility applications, and other previously installed software. These applications and services can cause software conflicts.

A clean boot starts Windows using a minimal set of drivers and startup programs. This helps to eliminate software conflicts that occur when you install a program or update. A program or service launched on system startup may be causing the "Failed to connect to a Windows service" Group Policy Client service problem.

To perform a clean boot, type "system configuration" in Search and click the "System Configuration" result.

perform a clean boot step 1

In the System Configuration window, click on the "Services" tab and mark the "Hide all Microsoft services" checkbox. Then, click on "Disable all".

perform a clean boot step 2

Click the "Startup" tab and click "Open Task Manager".

perform a clean boot step 3

Under the Task Manager Startup tab, select the first application and click "Disable". Disable all applications one by one, repeating this step. Once all programs are disabled, close Task Manager and click "OK" in the System Configuration Startup tab.

Restart the computer and check if the "Failed to connect to a Windows service" persists.

perform a clean boot step 4

[Back to Table of Contents]

Reset Winsock

You can also try to reset the Winsock Catalog by using one of the netsh commands. Netsh is a command-line scripting utility that allows you to, locally or remotely, display or modify the network configuration of a computer that is currently running. Netsh also provides a scripting feature to run a group of commands in batch mode against a specified computer.

For this method, you will need to open an elevated Command Prompt. Type "command prompt" in Search and right-click on the "Command Prompt" result. Choose "Run as administrator" to run it with administrative privileges.

When you select "Run as administrator", a User Account Control prompt will appear asking if you allow the Command Prompt to make changes to your computer. Click "Yes".

reset winsock step 1

Now type the following command and press Enter: "netsh winsock reset". Close Command Prompt and restart the computer.

reset winsock step 2

[Back to Table of Contents]

Turn off Fast Startup Feature

Fast startup is a feature on Windows 8 and 10 that provides a faster boot time when starting up your computer. It is a useful feature and one that most people use without knowing. However, some people disable it immediately when they receive a new Windows computer. Leaving fast startup enabled should not harm your PC since it is a Windows feature. However, it might cause the "Failed to connect to a Windows service" problem.

To disable Fast Startup, go to Search and type "power". Click on the "Choose power plan" result to open it.

turn off fast startup feature step 1

In the Power Options window, click "Choose what the power buttons do".

turn off fast startup feature step 2

Click on "Change settings that are currently unavailable" and then uncheck the "Turn on fast startup (recommended)" option (if it is enabled). Click "Save changes", restart the computer, and check if the problem is now solved.

turn off fast startup feature step 3

We hope that one of the solutions above was effective in solving this problem.

[Back to Top]

▼ Show Discussion

About the author:

Rimvydas Iliavicius

Rimvydas is a researcher with over four years of experience in the cybersecurity industry. He attended Kaunas University of Technology and graduated with a Master's degree in Translation and Localization of Technical texts. His interests in computers and technology led him to become a versatile author in the IT industry. At PCrisk, he's responsible for writing in-depth how-to articles for Microsoft Windows. Contact Rimvydas Iliavicius.

Our guides are free. However, if you want to support us you can send us a donation.

About PCrisk

PCrisk is a cyber security portal, informing Internet users about the latest digital threats. Our content is provided by security experts and professional malware researchers. Read more about us.

Malware activity

Global malware activity level today:

Medium threat activity

Increased attack rate of infections detected within the last 24 hours.