Skip to content

Generates an interactive HTML report of folder sizes with sorting and filtering capabilities.

Notifications You must be signed in to change notification settings

differentstuff/Get-FolderSizes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Interactive Folder Size Reporter

A PowerShell tool that generates detailed, interactive HTML reports of folder sizes with advanced sorting and filtering capabilities.

Features

  • Interactive sorting by folder name, size, and last modified date
  • Search/filter functionality for folders
  • Responsive design with alternating row colors
  • Size formatting in appropriate units (B, KB, MB, GB, TB)
  • Progress tracking for long operations
  • Configurable minimum size filter and folder depth
  • Summary statistics including total size and folder count

Requirements

  • PowerShell 5.1 or later

Installation

Clone or download the script to your local machine.

Usage

Basic usage:

Get-FolderSizes -StartingPath "C:\Users\myUser" -OutputPath "C:\Temp\Report" -Depth 5

Parameters

Parameter Description Default
StartingPath Root path to analyze C:\Temp\
OutputPath HTML report save location C:\Temp\
SortBy Initial sort column ('Folder Name','Last Change','Size') Size
MinSize Minimum file size in bytes to include 102400 (100KB)
Depth Maximum folder depth to analyze 3
IncludeZero Include empty folders and those below MinSize False
ShowResults Auto-open report in default browser False

Examples

# Basic usage with default parameters
Get-FolderSizes

# Analyze specific path with custom depth
Get-FolderSizes -StartingPath "C:\Users\myUser" -OutputPath "C:\Temp\Report" -Depth 5

# Include small/empty folders and show results
Get-FolderSizes -IncludeZero -ShowResults

About

Generates an interactive HTML report of folder sizes with sorting and filtering capabilities.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published