< Back

Restore-GptPolicy

Tue Jan 14, 2020 12:13 am

NAME Restore-GptPolicy



SYNOPSIS

Performs a full restore of GPOs exported with Backup-GptPolicy.





SYNTAX

Restore-GptPolicy [-Path] <String> [[-Name] <String[]>] [[-Domain] <String>] [[-IdentityMapping] <Hashtable>]

[<CommonParameters>]





DESCRIPTION

Performs a full restore of GPOs exported with Backup-GptPolicy.

This includes executing all the relevant import commands in the optimal order.





PARAMETERS

-Path <String>

The root path into which the backup was exported.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Name <String[]>

Only restore GPOs with matching name.



Required? false

Position? 2

Default value *

Accept pipeline input? false

Accept wildcard characters? false



-Domain <String>

The domain into which to restore the policy objects.



Required? false

Position? 3

Default value $env:USERDNSDOMAIN

Accept pipeline input? false

Accept wildcard characters? false



-IdentityMapping <Hashtable>

A hashtable mapping source identities to destination identities.

Use this to map groups that do not share the same name between source and destination.



Required? false

Position? 4

Default value @{}

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Restore-GptPolicy -Path '.'



Perform a full restore/import of the backup written to the current folder.











RELATED LINKS