Disable-AdfsClaimsProviderTrust

Disables a claims provider trust in the Federation Service.

Syntax

Disable-AdfsClaimsProviderTrust
       [-Confirm]
       [-PassThru]
       -TargetCertificate <X509Certificate2>
       [-WhatIf]
       [<CommonParameters>]
Disable-AdfsClaimsProviderTrust
       [-Confirm]
       [-PassThru]
       -TargetClaimsProviderTrust <ClaimsProviderTrust>
       [-WhatIf]
       [<CommonParameters>]
Disable-AdfsClaimsProviderTrust
       [-Confirm]
       [-PassThru]
       -TargetIdentifier <String>
       [-WhatIf]
       [<CommonParameters>]
Disable-AdfsClaimsProviderTrust
       [-Confirm]
       [-PassThru]
       -TargetName <String>
       [-WhatIf]
       [<CommonParameters>]

Description

The Disable-AdfsClaimsProviderTrust cmdlet disables a claims provider trust in the Federation Service. When disabled all tokens issued by this claims provider are not accepted by the AD FS service.

Examples

Example 1: Disable a claims provider trust

PS C:\> Disable-AdfsClaimsProviderTrust -TargetName "Fabrikam claims provider"

This command disables the claims provider trust named Fabrikam claims provider.

Required Parameters

-TargetCertificate

Specifies the token-signing certificate of the claims provider trust to disable.

Type:X509Certificate2
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-TargetClaimsProviderTrust

Specifies a ClaimsProviderTrust object. The cmdlet enables the claims provider trust that you specify. To obtain a ClaimsProviderTrust object, use the Get-AdfsClaimsProviderTrust cmdlet.

Type:ClaimsProviderTrust
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-TargetIdentifier

Specifies the identifier of the claims provider trust to disable.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-TargetName

Specifies the name of the claims provider trust to disable.

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

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-PassThru

Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output.

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

Inputs

Microsoft.IdentityServer.PowerShell.Resources.ClaimsProviderTrust

A class that represents a claims provider trust for the Federation Service.