Quantcast
Channel: Microsoft – JeffOps
Viewing all articles
Browse latest Browse all 120

Remove Group Policy Objects through PowerShell

$
0
0

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 }

Viewing all articles
Browse latest Browse all 120

Trending Articles