編輯

共用方式為


Remove-AdfsFarmNode

The Remove-AdfsFarmNode cmdlet is deprecated. Instead, use the Uninstall-WindowsFeature cmdlet.

Syntax

Remove-AdfsFarmNode
      -ServiceAccountCredential <PSCredential>
      [<CommonParameters>]
Remove-AdfsFarmNode
      -GroupServiceAccountIdentifier <String>
      [-Credential <PSCredential>]
      [<CommonParameters>]

Description

The Remove-AdfsFarmNode cmdlet is deprecated in this release. Instead, use the Uninstall-WindowsFeature cmdlet. For more information on the Uninstall-WindowsFeature cmdlet, type Get-Help Uninstall-WindowsFeature. Note that the Uninstall-WindowsFeature cmdlet removes only the server role but doesn't remove the node from the ADFS farm. For proper cleanup, use the Set-AdfsFarmInformation cmdlet with the -RemoveNode parameter.

Parameters

-Credential

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

-GroupServiceAccountIdentifier

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

-ServiceAccountCredential

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

Outputs

Object