Trying to use the Citrix Remote Powershell command...
# citrix-daas
g
Trying to use the Citrix Remote Powershell commandlets to Remove a VM from its Delivery Group. Syntax is Remove-BrokerMachine -MachineName $machineName -DesktopGroupName $SourceDeliveryGroup ... I keep getting the error response, "_Remove-BrokerMachine : A parameter cannot be found that matches parameter 'DesktopGroupName'_ ". I also tried just "DesktopGroup", no luck. And ideas?
c
wouldnt it be remove-brokermachine -machinename domain\machine1 -desktopgroupname DG1
g
well the $machineName element is captured in a previous function where I told it to pull from a "VdiList.txt" file, and then it's doing a "ForEach" thing... It's that one parameter, tho, that is tripping me up
What's really weird is, I have another script that puts Machines into MM, using the Get-BrokerMachine commandlet, and it accepts "-DesktopGroupName" with no problem...
s
Remove-BrokerMachine [-InputObject] <Machine[]> [-Force] [-DesktopGroup <DesktopGroup>] [-LoggingId <Guid>] [<CitrixCommonParameters>] [<CommonParameters>]
it's juste desktopgroup
g
It's odd that one commandlet accepts "DesktopGroup" and another one does not... I'll double-check my work and try again