RD /S /Q "%WinDir%System32GroupPolicyUsers" && RD /S /Q "%WinDir%System32GroupPolicy"
gpupdate.exe /force
It is also possible that the GPSVC registry keys are missing or corrupted, which prevents the service from working properly. Such problems can be overcome by modifying the relevant values as shown below.
Before proceeding, you should make a backup of the Registry just to be safe. Once that's done, follow these steps to continue:
1. Press the Win + R key combination to open Run.
2. Type "regedit" in Run and press Enter.
3. Click Yes in the User Account Contro prompt.
4. In the Registry Editor, navigate to the location below:
ComputerHKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionSvchost
5. Right click on Svchost and select New > Key .
6. Name this key GPSvcGroup.
7. Double-click GPSvcGroup and right-click anywhere in the right pane.
8. Select New > DWORD (32-bit) Value and rename this value to AuthenticationCapabilities .
9. Double-click AuthenticationCapabilities and select Base to Decimal .
10. Enter "12320" in the Value data and click OK.
11. Now, create another key CoInitializeSecurityParam in the same way.
12. Select Base as Hexadecimal and enter "1" in Value data .
13. Click OK to save the changes and then restart the PC. Hopefully on reboot you will no longer get this error.
In addition to these specific fixes, you can also try performing a system restore or system scan using the built-in Windows SFC and DISM tools. System Restore will help revert the system to an earlier, error-free state, while performing a system scan will help fix any corruptions that may have contributed to the problem.