Share via


StarterGpo.Backup Method (String, String)

 

Backs up the Starter Group Policy object (GPO) to the specified directory.

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

Syntax

public StarterGpoBackup Backup(
    string directory,
    string comment
)
public:
StarterGpoBackup^ Backup(
    String^ directory,
    String^ comment
)
member Backup : 
        directory:string *
        comment:string -> StarterGpoBackup
Public Function Backup (
    directory As String,
    comment As String
) As StarterGpoBackup

Parameters

  • directory
    Type: System.String

    The path to the backup directory.

  • comment
    Type: System.String

    A comment to include with the Starter GPO backup. Specify null for no comment.

Return Value

Type: Microsoft.GroupPolicy.StarterGpoBackup

Returns StarterGpoBackup. An object that represents the Starter GPO backup on the file system.

Exceptions

Exception Condition
ArgumentException

directory is an empty string (“”).

ArgumentNullException

directory is null.

See Also

Backup Overload
StarterGpo Class
Microsoft.GroupPolicy Namespace

Return to top