Linking a GPO to an OU

Updated: February 28, 2009

Applies To: Windows Server 2008 R2

This topic explains how to use the Active Directory module for Windows PowerShell to link a Group Policy object (GPO) to an organizational unit (OU).

The following example demonstrates how to link the GPO ManagedGroupsGPO to the OU ManagedGroups in the Fabrikam.com domain:

New-GPLink -Name ManagedGroupsGPO -Target "OU=ManagedGroups,DC=Fabrikam,DC=com" -order 1 –enforced

For a full explanation of the parameters that you can pass to New-GPLink, at the Active Directory module command prompt, type Get-Help New-GPLink -detailed, and then press ENTER.

Community Additions

ADD
Show: