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 5 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

I'm also interested that you fix this.

Same issue in horizon8.1

rwidmark avatar Jan 15 '21 18:01 rwidmark

Was there any solution for this use case? We do also have Pools with "multiple assignments" configured, and are unable to assign user to such machines.

Get-HVMachine -PoolName "pool_clients" -MachineName vdi001 | Set-HVMachine -User "domain\user"
Updating the Machine:  vdi001
MethodInvocationException: C:\Program Files\WindowsPowerShell\Modules\VMware.Hv.Helper\VMware.HV.Helper.psm1:9054:8
Line |
9054 |         $machine_helper.Machine_Update($services,$item,$updates)
     |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Exception calling "Machine_Update" with "3" argument(s): "ExceptionType : VMware.Hv.InvalidRequest ErrorMessage : User field cannot be updated for pools
     | supporting multiple assignments"

salcinad avatar Apr 08 '22 10:04 salcinad