VMware Cloud Community
vickyvictory
Contributor
Contributor

Command to assign role to the user

Hi Team,

Can anyone help me to assign a role to the user via command line in the ESX 3.5.

Regards,

Vignesh

0 Kudos
4 Replies
lamw
Community Manager
Community Manager

You can use the vCLI's esxcfg-user/vicfg-user to do this, take a look at this page for command options:

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

Twitter: @lamw

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Comuunity

If you find this information useful, please award points for "correct" or "helpful".

0 Kudos
vickyvictory
Contributor
Contributor

Hi,

Where can I find the script? Please help

Regards,

Vignesh Kumar P

 

0 Kudos
lamw
Community Manager
Community Manager

Please refer to my previous post, this is part of the vCLI package which needs to be installed, follow the link and read over the documentation.

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

Twitter: @lamw

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Comuunity

If you find this information useful, please award points for "correct" or "helpful".

0 Kudos
GeekBoi
Contributor
Contributor

There is also a perl script from lamw in the sample code section of the perl sdk community that should help as well. You can find it here:

This will of course require the perl SDK to be installed somewhere, which also installs the rCLI tools.

Charlie

0 Kudos