Windows Tutorials

How to reset all Local Group Policy settings using Command Prompt

In this tutorial I will be showing you how to use CMD to reset all Local Group Policy settings. Once a computer is removed from a domain it may have many modified settings, you can quickly reset all the Group Policy Objects to their defaults with Command Prompt.

To reset the Group Policy settings with a command line, use these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to reset all the Group Policy settings and press Enter:

RD /S /Q "%WinDir%\System32\GroupPolicyUsers" && RD /S /Q "%WinDir%\System32\GroupPolicy"

4. Type the following command to update the changes in the Local Group Policy console and press Enter:

gpupdate /force

5. To be on the safe side go ahead and reboot the computer. You should be good to go.


Discover more from Patrick Domingues

Subscribe to get the latest posts sent to your email.

author avatar
Patrick Domingues

Leave a Comment

Stay Informed

Receive instant notifications when new content is released.