$ 0 0 I'm really not sure about scripting and stuff but if you need to create local users in ESXi host, you need to login into the host directly then go to local users and groups tab and create the users.