Guys.
I want to obtain a list of server names from the the VMware Power CLI. Using Get-VM will return the name of each server. Lets say for the purpose of this post that they are;
XX0001 - Test Server
XX0002 - Test Server
The Windows NetBIOS name is XX0001
So to export the list i thought i would use the Trim command as i would like to ignore all text after the six character. our server names are all six characters
in length.
So the code i have so far is below. I am thinking Trim is not the right command to use but maybe im missing something. Trim is not something i play around with much.
-----------
$Text = Get-VM | select-object Name
$Text.TrimStart()