The Enforced and Order properties are not changed. This command enables the link between the GPO named TestGPO and the MyOU organizational unit in the domain. The order specifies the precedence that the settings of the GPO take over conflicting settings in other GPOs that are linked, and enabled, to the same site, domain, or OU.Įxamples Example 1: Enable the link between a GPO and OU PS C:\> Set-GPLink -Name TestGPO -Target 'ou=MyOU,dc=contoso,dc=com' -LinkEnabled Yes If the GPO link is enforced, it cannot be blocked at a lower-level (in the Group Policy processing hierarchy) container. If the GPO link is enabled, the settings of the GPO are applied when Group Policy is processed for the site, domain or OU.
The Set-GPLink cmdlet sets the properties of a Group Policy Object (GPO) link.
Sets the properties of the specified GPO link.