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)

Syntax

public string Target { get; }
public:
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.

Remarks

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

See Also

GpoLink Class
Microsoft.GroupPolicy Namespace

Return to top