Gpo.Import Method (GpoBackup)
Imports the policy settings from a specified Group Policy object (GPO) backup.
Namespace: Microsoft.GroupPolicy
Assembly: Microsoft.GroupPolicy.Management (in Microsoft.GroupPolicy.Management.dll)
Syntax
public Gpo Import(
GpoBackup gpoBackup
)
public:
Gpo^ Import(
GpoBackup^ gpoBackup
)
member Import :
gpoBackup:GpoBackup -> Gpo
Public Function Import (
gpoBackup As GpoBackup
) As Gpo
Parameters
gpoBackup
Type: Microsoft.GroupPolicy.GpoBackupA GpoBackup object that represents the backed-up GPO on the file system from which the settings should be imported.
Return Value
Type: Microsoft.GroupPolicy.Gpo
Returns Gpo. The GPO with the new settings imported.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | gpoBackup is null. |
See Also
Import Overload
Gpo Class
Microsoft.GroupPolicy Namespace
Return to top