Thursday, February 19, 2026

Clear out GPOs

These commands I found useful when you needed to clear out old GPOs and have them reloaded. This removes all the GPOs using registry edits and when the machine does an AD refresh, it'll get the new ones applied. These commands can be run from a CMD.

reg delete "HKEY_LOCAL_MACHINE\Software\Policies\Microsoft" /f
reg delete "HKEY_CURRENT_USER\Software\Policies\Microsoft" /f
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Group Policy" /f
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies" /f
gpupdate /force
gpresult /h c:\temp\results.html

No comments:

Post a Comment

Introduction

Introduction

I've worked in IT for many years at this point. I thought I would share some of the things I had learned. When I went to review my note...