Powershell to add Domain Computer group in all GPO's

 $gpos = get-gpo -all

foreach ($gpo in $gpos)
{
Set-GPPermissions -Name $gpo.DisplayName -PermissionLevel GpoRead -TargetName “Domain Computers” -TargetType Group
}

Comments

Popular posts from this blog

Service Principal Names (SPNs) SetSPN Syntax (Setspn.exe)

altiris software key

Group Policy: Troubleshooting Overview