Closed stoneisman closed 5 years ago
Hi! Yup, sounds useful. I think we had a way. @edmsanchez do you remember?
you can connect to multiple vcenters and run the scripts, run Get-PowerCLIConfiguration and check DefaultVIServer is set to Multiple. thats all you need to run against multiple vCenter.. I have not validated all scripts to run against multiple vCenter, so should you encounter issues please let us know.
I've confirmed this works for me and others, please let us know if you couldn't find the DefaultVIServer variable in PowerCLI and we'll help (maybe in the #vdocumentation channel in the public VMware Code Slack?) but I'll close this one.
I would like a way to have all connected vcenters information pulled for each command. Looks like only the last one connected is polled for it's information when you execute a command. I don't see a way to iterate through all connected vcenters or specify multiple datacenters.