Export-AdmfGpo
SYNOPSIS
Creates an export of GPO objects for use in the Domain Management module.
SYNTAX
__AllParameterSets
Export-AdmfGpo [-Path] <string> [-GpoObject] <Object> [[-Domain] <string>]
[[-OldExportMode] <string>] [-ExcludeWmiFilter] [<CommonParameters>]
DESCRIPTION
Creates an export of GPO objects for use in the Domain Management module. Use this command to record new GPO data for the module.
EXAMPLES
EXAMPLE 1
Get-GPO -All | Where-Object DisplayName -like 'AD-D-SEC-T0*' | Export-AdmfGpo -Path .
Exports all GPOs named like 'AD-D-SEC-T0*' to the current path
PARAMETERS
-Domain
The domain to export from.
Type: System.String
DefaultValue: $env:USERDNSDOMAIN
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 2
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-ExcludeWmiFilter
Do not export WmiFilter assignments of GPOs By default, when exporting GPOs, the associated WMi Filter-Name is also exported
Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-GpoObject
The GPO objects to export. Only accepts output of Get-GPO
Type: System.Object
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 1
IsRequired: true
ValueFromPipeline: true
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-OldExportMode
How should this command deal with the folders of previous GPO backups? By default, when detecting the folders of previous GPO backups, this command will prompt the user, whether to continue, stop or delete & continue.
Options:
- Interactive (default): Ask the user for a choice, defaulting to keep the folders.
- Delete: Previous backup folders will be deleted without prompting
- Ignore: Previous backup folders will be kept
Type: System.String
DefaultValue: Interactive
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 3
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Path
The path to which to export the GPOs.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.