PowerShell Friday: Connecting to vCenter
vmguru.com › 2015 › 11Nov 13, 2015 · You will get prompted for a password. Now if you want to connect to vCenter you can use: Connect-VIServer -Server vc01.domain.local -Credential $credentials. If you want to connect to more vCenter servers at the same time, or just don’t like generic connecting there is good news. You can assign the connection object to a variable.
Connect-VIServer Command | VMware PowerCLI Reference
developer.vmware.com › commands › connect-viserverConnect-VIServer. This cmdlet establishes a connection to a vCenter Server system. The cmdlet starts a new session or re-establishes a previous session with a vCenter Server system using the specified parameters.When you attempt to connect to a server, the server checks for valid certificates. To set the default behavior of VMware PowerCLI when no valid certificates are recognized, use the InvalidCertificateAction parameter of the Set-PowerCLIConfiguration cmdlet.