< Back

Export-GptLink

Tue Jan 14, 2020 12:09 am

NAME Export-GptLink



SYNOPSIS

Generates a full dump of all GPO links.





SYNTAX

Export-GptLink [-Path] <String> [[-Domain] <String>] [<CommonParameters>]





DESCRIPTION

Generates a full dump of all GPO links.

This command will enumerate all OUs and create an export file of them.

This is used to restore links of exported GPOs when restoring them.





PARAMETERS

-Path <String>

The path in which to export the data.

Specify an existing folder.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Domain <String>

The domain to retrieve the data from.



Required? false

Position? 2

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-GptLink -Path .



Exports all GPO links into the current folder.











RELATED LINKS