Thanks Luc,
$vmhost is a string with the name of the host
I just tried this: Get-VDSwitch -Name $vDSName | Remove-VDSwitchVMHost -VMHost (get-vmhost $vmhost) -confirm:$false
Remove-VDSwitchVMHost : 6/12/2013 3:04:40 PM Remove-VDSwitchVMHost VMHost 'esxt21.xxxx.xxx' is not a member of VDSwitch 'dvsQ92'
At line:1 char:31
+ Get-VDSwitch -Name $vDSName | Remove-VDSwitchVMHost -VMHost (get-vmhost $vmhost) ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Remove-VDSwitchVMHost], InvalidArgument
+ FullyQualifiedErrorId : VdsImpl_VDSwitchServiceImpl_VMHostNotAdded,VMware.VimAutomation.Vds.Commands.Cmdlets.RemoveVDSwitchVMHost
It doesn't think the host is a member of the switch. It is strange. When I go to remove, it says it's not there. When I go to add it, it says it already exists. I can't add uplinks until I remove and re-add the host. The GUI can delete the host just fine. I am re-adding the host to the cluster. The name is the same but the UUID is different. It would be like trying to remove a host from the vDS after you shut the host down.
If you have any other thoughts, I would appreciate it.
Thanks,
Dan