VMware Cloud Community
AutomationStat1
Contributor
Contributor
Jump to solution

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

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
Jump to solution

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
Jump to solution

Check the variable $global:defaultviservers.


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

0 Kudos
AutomationStat1
Contributor
Contributor
Jump to solution

Thank you!

0 Kudos