How to create user account on ESXi host directly using powershell


image

Create new user directly on ESXi host, remember you need to connect to ESXi host directly as shown above

New-VMHostAccount -Id poweruser02 -password passw0rd123 -Description "PowerUser" -AssignGroups localadmin,root

image

Get the information about the user which was created.

Get-VMHostAccount -User poweruser02 | fl *

image

 

Now give him the permission in ESXi

New-VIPermission -Role admin -Principal poweruser02 -Entity pzesxi-07.pzwaredu.com

image

Advertisements

One comment on “How to create user account on ESXi host directly using powershell

  1. Pingback: 2010 in review (Thank you for this) « Designing vSphere

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s