Last active
January 29, 2016 11:01
-
-
Save akramarev/94c843f5967557da94f2 to your computer and use it in GitHub Desktop.
Windows disk space, allocation, directories size
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-ChildItem | Where-Object { $_.PSIsContainer } | ForEach-Object { $_.Name + ": " + "{0:N2}" -f ((Get-ChildItem $_ -Recurse | Measure-Object Length -Sum -ErrorAction SilentlyContinue).Sum / 1MB) + " MB" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment