< Back

Backup-GptPolicy

Tue Jan 14, 2020 12:09 am

NAME Backup-GptPolicy



SYNOPSIS

Creates a full backup of all specified GPOs.





SYNTAX

Backup-GptPolicy [-Path] <String> [[-Name] <String>] [[-GpoObject] <Object>] [[-Domain] <String>] [[-Identity]

<String[]>] [<CommonParameters>]





DESCRIPTION

Creates a full backup of all specified GPOs.

This includes permissions, settings, GPO Links and WMI Filter.





PARAMETERS

-Path <String>

The path to the folder to export into.

Folder must exist.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Name <String>

Filter Policy Objects by policy name.

By default, ALL policies are targeted.



Required? false

Position? 2

Default value *

Accept pipeline input? false

Accept wildcard characters? false



-GpoObject <Object>

Specify explicitly which GPOs to export.

Accepts output of Get-GPO



Required? false

Position? 3

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Domain <String>

The source domain to export from.



Required? false

Position? 4

Default value $env:USERDNSDOMAIN

Accept pipeline input? false

Accept wildcard characters? false



-Identity <String[]>

Additional identities to export.

Identites are names of groups that are used for matching groups when importing policies.



Required? false

Position? 5

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:\\>Backup-GptPolicy -Path .



Export all policies to file.











RELATED LINKS