VMware Cloud Community
Chinggis06
Contributor
Contributor

How to pass vmware-cmd multiple getinfo variables at once?

I can connect to the server and set or view getinfo variable values by issuing the following command on the command prompt:

vmware-cmd -H <server> -U <username> -P <password> setguestinfo variable value

I've added %programfiles(x86)%\VMware\VMware vSphere CLI\bin to PATH, and ;.PL to PATHEXT Windows environment variables, so I can issue the command without specifying its directory and extension.

I want to set multiple variables at once without having to connect to the server to issue each statement separately what I am currently achieving using the for /f loop (of batch scripting)  to read the values from file (extracted from .vmx config file) and set them on the host connecting to it every time to do so which takes much time.

I've done some research online, although without satisfaction and success, before registering on this forum to ask this question.

I also couldn't find such a scenario (setting multiple variables at once) in the manuals and references

.

I hope to find the right answer here.

Thanks in advance.

I've a theoretical degree in Theoretical Physics 🙂
0 Kudos
0 Replies