![]() This just feels inefficient to me, so I started looking at alternatives. However, the memory requirements increase sharply on systems with a large number of files and folders such as file servers. On my test drive it completes in about 60 seconds and consumed about 200MB of RAM. ![]() Surprisingly this solution works really well. This solution runs Get-ChildItem a very large number of times, and the majority of files on the system are counted multiple times. As a free disk space analyzer tool, TreeSize Free can help you quickly determine whats using up all your hard drive storage. I have tired dir/s and even Joakim Svendsen's "folder sizes using COM and by default with a fallback to robocopy.exe" function, but nothing seems to give much of an improvement in speed. I've been trying to create a script that returns the largest folders on a drive.įrom what I can tell, Get-ChildItem is my only real option. Research Triangle Powershell User Group remote-capable.Philadelphia PowerShell User Group remote-capable.folders within a folder tree) using PowerShell. ![]()
0 Comments
Leave a Reply. |