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 have a Windows Server 2012 R2. I have 500GB from 2 SSD drives. I currently have 7GB disk space. I have ran CCleaner but there was no change.

I keep only the main files on the disks and I had a good 50GB of disk space free awhile ago.

Is there a way I can run powershell or figure out where my space is being used like you can in Linux?


locked by HopelessN00b Jan 22 '15 at 4:43

This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here. This question and its answers are frozen and cannot be changed. More info: help center.

closed as off-topic by mdpc, Ward, HopelessN00b, Falcon Momot, Sam Aug 26 '14 at 15:05

This question appears to be off-topic. The users who voted to close gave these specific reasons:

  • "Questions must be relevant to professional system administration. Server Fault is dedicated to professional system and network administrators. End user and enthusiast questions are off-topic (contact your system administrator or hire a professional to help you out). Please see the Help Center for more information." – mdpc, Ward, Sam
  • "Questions must demonstrate a minimal understanding of the problem being solved. Try including attempted solutions, why they didn't work, and the expected results. See How can I ask better questions on Server Fault? for further guidance." – HopelessN00b, Falcon Momot
If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 5 down vote accepted

The easiest approach is probably to check with a graphical utility like WinDirStat.

WinDirStat is great, +1! – jski Jul 23 '14 at 0:55

If your not running core, TreeSize Free is my fav.

But if your looking for Linux's du like results in powershell:

gci . | %{$f=$_; gci -r $_.FullName | measure-object -property length -sum | select @{Name="Name"; Expression={$f}} , @{Name="Sum (MB)"; Expression={ "{0:N3}" -f ($_.sum / 1MB) }}, Sum } | sort Sum -desc | format-table -Property Name,"Sum (MB)", Sum -autosize

It's From here I remember using it ages ago, certainly slower and not as powerful as du. But it is a one liner.


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