Yesterday I explained how you can backup Group Policy Objects through PowerShell.
Today I’ll show you how you can remove them.
Again I’m using the same text file as shown in my previous post with the names of the GPO’s.
Now to remove them, simply do:
Get-Content c:\temp\gpos.txt | foreach { Get-GPO -Name "$_" | Remove-GPO }