Remove-AdfsRelyingPartyTrust is accessible with the help of adfs module. To install adfs on your system please refer to this adfs.
Synopsis
Removes a relying party trust from the Federation Service.
Description
The Remove-AdfsRelyingPartyTrust cmdlet removes a relying party trust from the Federation Service.
Parameters
-PassThru
Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output.
Required? false
Position? named
Default value none
Accept pipeline input? false
Accept wildcard characters? false
-TargetIdentifier <String>
Specifies the identifier of the relying party trust to remove.
Required? true
Position? named
Default value none
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-TargetName <String>
Specifies the name of the relying party trust to remove.
Required? true
Position? named
Default value none
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-TargetRelyingParty <RelyingPartyTrust>
Specifies a RelyingPartyTrust object. The cmdlet removes the relying party trust that you specify. To obtain a RelyingPartyTrust object, use the Get-AdfsRelyingPartyTrust cmdlet.
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-AdfsRelyingPartyTrust -TargetIdentifier <String> [-PassThru] [-WhatIf] [-Confirm] [<CommonParameters>]
Remove-AdfsRelyingPartyTrust -TargetRelyingParty <RelyingPartyTrust> [-PassThru] [-WhatIf] [-Confirm] [<CommonParameters>]
Remove-AdfsRelyingPartyTrust -TargetName <String> [-PassThru] [-WhatIf] [-Confirm] [<CommonParameters>]
Notes
A relying party in Active Directory Federation Services (AD FS) 2.0 is an organization in which Web servers that host one or more Web-based applications reside. Tokens and Information Cards that originate from a claims provider can be presented and ultimately consumed by the Web-based resources that are located in the relying party organization. When AD FS 2.0 is configured in the role of the relying party, it acts as a partner that trusts a claims provider to authenticate users. Therefore, the relying party consumes the claims that are packaged in security tokens that come from users in the claims provider. In other words, a relying party is the organization whose Web servers are protected by the resource-side federation server. The federation server in the relying party uses the security tokens that the claims provider produces to issue tokens to the Web servers that are located in the relying party.
————————–Example 1————————–
Remove a relying party trust
PS C:> Remove-AdfsRelyingPartyTrust -TargetName “TOSSApp”
This command removes the relying party trust named TOSSApp.
You can check the Version, CommandType and Source of this cmdlet by giving below command.
Get-Command Remove-AdfsRelyingPartyTrust
You can also read about
- Add-AdfsRelyingPartyTrust
- Disable-AdfsRelyingPartyTrust
- Enable-AdfsRelyingPartyTrust
- Get-AdfsRelyingPartyTrust
- Set-AdfsRelyingPartyTrust
- Update-AdfsRelyingPartyTrust