Originally inspired by this question in the Powershell forum: Recurse will do all sub-folders.Įver wanted to get a list of folders and their sizes? This script will produce a nice HTML report with folder path, Owner, folder creation time, last updated time and size of folder. V1.3: Added Recurse parameter and changed default behavior of script to do only 1 level of folders. V1.4: Added Sort and Descending parameters to control the sort of your report. Tightened up the final report so it looks a little better.ġ.41: found a bug in the Total Size reporting. I figure SOME result is better than none. While the COM object is much faster, it will return 0 if it has any problem in the folder structure (such as a typical access denied when running against C:\Windows). Also switched away from using the COM Object. 1.5: Added ability to process multiple paths, both from array input as well as from the pipeline.
0 Comments
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |