Post

GPO Reset By PowerShell

GPO Reset By PowerShell

Windows işletim sistemlerinde Grup İlkesi (Group Policy - GPO) ve Yerel Güvenlik İlkesi (Local Security Policy) ayarları PowerShell ve CMD komutlarıyla varsayılan haline döndürülebilir.

Nasıl Kullanılır?

1
2
3
4
5
6
7
8
9
10
11
12
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.