PowerCLI-Example-Scripts
PowerCLI-Example-Scripts copied to clipboard
Unable to assign user to machine in a Horizon pool configured for multiple dedicated assignments.
Hi. We are unable to assign user to machine in a Horizon pool configured for multiple dedicated assignments. We are on Horizon 7.12 and this is the command we are using to assign desktops:
Set-HVMachine -MachineName $machineName -User $userName
Here is the error that we get:
Exception calling "Machine_Update" with "3" argument(s): "ExceptionType : VMware.Hv.InvalidRequest ErrorMessage : User field cannot be updated for pools supporting multiple assignments" At C:\Program Files\WindowsPowerShell\Modules\VMware.Hv.Helper\VMware.HV.Helper.psm1:8959 char:8
-
$machine_helper.Machine_Update($services,$item,$updates)
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : NotSpecified: (:) [], MethodInvocationException
- FullyQualifiedErrorId : VimException