Repository navigation
Export ADConfig
Exports the configuration of an Active Directory forest to an XML file.
Export-ADConfig [[-InputObject] <Object>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Export-ADConfig [[-InputObject] <Object>] [-AsGoldConfig] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
Export-ADConfig [[-InputObject] <Object>] [-Path <String>] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
The Export-ADConfig cmdlet retrieves the AD configuration via the Get-ADConfig cmdlet and then exports it to an XML file. If the -AsGoldConfig switch is used, the file is prefixed GoldConfig-, otherwise the prefix is ADConfig-.
Export-ADConfig
Retrieves the current AD configuration and exports it to a file named ADReport-<date>.xml.
Export-ADConfig -AsGoldConfig
Retrieves the current AD configuration and exports it to a file named GoldConfig-<date>.xml.
Get-ADConfig | Export-ADConfig -AsGoldConfig
Exports a previously retrieved AD configuration to a file named GoldConfig-<date>.xml.
The AD configuration to export. If not provided Get-ADConfig is executed to retrieve the current config.
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: (Get-ADConfig)
Accept pipeline input: False
Accept wildcard characters: FalseSpecify the path for the export file. If not specified, the file is either ADConfig-<currentdate>.xml or GoldConfig-<currentdate>.xml depending on whether -AsgoldConfig is specified.
Type: String
Parameter Sets: Path
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseUse to export to a file named GoldConfig-<currentdate>.xml.
Type: SwitchParameter
Parameter Sets: AsGoldConfig
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False{{Fill ProgressAction Description}}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).