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 
Keep up to date with new posts on Buildvirtual.net - Follow us on Twitter:
Be Sociable, Share!

Leave a Comment

*

Previous post:

Next post: