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

Re: Powercli script to list cluster Name, Guest and Hostname in Cluster

$
0
0

I asume that you want the cluster name, guest and hostname for all your vm's. You can this information and export it to a .csv file as follows:

 

Get-VM |Select-Object-Property @{N="VM";E={$_.Name}},
VMHost,
@{N="Cluster";E={$_.VMHost.Parent.Name}},
@{N="Guest";E={$_.Guest.OSFullName}} |Export-Csv-PathVMInfo.csv-NoTypeInformation-UseCulture

Viewing all articles
Browse latest Browse all 249166

Trending Articles



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