vCenter Connection Script and Checking vCenter Version or How to connect to VCSA and Check VCSA versions using Powershell or PowerCLI – VirtuallyThatGuy

How to quickly check the vCenter version in powercli and the connection script if required

 

# Vcenter Connection Script​​ and Version Details​​ 

 

$cred​​ =​​ Get-Credential

 

$vCenters​​ =​​ "lab-vcenter01.lab.local",​​ "lab-vcenter02.lab.local"

 

Connect-VIServer​​ $vCenters​​ -Credential​​ $cred

 

$global:DefaultVIServers​​ |​​ Select​​ Name,Version

​​ 

 

# Vcenter Connection Script and Version Details 
$cred = Get-Credential
$vCenters = "lab-vcenter01.lab.local", "lab-vcenter02.lab.local"
Connect-VIServer $vCenters -Credential $cred
$global:DefaultVIServers | Select Name,Version

You May Also Like

About the Author: VirtuallyThatGuy

Leave a Reply

Your email address will not be published. Required fields are marked *