GroupPolicyObject.IsUserEnabled Property


Gets or sets a value that specifies whether the user portion of the Group Policy object (GPO) is enabled.

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


public bool IsUserEnabled { get; set; }
property bool IsUserEnabled {
    bool get();
    void set(bool value);
member IsUserEnabled : bool with get, set
Public Property IsUserEnabled As Boolean

Property Value

Type: System.Boolean

Returns Boolean. true to enable the user portion of the GPO; false to disable it.


Exception Condition

The GroupPolicyObject is disposed.

See Also

GroupPolicyObject Class
Microsoft.GroupPolicy Namespace

Return to top