Remove-ClusterHostsFromVds¶
Synopsis¶
Removes all ESXi hosts in the provided vSphere cluster from the provided vSphere Distributed Switch.
Syntax¶
Remove-ClusterHostsFromVds [-vCenterFQDN] <String> [-vCenterAdmin] <String> [-vCenterAdminPassword] <String> [-clusterName] <String> [-vdsName] <String> [-ProgressAction <ActionPreference>] [<CommonParameters>]
Description¶
The Remove-ClusterHostsFromVds
cmdlet removes all ESXi hosts in the provided vSphere cluster from the provided vSphere Distributed Switch.
Examples¶
Example 1¶
Remove-ClusterHostsFromVds -vCenterFQDN "sfo-m01-vc02.sfo.rainpole.io" -vCenterAdmin "administrator@vsphere.local" -vCenterAdminPassword "VMw@re1!" -clusterName "sfo-m01-cl01" -vdsName "sfo-m01-cl01-vds01"
Parameters¶
-vCenterFQDN¶
Fully qualified domain name of the vCenter Server instance hosting the vSphere cluster / vSphere Distributed Switch from which ESXi hosts should be removed.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-vCenterAdmin¶
Admin user for the vCenter Server instance hosting the vSphere cluster / vSphere Distributed Switch from which ESXi hosts should be removed.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-vCenterAdminPassword¶
Admin password for the vCenter Server instance hosting the vSphere cluster / vSphere Distributed Switch from which ESXi hosts should be removed.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-clusterName¶
Name of the vSphere cluster instance from which ESXi hosts should be removed.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-vdsName¶
Name of the vSphere Distributed Switch to remove cluster hosts from.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ProgressAction¶
Progress Action.
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Common Parameters¶
This cmdlet supports the common parameters: -Debug
, -ErrorAction
, -ErrorVariable
, -InformationAction
, -InformationVariable
, -OutVariable
, -OutBuffer
, -PipelineVariable
, -Verbose
, -WarningAction
, and -WarningVariable
. For more information, see about_CommonParameters.