GPO Reset By PowerShell
Bulk Reset Group Policy Settings PS:
(gpedit.msc)
Remove-Item -Path "C:\Windows\System32\GroupPolicy\*" -Force -Recurse
Remove-Item -Path "C:\Windows\System32\GroupPolicyUsers\*" -Force -Recurse
gpupdate /force
Reset Local Security Policy Settings to Default in Windows CMD:
(secpol.msc)
secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose
Log Wiew:
%windir%\security\logs\scesrv.log for detail info.
This post is licensed under CC BY 4.0 by the author.