Share via


GroupPolicyExtension.Save Method (Boolean)

 

Saves the specified Group Policy object (GPO) section for the GPO.

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

Syntax

protected void Save(
    bool computerConfiguration
)
protected:
void Save(
    bool computerConfiguration
)
member Save : 
        computerConfiguration:bool -> unit
Protected Sub Save (
    computerConfiguration As Boolean
)

Parameters

  • computerConfiguration
    Type: System.Boolean

    true to save computer settings; false to save user settings.

Exceptions

Exception Condition
InvalidOperationException

The GPO is not yet open.

-or-

The GPO is open for read only.

ObjectDisposedException

The GroupPolicyExtension is disposed.

See Also

GroupPolicyExtension Class
Microsoft.GroupPolicy Namespace

Return to top