Site icon TOSS

Remove-AdfsCertificate

powershell

Remove-AdfsCertificate is accessible with the help of adfs module. To install adfs on your system please refer to this adfs.

Synopsis

Removes a certificate from AD FS.

Description

The Remove-AdfsCertificate cmdlet removes a certificate from Active Directory Federation Services (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

    Required?                    true
    Position?                    named
    Default value                none
    Accept pipeline input?       false
    Accept wildcard characters?  false

-TargetCertificate <ServiceCertificate>
    Specifies the certificate to remove. This value is typically taken from the pipeline.

    Required?                    true
    Position?                    1
    Default value                none
    Accept pipeline input?       True (ByValue)
    Accept wildcard characters?  false

-Thumbprint <String>
    Specifies the thumbprint of the certificate to remove.

    Required?                    true
    Position?                    named
    Default value                none
    Accept pipeline input?       True (ByValue)
    Accept wildcard characters?  false

-Confirm <SwitchParameter>
    Prompts you for confirmation before running the cmdlet.Prompts you for confirmation before running the cmdlet.

    Required?                    false
    Position?                    named
    Default value                false
    Accept pipeline input?       false
    Accept wildcard characters?  false

-WhatIf <SwitchParameter>
    Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run.

    Required?                    false
    Position?                    named
    Default value                false
    Accept pipeline input?       false
    Accept wildcard characters?  false

Syntax

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

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

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.

————————Example 1————————
Remove a token-signing certificate
PS C:>Remove-AdfsCertificate -CertificateType “Token-Signing” -Thumbprint ‎”f2wede5b45e633d4ef30fcbc8f3a48b6278eacbb”
This command removes a token-signing certificate from AD FS.

You can check the Version, CommandType and Source of this cmdlet by giving below command.

Get-Command Remove-AdfsCertificate

You can also read about

To know more PowerShell cmdlets(Commands) on Active Directory Federation Services(ADFS) click here

Click on this Link for an Single place where you get all the PowerShell cmdlet sorted based on the modules.

You can also refer other blogs on PowerShell at link

You can also refer other blogs on Microsoft at link

And also if you required any technology you want to learn, let us know below we will publish them in our site http://tossolution.com/

Like our page in Facebook and follow us for New technical information.

References are taken from Microsoft

Exit mobile version