Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 236824

Re: How to list vcenter hostname ?

$
0
0

Hello, -

 

Assuming that you want the name of the last vCenter to which you connected, you can use the automatic global variable "DefaultVIServer" to get the name of the vCenter to which you are connected.  Access the "Name" property of this object, like:

 

$global:DefaultVIServer.Name

 

That do it?


Viewing all articles
Browse latest Browse all 236824

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>