top of page

PowerShell | Link GP to OU

<#
Summary:  
          Get list of OU paths from file
          Loop and apply group policy link to each OU           
                            
Author:   Scott Head
Date:     02/09/2022
Version:  1.0 
#>


$OUS=Get-Content C:\temp\OUS.txt

​

Foreach($OU in $OUS){       

    New-GPLink -Name "System-Wireless-SSID Only" -Target $OU -LinkEnabled Yes
}

bottom of page