I'm trying to automate the user creation process for VMs.
Currently I follow these steps manually on vSphere Client:
- Click Inventory
- Click Node
- Click Local Users & Groups Tab
- Right Click -> Add
- Enter Login and Password
- Choose "Users" Group and Click Add
- Click OK
- Click a VM
- Click Permissions Tab
- Right Click -> Add Permission
- Click Add
- Choose the user I created from list
- Click Add
- Choose Assigned Role "Customer" (I've created this role earlier.)
- Click OK
I'd LOVE to automate this process by a command like:
addvmuser --login test --password test --group Users --role Customer --vmid 501
Preferably on SSH so I can code a script for it.
How to do it?
Oktay