How to Fix “gpupdate /force” Command Not Working Issue?

When attempting to update the Group Policy on a client PC connected to the Domain Controller, the error “Computer Policy could not be updated successfully” may occur, accompanied by various error messages, or you may experience a prolonged wait at the “Updating Policy” stage.

This error can arise for multiple reasons, such as domain resolution failure or Active Directory replication errors—which are specified within the error message itself. Additionally, this issue may manifest when domain user credentials have expired or become corrupt.

1. Clear Domain User Credentials

The error frequently surfaces when the Domain user’s login credentials stored in the Credentials Manager become compromised or outdated.

Expired or corrupt credentials can obstruct the application of Group Policy updates to the computer. To resolve this, clear the domain user credentials to eliminate any potentially problematic stored credentials.

  1. Download PSTools from the provided link.
  2. Right-click the PSTools zip folder and choose Extract to PSTools.
  3. After extraction, navigate to the folder and minimize the window.
  4. Click the Start Menu and search for Command Prompt.
  5. Right-click on it and select Run as administrator.
  6. Maximize the window with the PSTools folder.
  7. Copy the address from the folder’s address bar.
  8. In the command prompt, type `cd ` and press enter.
  9. Run `PsExec64.exe -i -s cmd.exe` for 64-bit operating systems, or `PsExec.exe -i -s cmd.exe` for 32-bit systems. A new command prompt window will open.
  10. Type `rundll32.exe keymgr.dll, KRShowKeyMgr` in the new command prompt window, and press Enter. The Stored User Names and Passwords window will appear.
  11. Select and remove the credentials one by one.
  12. Repeat this for all stored credentials.
  13. Close the windows and, in the command prompt, type `gpupdate /force` and hit Enter to force the Group Policy update.
  14. After these steps, the issue should be resolved.

2. Check Event Viewer

If the problem persists, consult the Event Viewer for further investigation. Errors logged in the Event Viewer relevant to Group Policy can provide insights into the underlying cause.

  1. Press the Start Menu and type Event Viewer.
  2. Hit Enter to open it.
  3. From the left pane, select System.
  4. Examine the Group Policy-related errors in the right pane and apply suitable fixes as indicated by the error messages. If problems with name resolution or the domain controller persist, consider following the guidance in this article.

3. Restart the Group Policy Service

The Group Policy service is imperative for implementing administrator-configured settings on computers and users. If this service is disrupted, the associated settings will not take effect. Therefore, verify that the Group Policy service is active.

  1. Right-click on the Start Menu and choose Run.
  2. Input `services.msc` and hit OK to open the services menu.
  3. Locate the Group Policy Client, right-click on it, and select Properties.
  4. Switch the Startup type to Automatic.
  5. Click Start, then Apply, and finally OK.

4. Recreate the Registry.pol File

The Registry.pol file in Windows contains local Group Policy settings. A missing or corrupt Registry.pol file may prevent updates. To rectify this, recreate the file by removal or renaming.

  1. Press the Win + E keys to open File Explorer.
  2. Navigate to the directory:
    C:\Windows\System32\GroupPolicy\Machine
  3. Here, delete the Registry.pol file and restart the computer.
  4. Press the Start Menu, search for Command prompt, and run it as an administrator with the key combination Ctrl + Alt + Shift + Enter.
  5. Run the `gpupdate /force` command and check if the issue is resolved.

If the above solutions do not resolve the issue, consider resetting the Group Policy to its default settings, although be aware that this may cause the loss of important configurations. It may nevertheless be worth it to rectify the underlying problem.

ABOUT THE AUTHOR

Hamza Mohammad Anwar


Hamza Mohammad Anwar is an intermediate JavaScript web developer with a focus on developing high-performance applications using MERN technologies. His skill set includes expertise in ReactJS, MongoDB, Express NodeJS, and other related technologies. Hamza is also a Google IT Certified professional, which highlights his competence in IT support. As an avid problem-solver, he recreates errors on his computer to troubleshoot and find solutions to various technical issues.