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
Who is Participating?
I have used this health check script in the past.  Found it useful finding out of date snapshots.

Bryant SchaperCommented:
Something like this:

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

Open in new window

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.