< Back

Import-GptObject

Tue Jan 14, 2020 12:12 am

NAME Import-GptObject



SYNOPSIS

Import Group Policy Objects previously exported using Export-GptObject.





SYNTAX

Import-GptObject [-Path] <String> [[-Name] <String[]>] [[-Domain] <String>] [<CommonParameters>]





DESCRIPTION

Import Group Policy Objects previously exported using Export-GptObject.





PARAMETERS

-Path <String>

The path where the GPO export folders are located.

Note: GPO export folders have a GUID as name.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Name <String[]>

Only import GPOs with a matching name.



Required? false

Position? 2

Default value *

Accept pipeline input? false

Accept wildcard characters? false



-Domain <String>

THe destination domain to import into.



Required? false

Position? 3

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



Import all GPO objects exported into the current folder.











RELATED LINKS