Looking for powercli script to get name of VM and space used in csv format

Looking for a powercli script to get following rows in csv\excel

Name of VM | Size of disk used | Datastore used | Lun used | CPU | Memory

Trying this

get-vm | Select Name, UsedSpaceGB, ProvisionedSpaceGB

If i could get it neater would be great

Got a lot of it with RVtools but open to powercli best version
LVL 1
Indie101Asked:
Who is Participating?
 
65tdRetiredCommented:
I have used this health check script in the past.  Found it useful finding out of date snapshots.

https://www.ivobeerens.nl/2008/08/28/vmware-powershell-healthcheck-script/
0
 
Bryant SchaperCommented:
Something like this:

get-vm  | Select-Object Name,UsedSpaceGB | Out-File c:\temp\test.csv

Open in new window

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.