How to clear the group policy cache on a machine

0
clear the group policy cache on a machine

Goal

Clear the group policy cache on a machine

Solution

Option 1

  1. Open My Computer/Computer
  2. In the URL or address bar paste: %windir%\system32\GroupPolicy
  3. Right click and delete the: Machine and User folders to clear local group policy cache
  4. Restart the computer to reapply the group policies

You can also run the little PowerShell oneliner as Administrator to remove the Group Policy folder and all files below:

Remove-Item "$env:windir\system32\GroupPolicy" -Force -Recurse

Option 2

  1. Delete the “HKLM\Software\Policies\Microsoft” Key (looks like a folder).
  2. Delete the “HKCU\Software\Policies\Microsoft” Key
  3. Delete the “HKCU\Software\Microsoft\Windows\CurrentVersion\Group Policy Objects” Key.
  4. Delete the “HKCU\Software\Microsoft\Windows\CurrentVersion\Policies” Key.

Option 3

  1. Remove the computer from the domain – (change to a Workgroup)
  2. Restart computer
  3. Run gpupdate /force
  4. Rejoin the domain

Found priceless insights in this blog? Support the author’s creativity – buy them a coffee!

Leave a Reply

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