Configuration driven Active Directory management.
Creates an export of GPO objects for use in the Domain Management module.
Export-AdmfGpo [-Path] <String> [-GpoObject] <Object> [[-Domain] <String>] [<CommonParameters>]
Creates an export of GPO objects for use in the Domain Management module. Use this command to record new GPO data for the module.
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
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
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
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
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.