Quantcast
Viewing all articles
Browse latest Browse all 228891

Re: How to list vcenter hostname ?

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 228891

Trending Articles



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