Take the 2-minute tour ×
Server Fault is a question and answer site for 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

locked by HopelessN00b Jan 22 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.

2 Answers 2

up vote 5 down vote accepted

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

share
    
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.

share

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