PowerCLI - Troubleshooting Multiple Default Servers
I use a customized version of http://www.virtu-al.net/vcheck-pluginsheaders/vcheck/ by Alan Renouf to connect to multiple servers. However a coworker of mine was trying to run it, and the script would only return data from the 2nd vCenter we were connecting to.
Doing some troubleshooting we noticed their DefaultVIServerMode was set to single. This means that only a single servers connection will occur at once. Changing this setting is very easy, there are 3 scopes, but only one really needs to be set. You can review the 3 scope options https://www.vmware.com/support/developer/PowerCLI/PowerCLI51/html/Set-PowerCLIConfiguration.html
See below for command to run, for Session scope which is valid for the current vSphere PowerCLI session only and overrides any User and All Users settings.
Set-PowerCLIConfiguration -DefaultVIServerMode multiple -Scope Session -Confirm:$false
Share this postcomments powered by Disqus
- PowerCLI - Enable CPU and Memory HotAdd
- Sysprep runs repeatedly on virtual machines deployed to ESXi 5.1 build 1743533
- Configuring ESXi 5.5 Dump Collector
- Configuring ESXi 5.5 Syslog Collector
- Create VMFS Datastore Using PowerCLI