AutomationStat1
Contributor
Contributor

EASY Script: How to check which vcenter servers you are connected to?

Jump to solution

You would think this would be easy. When I log into vcenter with powerCLI it shows your vcenter server,port and user. Is there a command to run and check which vcenter servers you are connected to?

I have been googling but found nothing...

Tried Get-Visession but that yields nothing

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership

Check the variable $global:defaultviservers.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
2 Replies
LucD
Leadership
Leadership

Check the variable $global:defaultviservers.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
AutomationStat1
Contributor
Contributor

Thank you!

0 Kudos