Wednesday, June 27, 2012 2:11 PM
I'm new to powershell and need a little assistance.
Problem: the c:\ drive on my server is filling up and running out of space. In the past I would use the diruse command to calculate file sizes on the c:\ drive.
diruse command example - diruse /s/m/* /q:1024 /d
Question: How can I perform the same task using poweshell?
Wednesday, June 27, 2012 2:14 PM
Something to read:
- Proposed As Answer by BigteddyMicrosoft Community Contributor Wednesday, June 27, 2012 2:22 PM
Wednesday, June 27, 2012 2:14 PMModerator
Use the same technique you're using now. Why change it?
Wednesday, June 27, 2012 2:18 PM
I could use the same technique, but it would nice to learn how to do the same thing in powershell.
In order to stay up on technology you have to use it.
Wednesday, June 27, 2012 2:52 PMModerator
PowerShell lets you use existing tools without modification. The diruse.exe is a special-purpose utility you already have that already works.
That said: You can do similar things in PowerShell. For example, I wrote a blog post for the Scripting Guys about getting directory sizes in PowerShell:
You can customize this script and/or process its output to duplicate the behavior you like from diruse.exe.
- Marked As Answer by Flite23 Wednesday, June 27, 2012 3:30 PM