PowerCLI-Example-Scripts icon indicating copy to clipboard operation
PowerCLI-Example-Scripts copied to clipboard

Unable to assign user to machine in a Horizon pool configured for multiple dedicated assignments.

Open jdl242 opened this issue 4 years ago • 2 comments

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

jdl242 avatar Sep 25 '20 15:09 jdl242