@thwr said in Flushing GPOs:
@dbeato said in Flushing GPOs:
Get-Content c:\temp\gpos.txt | foreach { Get-GPO -Name "$_" | Remove-GPO }You need to setup the settings to Delete or changed to not configured, wait until it applies and then delete the GPOs after confirming they are not applied any longer.
http://jeffwouters.nl/index.php/2013/08/remove-group-policy-objects-through-powershell/
I bet you could do something like this to set all GPOs to "on delete remove from client" too
This assumes a txt file with all GPO names. You could also just use Get-GPO