Active Directory Management Framework

Configuration driven Active Directory management.

Export-AdmfGpo

SYNOPSIS

Creates an export of GPO objects for use in the Domain Management module.

SYNTAX

Export-AdmfGpo [-Path] <String> [-GpoObject] <Object> [[-Domain] <String>] [-ExcludeWmiFilter]
 [[-OldExportMode] <String>] [-ProgressAction <ActionPreference>] [<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

-Path

The path to which to export the GPOs.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-GpoObject

The GPO objects to export. Only accepts output of Get-GPO

Type: Object
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-Domain

The domain to export from.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: $env:USERDNSDOMAIN
Accept pipeline input: False
Accept wildcard characters: False

-ExcludeWmiFilter

Do not export WmiFilter assignments of GPOs By default, when exporting GPOs, the associated WMi Filter-Name is also exported

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-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:

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 4
Default value: Interactive
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES