1

I'm trying to automate the user creation process for VMs.

Currently I follow these steps manually on vSphere Client:

  1. Click Inventory
  2. Click Node
  3. Click Local Users & Groups Tab
  4. Right Click -> Add
  5. Enter Login and Password
  6. Choose "Users" Group and Click Add
  7. Click OK
  8. Click a VM
  9. Click Permissions Tab
  10. Right Click -> Add Permission
  11. Click Add
  12. Choose the user I created from list
  13. Click Add
  14. Choose Assigned Role "Customer" (I've created this role earlier.)
  15. 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

1

0

You must log in to answer this question.

Browse other questions tagged .