■ For noninteractive use, you can create a session file using the save_session option. See Using a Session File.
■
■ If you are running on a Windows system, you can use the - -passthroughauth option. If the user who runs the command with that option is a known Active Directory user, no password is required.If you are running vMA, you can set up target servers and run most vCLI commands against target servers without additional authentication. See the vSphere Management Assistant Guide.
Important Administrators can place ESXi hosts in lockdown mode for enhanced security. By default, not even the root user can run vCLI commands directly against ESXi hosts in lockdown mode. See vCLI and Lockdown Mode and the vSphere Security documentation.When you run a vCLI host management command, authentication happens in the order of precedence shown in vCLI Authentication Precedence. This order of precedence always applies. That means, for example, that you cannot override an environment variable setting in a configuration file.
Password (- -password), session file (- -sessionfile), or configuration file (- -config) specified on the command line. vSphere Web Services SDK Programming Guide and vSphere SDK for Perl Programming Guide.