How to remove a tattooed registry setting from a GPO

by Mitch Tulloch [Published on 24 Oct. 2012 / Last Updated on 28 Aug. 2012]

A tip on using PowerShell to remove a tattooed registry setting from a GPO.

You created a custom ADM file to push a registry setting to some machines, and it tattooed the registry of the targeted machines as a result.  Now you want to reverse this by pruning the registry setting from the registry.pol file of the GPO.  How can you do this?

Use PowerShell as follows:

Remove-GPRegistryValue -Name NAME -Key KEY -valueName POLICY

Where NAME is the name of the GPO, KEY is the Registry key you need to modify, and POLICY is the name of the registry value you want to remove.

Mitch Tulloch is a eight-time recipient of the Microsoft Most Valuable Professional (MVP) award and widely recognized expert on Windows administration, deployment and virtualization. For more tips by Mitch you can follow him on Twitter or friend him on Facebook.


See Also

The Author — Mitch Tulloch

Mitch Tulloch is a well-known expert on Windows Server administration and cloud computing technologies. He has published over a thousand articles on information technology topics and has written, contributed to or been series editor for over 50 books.

Featured Links