Skip to content

Published: June 6, 2013 | Applies to:

This article will show you how to reset Local Group Policy Editor in Windows 7, 8 using Command Prompt, Batch File or a VBScript.

We have posted a few number of articles based on the modification of policies inside Local Group Policy Editor in the past. You can check them here. There may be certain scenarios when you have modified polices excessively and your system is messed up with them. Due to this, you can face various issues in the behavior of Windows like for example, missing Users tab from PC Settings. There are so many issues like this can be appeared.

If you have a bunch of important data on your Windows 8 and you want to avoid re-installation but still to fix the computer then you can do a reset of polices at once. Resetting policies is also rather better idea then going for resetting or refreshing Windows 8.

In this article, I’ll tell you the way to reset polices of Local Group Policy Editor at once. This will also only reset registry entries for policies that had been changed in the Local Group Policy Editor itself to default, and not those changed using a REG file, manually in Registry Editor, or any other means.

Reset Local Group Policy Editor Using Command Prompt

1. This can be done easily on a dual boot installation. From the Choose an operating system screen, pick Change defaults or choose other options.

2. Now pick Troubleshoot in the following screen:

3. In the Troubleshoot screen, pick Advanced Options:

4. Finally, from Advanced Options, choose Command Prompt:

5. Now you’re prompted to select and user to run Command Prompt along with password. So we are now on elevated Command Prompt.

To reset Local Group Policy Editor, type the following commands one by one:

  • diskpart
  • list volume (from it find out the default drive or label of it on which Windows is installed, its not C drive always)
  • exit
  • RD /S /Q “D:\Windows\System32\GroupPolicy” (assuming Windows is installed on D drive)
  • RD /S /Q “D:\Windows\System32\GroupPolicyUsers” (assuming Windows is installed on D drive)

That’s it. You have done reset.

Reset GPEDIT Using Batch File

To make your work simpler, we have created a batch (.bat) processing file, which you can download from following link and run it to reset Local Group Policy Editor:

Download Link

Reset GPEDIT Using VBScript

As an alternative to batch file provided above, you can use this VBScript to do the same job:

Download Link

Hope you find the article useful!

SHARE: Facebook Google+ Twitter


  • why i don’t have a Local Group Policy in my Windows 8 ?

  • Kapil Arya

    ^^ Group Policy Editor is available in Pro and Enterprise editions :)

  • Thank you, I have been going around in circles trying to turn Windows Defender on with no luck until I downloaded your batch file and ran it now everything is working again.

  • Kapil Arya

    ^^ Glad we could help :)

  • The lines in the bat file differ from the instructions given.
    RD /S /Q “D:\Windows\System32\GroupPolicy\Users” in the instructions and
    RD /S /Q “D:\Windows\System32\GroupPolicyUsers” in the Bat file.

    Trying by hand, the /Users line didnt work so I came back for the BAT file.


  • Kapil Arya

    ^^ You are correct 😊 post updated. Thanks for your efforts!

  • Leave a Reply

    Your email address will not be published. Required fields are marked *

    What's New

    Recent Comments

    • Jax : Didn't work for me. Couldn't delete the folders suggested. ...

      10 hours ago

    • Neeraja : Thank you for the fix. It worked perfectly for me....

      14 hours ago

    • Kapil Arya : ^^ Refer previous comments here....

      18 hours ago

    • Craig : However, you did not do Web Credentials, you did Windows Cre...

      1 day ago