Forum Discussion
ankit_bhat
Sep 10, 2021Copper Contributor
Get folder size with its locations
My disk gets full several times and i have to clean it manually. so , is there is any script which can tell me which folder is consuming more than 10gb with its location. i tried this one - ...
Jonathan_Allen
Feb 04, 2022Brass Contributor
"Get-ChildItem -path "C:\junk" -Directory -force -Recurse | sort -descending -property length" All directories will have 0 length.
I think you meant to use "Get-ChildItem -path "C:\junk" -File -force -Recurse | sort -descending -property length"