Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

closed as off-topic by mdpc, Ward, HopelessN00b, Falcon Momot, Sam Aug 26 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.

2 Answers 2

up vote 5 down vote accepted

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

share|improve this answer
WinDirStat is great, +1! –  jski Jul 23 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.

share|improve this answer

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