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

Re: how to clip the domain component of the host name for script use

$
0
0

You can use the Split method for that.

Something like this

$shortName = $vmhost.Name.Split('.')[0]

What that does is to split the hostname at all locations where there is a dot.

The result is returned as an array of strings, and we want the first string


Viewing all articles
Browse latest Browse all 224018

Trending Articles



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