Quick Tip #2 Export VM Information From List

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 

Related posts

VMware vSphere Virtual Machine Snapshots Explained

How to Enable SSH on All ESXi Hosts using PowerCLI

How to Install VMware Tools on Debian 11

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