PowerShell Script of the Week: July 20th 2015 – Edit Permission on multiple GPOs on your domain.
Simple Script that came in hand today:
|$GPOs = get-content C:\1\gpos.txt|
Foreach ($GPO in $GPOs)
Set-GPPermissions -Name $GPO -TargetName “Domain Admins” -TargetType Group -PermissionLevel GpoEdit
The “gpos.txt” located at C:\1\gpos.txt contains: