Make it easy for vCLI commands

This post is somehow related to VMware vCLI, it’s about making some changes on Windows OS so vCLI commands can be used from any address in command line. By default, when VMware vCLI installed on Windows OS, it will add two addresses in the “PATH”.

In “Windows Vista/7/2008/2008 R2” these addresses can be checked by right clicking on the “My Computer” and selecting “Properties”.

In the left panel selecting “Advanced System Settings” and clicking on the “Advanced” tab.

Now pressing “Environment Variables …”

There is “Path” variable in the “System Variables” section, by selecting this variable and pressing “Edit…”, all addresses can be checked; this section would be used for adding new addresses as new value for this variable later on.

Two addresses which added by “VMware vCLI” installation are:

C:Program FilesVMwareVMware vSphere CLIPerlsitebin;
C:Program FilesVMwareVMware vSphere CLIPerlbin;
C:Program FilesQuickTimeQTSystem

For making all commands available in every directory, I’m always adding following two addresses as well, so I can simply run “vicfg-“, “esxcfg-” and “*” whenever I want.

C:Program FilesVMwareVMware vSphere CLIbin;
C:Program FilesVMwareVMware vSphere CLIPerlappssession;

Also I made post before with title of “DCAS-#004 (vCLI and Session Files)” on how to use “*” on Windows OS.
Hope this post become useful.

It's your kindness to leave a reply/feedback