How to reset group policy in windows server 2016
To reset all current settings of the local group policies, you must delete the Registry.pol files in the GroupPolicy directory which you mentioned, you can do it with the following commands, run them in the Command Prompt (Admin):
1 2 |
RD /S /Q "%WinDir%\System32\GroupPolicyUsers" RD /S /Q "%WinDir%\System32\GroupPolicy" |
Then run the following:
1 |
Gpupdate /Force |
These commands will reset all local group policy settings in the Computer Configuration and User Configuration sections.
To reset the Local security policies:
1 |
secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose |
Then perform a reboot.
In the event that problems with security policies still exist, try manually renaming the checkpoint file of the local security policy database %windir%\security\database\edb.chk.
1 |
ren %windir%\security\database\edb.chk edb_old.chk |
Then run again:
1 |
Gpupdate /Force |
And then reboot one last time.