GPDomain.RestoreStarterGpo Method (StarterGpoBackup)
Restores the Starter Group Policy object (GPO) from the specified Starter GPO backup.
Namespace: Microsoft.GroupPolicy
Assembly: Microsoft.GroupPolicy.Management (in Microsoft.GroupPolicy.Management.dll)
Syntax
public StarterGpo RestoreStarterGpo(
StarterGpoBackup starterGpoBackup
)
public:
StarterGpo^ RestoreStarterGpo(
StarterGpoBackup^ starterGpoBackup
)
member RestoreStarterGpo :
starterGpoBackup:StarterGpoBackup -> StarterGpo
Public Function RestoreStarterGpo (
starterGpoBackup As StarterGpoBackup
) As StarterGpo
Parameters
starterGpoBackup
Type: Microsoft.GroupPolicy.StarterGpoBackupA StarterGpoBackup object that represents a Starter GPO backup on the file system.
Return Value
Type: Microsoft.GroupPolicy.StarterGpo
Returns StarterGpo. The restored Starter GPO.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | starterGpoBackup is null. |
Remarks
You can restore a Starter GPO only to the domain in which the Starter GPO was originally created. This is because the operation restores the Starter GPO with its original Starter GPO GUID and policy settings.
See Also
RestoreStarterGpo Overload
GPDomain Class
Microsoft.GroupPolicy Namespace
Return to top