Blog

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.txtForeach ($GPO in $GPOs){Set-GPPermissions -Name $GPO -TargetName “Domain Admins” -TargetType Group -PermissionLevel GpoEdit} The “gpos.txt” located at C:\1\gpos.txt contains: Test-Lab-Win7 Building1Test-Lab-Win7 Building2Test-Lab-Win7 Building3Test-Lab-Win7 Building4Test-Lab-Win7 Building5