Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to run a capacity report, and when I run the Get-HardDisk cmdlet in PowerCLI, the value it returns for CapacityKB is the Provisioned space. For example, let's say I've thin provisioned a 200GB disk, which is currently using say 30GB, it returns the 200GB value.

Is there any way I can get the other value? I need to know how much disk space is actually being used on the LUN by the vmdk file. My PowerCLI version is 5.0.1.

share|improve this question
up vote 5 down vote accepted

Just query the VM with get-vm and add | Select UsedSpaceGB.

For example, you could type:

get-vm | Select Name, UsedSpaceGB, ProvisionedSpaceGB
share|improve this answer
Thanks, perfect! – Matt Apr 11 '12 at 0:21
To write this information into a .CSV file just append |export-csv "C:\Path\to\my\file.csv". – Gerald Schneider Feb 19 '13 at 11:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.