HI.
I have added user to an ESXi host using New-VMHostAccount -Id LJY -Password Password and give it read-only role using New-VIPermission -Entity (Get-Folder root) -Principal LJY -Role ReadOnly.
But I dont see the resent user added to the permission on the host,with the ready-only role now the user is create and found under security & users. I am getting this error while running new-vipermission :
New-VIPermission : Cannot process argument transformation on parameter 'Entity'. This parameter no longer accepts an
array
any help , thanks