PreferenceExtension.Save Method ()

 

Saves the GPO section (Computer Configuration or User Configuration) for the Group Policy object (GPO).

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

Syntax

public void Save()
public:
void Save()
member Save : unit -> unit
Public Sub Save

Exceptions

Exception Condition
InvalidOperationException

The GPO is not yet open.

-or-

The GPO is open for read only.

ObjectDisposedException

The GroupPolicyExtension is disposed.

Remarks

The GPO section that is currently being edited is saved. The section that is currently being edited is indicated by the IsComputerConfiguration property.

See Also

Saveā€‚Overload
PreferenceExtension Class
Microsoft.GroupPolicy Namespace

Return to top