Home VMware Quick Tip #2 Export VM Information From List

Quick Tip #2 Export VM Information From List

by admin

To export a list of virtual machine attributes, using a text file for input, we can use the following PowerCli code:

Get-VM -Name (Get-Content c:\vmnames.txt) | 
Select Name,NumCpu,MemoryMB | 
Export-Csv C:\test.csv -NoTypeInformation -UseCulture 

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More