VMware vSphere

 View Only
  • 1.  Removing Shell Access From User using POWERCLI

    Posted Apr 19, 2023 07:49 PM

    I am trying to create a user account on an esxi server using POWERCLI.  I can create the user with no issues, but the "enable shell access" capability is checked by default.  I want to remove this from the user I create via POWERCLI.  Please not I do *not* want to disable shell access to all users, or to the server.  Just the one user I am creating.  Does anyone know the proper command syntax to do this?



  • 2.  RE: Removing Shell Access From User using POWERCLI

    Posted Apr 20, 2023 01:10 PM


  • 3.  RE: Removing Shell Access From User using POWERCLI

    Posted Nov 27, 2023 09:57 AM

    did you find how?



  • 4.  RE: Removing Shell Access From User using POWERCLI

    Posted Oct 14, 2024 08:59 AM

    Use: -s=false   parameter. Like this:
    esxcli system account add -d="The coolest user" -i="MyCoolUserName" -p="MyPassword" -c="MyPassword" -s=false