Table of contents
TLS
TOC
Collapse the table of content
Expand the table of content

Remove-AdfsCertificate

Brian Lich|Last Updated: 3/8/2017

SYNOPSIS

Removes a certificate from AD FS.

SYNTAX

TargetCertificate (Default)

Remove-AdfsCertificate [-TargetCertificate] <ServiceCertificate> [-WhatIf] [-Confirm] [<CommonParameters>]

ByProperties

Remove-AdfsCertificate -CertificateType <String> -Thumbprint <String> [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

The Remove-AdfsCertificate cmdlet removes a certificate from Active Directory Federation Services (AD FS).

EXAMPLES

Example 1: Remove a token-signing certificate

PS C:\> Remove-AdfsCertificate -CertificateType "Token-Signing" -Thumbprint ‎"fedd995b45e633d4ef30fcbc8f3a48b627e9a28b"

This command removes a token-signing certificate from AD FS.

PARAMETERS

-CertificateType

Specifies the type of the certificate to remove. The acceptable values for this parameter are:

  • Infocard-Signing
  • Service-Communications
  • Token-Encryption
  • Token-Signing
Type: String
Parameter Sets: ByProperties
Aliases: 
Accepted values: Token-Decrypting, Token-Signing

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

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

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

-TargetCertificate

Specifies the certificate to remove. This value is typically taken from the pipeline.

Type: ServiceCertificate
Parameter Sets: TargetCertificate
Aliases: 

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

-Thumbprint

Specifies the thumbprint of the certificate to remove.

Type: String
Parameter Sets: ByProperties
Aliases: 

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

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

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

Microsoft.IdentityServer.PowerShell.Resources.ServiceCertificate

A class structure that represents the service certificates for the Federation Service.

OUTPUTS

None

NOTES

  • Removing a certificate removes it only from the Active Directory Federation Services (AD FS) 2.0 configuration data. It does not remove or delete the certificate from the local certificate store on the server computer.

Add-AdfsCertificate

Get-AdfsCertificate

Set-AdfsCertificate

Update-AdfsCertificate

© 2017 Microsoft