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