VMware Cloud Community
alvinator_99
Contributor
Contributor

Creating vmhost user account?

I used new-VMHostAccount -UserAccount "user" -password pass -AssignGroups "users", "esx_host_admin".

this command appear to create the user account as assign the user into the right group.

But, I can't figure out how the give "Grant shell access to this user" from powershell?

0 Kudos
2 Replies
halr9000
Commander
Commander

Try this:






Author of the upcoming book: Managing VMware Infrastructure with PowerShell

Co-Host, PowerScripting Podcast (http://powerscripting.net)

My signature used to be pretty, but then the forum software broked it. vExpert. Microsoft MVP (Windows PowerShell). Author, Podcaster, Speaker. I'm @halr9000
0 Kudos
AnthBro
Enthusiast
Enthusiast

new-VMHostAccount -UserAccount "user" -password pass -AssignGroups "users", "esx_host_admin" -GrantShellAccess

For all the switches look in the vsphere 5.5. documentation center

then search for new-VMHostAccount

Any views or opinions presented in this post are solely those of the author and do not necessarily represent those of the company he works for.
0 Kudos