Bearbeiten

Freigeben über


Remove-AdfsCertificate

Removes a certificate from AD FS.

Syntax

Remove-AdfsCertificate
      [-TargetCertificate] <ServiceCertificate>
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
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
Accepted values:Token-Decrypting, Token-Signing
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Required: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
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Thumbprint

Specifies the thumbprint of the certificate to remove.

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

-WhatIf

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

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.IdentityServer.PowerShell.Resources.ServiceCertificate

A ServiceCertificate object is received by the TargetCertificate parameter.

String

A string object is received by the Thumbprint parameter.

Outputs

None

Notes

  • Removing a certificate removes it only from the AD FS configuration data. It does not remove or delete the certificate from the local certificate store on the server computer.