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

Get cluster details

$
0
0

hey all,

is there a way to add my command something that will pickup the cluster name on which the VM is located?

i use this to collect some data but cant find a way to add cluster name

 

$report = @()

foreach($vmlist in (Get-Content -Path C:\temp\PCLI\vmlist.txt)){

$vm = Get-VM -Name $vmlist

$report += (Get-VM $vm |

Select Name,NumCpu,MemoryGB,UsedSpaceGB,Guest)

}

$report | Export-Csv -Path C:\temp\PCLI\CPU_RAM_TTLPV_report.csv -NoTypeInformation -UseCulture

 

BR,

Alex


Viewing all articles
Browse latest Browse all 222846

Latest Images

Trending Articles



Latest Images

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