GpoLink.Target Property


Gets the LDAP distinguished name of the container (site, domain, or OU) to which the GPO is linked.

Namespace:   Microsoft.GroupPolicy
Assembly:  Microsoft.GroupPolicy.Management (in Microsoft.GroupPolicy.Management.dll)


public string Target { get; }
property String^ Target {
    String^ get();
member Target : string with get
Public ReadOnly Property Target As String

Property Value

Type: System.String

Returns String. The LDAP distinguished name of a site, domain, or OU.


For example, the LDAP distinguished name of the Marketing OU in the domain is “ou=marketing, dc=contoso, dc=com”.

See Also

GpoLink Class
Microsoft.GroupPolicy Namespace

Return to top