< Back

Export-GptObject

Tue Jan 14, 2020 12:10 am

NAME Export-GptObject



SYNOPSIS

Creates a backup of all specified GPOs.





SYNTAX

Export-GptObject [-Path] <String> [[-Name] <String[]>] [[-GpoObject] <Object>] [[-Domain] <String>]

[<CommonParameters>]





DESCRIPTION

Creates a backup of all specified GPOs.





PARAMETERS

-Path <String>

The path in which to generate the Backup.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Name <String[]>

The name to filter GPOs by.

By default, ALL GPOs are exported.



Required? false

Position? 2

Default value *

Accept pipeline input? false

Accept wildcard characters? false



-GpoObject <Object>

Select the GPOs to export by specifying the explicit GPO object to export.



Required? false

Position? 3

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Domain <String>

The domain from which to export the GPOs



Required? false

Position? 4

Default value $env:USERDNSDOMAIN

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:\\>Export-GptObject -Path .



Generate a GPO export of all GPOs in the current folder.











RELATED LINKS