Share via


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)

Syntax

public bool IsUserEnabled { get; set; }
public:
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.

Exceptions

Exception Condition
ObjectDisposedException

The GroupPolicyObject is disposed.

See Also

GroupPolicyObject Class
Microsoft.GroupPolicy Namespace

Return to top