Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the (unique) name of the Group Policy object (GPO).
Namespace: Microsoft.GroupPolicy
Assembly: Microsoft.GroupPolicy.Management.Interop (in Microsoft.GroupPolicy.Management.Interop.dll)
Syntax
public string Name { get; }
public:
property String^ Name {
String^ get();
}
member Name : string with get
Public ReadOnly Property Name As String
Property Value
Type: System.String
Returns String.
Exceptions
| Exception | Condition |
|---|---|
| ObjectDisposedException | The GroupPolicyObject is disposed. |
Remarks
For Active Directory policy objects, Name is a GUID. For a local GPO, Name is the string "Local". For remote objects, Name is the computer name.
Use the DisplayName property to get the display name for the GPO.
See Also
GroupPolicyObject Class
Microsoft.GroupPolicy Namespace
Return to top