Automation

 View Only
  • 1.  Add Read-only user account on ESXi

    Posted Nov 12, 2023 04:56 PM

    I'l trying to add a user to ESXi using this command

    New-VIPermission -Entity (Get-Folder root) -Principal $ESXiNewUser -Role $ESXiPermission
     
    for Variable  $ESXiPermission I'm adding Read-only wich is available in ESXi roles, unfortunately I get the below error message:
     
    New-VIPermission Could not find Role with name 'Read-only'.
     
    what's wrong here?


  • 2.  RE: Add Read-only user account on ESXi
    Best Answer

    Posted Nov 12, 2023 06:18 PM

    Git it, my error was that I assigned Read-only role, I solved the issue by using ReadOnly.