Active Directory Management Framework

Configuration driven Active Directory management.

Register-FMCertificate

SYNOPSIS

Register directory services certificates

SYNTAX

Certificate

Register-FMCertificate -Type <String> -Certificate <X509Certificate2> [-ContextName <String>]
 [-ProgressAction <ActionPreference>] [<CommonParameters>]

Authorative

Register-FMCertificate -Type <String> -Authorative <Boolean> [-ContextName <String>]
 [-ProgressAction <ActionPreference>] [<CommonParameters>]

Remove

Register-FMCertificate -Type <String> -Remove <String> [-ContextName <String>]
 [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

Register directory services certificates

EXAMPLES

EXAMPLE 1

Register-FMCertificate -Certificate $certificate -Type RootCA

Register a certiciate as RootCA certificate.

EXAMPLE 2

Register-FMCertificate -Authorative -Type RootCA

Sets our current configuration as authorative, removing all non-listed certificates from the store.

EXAMPLE 3

Register-FMCertificate -Remove $cert.Thumbprint -Type SubCA

Registers a certificate for removal from the SubCA list.

PARAMETERS

-Type

The kind of certificate this is. Can be: NTAuthCA, RootCA, SubCA, CrossCA or KRA.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Certificate

The certifcate to apply.

Type: X509Certificate2
Parameter Sets: Certificate
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Authorative

Should the certificate configuration overwrite the existing configuration, rather than adding to it (default).

Type: Boolean
Parameter Sets: Authorative
Aliases:

Required: True
Position: Named
Default value: False
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Remove

Thumbprint of a certificate to remove rather than add.

Type: String
Parameter Sets: Remove
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-ContextName

The name of the context defining the setting. This allows determining the configuration set that provided this setting. Used by the ADMF, available to any other configuration management solution.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: <Undefined>
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