субота, 9 грудня 2023 р.

Очистка данных групповой политики



clearing old GPO settings

Also, I have a common way to clear cached GPO, you can follow the steps to realize.
  1. Let the PC out of the domain firstly. If you do not let the PC out of domain, you just can clear the local cached GPO.
  2. Browse to “C:\ProgramData\Microsoft\Group Policy\History” 
  3. Delete all of the contents under the History folder
  4. Open the command prompt and run “GPUpdate /force”
  5. Reboot the system

DEL /S /F /Q "%ALLUSERSPROFILE%\Application Data\Microsoft\Group Policy\History\*.*"
REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies /f
REG DELETE HKLM\SOFTWARE\Policies\Microsoft /f
REG DELETE HKLM\SOFTWARE\Policies\Microsoft /f
REG DELETE "HKCU\Software\Microsoft\Windows\Currentversion\Group Policy Objects" /f
REG DELETE HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies /f
DEL /F /Q C:\WINDOWS\security\Database\secedit.sdb
Klist purge
gpupdate /force
gpupdate /force /boot
gpupdate /boot

Немає коментарів:

Дописати коментар