π Major Improvements:
- β Fixed Large File Collection Issue: Now properly aggregates large files from all parallel threads - no more missing files in "TOP LARGEST FILES" section
- β Enhanced FastMode: Improved hidden file handling in both main thread and parallel execution for better accuracy
- β Platform Detection: Better compatibility across PowerShell 5.1, PowerShell Core, Windows, Linux, and macOS
- β Parallel Processing: Each thread now correctly collects individual file data while maintaining performance benefits
ChimpXplore is a powerful, enterprise-grade PowerShell script for disk space analysis and storage management. It provides functionality similar to TreeSize Free but with significant enhancements including optimized parallel processing, advanced permission handling, and professional interactive reporting.
- β Pixel-Perfect Accuracy - Size reporting matches Windows Explorer and TreeSize Free exactly
- β‘ Parallel Processing - Always-on multi-threading with configurable thread count (default: 4 threads)
- π Advanced Access Methods - Handles permission issues with WMI, Robocopy, and Win32 API fallbacks
- π Interactive HTML Reports - Professional reports with responsive Chart.js visualizations and intelligent unit scaling
- π Smart CSV Export - Structured data with comprehensive metadata for analysis
- π Intelligent File Filtering - Include/exclude file types with optimized scanning
- π Cross-Platform Support - Windows, Linux, and macOS with PowerShell Core
- π Comprehensive Analysis - Detailed file attributes, creation times, and access patterns
- π― Performance Optimized - Single-pass scanning with memory management and progress tracking
- π‘οΈ Enterprise Ready - Robust error handling, logging, and automated reporting capabilities
- PowerShell: 5.1 or later (PowerShell Core 6+ recommended for cross-platform)
- Operating System: Windows 10/11, Windows Server 2016+, Linux, macOS
- Memory: 2GB RAM minimum (8GB+ recommended for full drive scans)
- CPU: Multi-core processor recommended for optimal parallel performance
- Permissions: Administrator/root privileges recommended for full system access
- Browser: Modern browser (Chrome, Firefox, Edge) for HTML reports with Chart.js
- Small Directories (<10,000 files): ~1-5 seconds
- Medium Directories (10,000-100,000 files): ~5-30 seconds
- Large Directories (100,000+ files): ~30 seconds-5 minutes
- Full Drive Scans (C:\ with 500,000+ files): ~2-10 minutes
Performance varies based on hardware, storage type (SSD vs HDD), and network conditions for remote shares.
# Scan current directory (parallel processing enabled by default)
.\ChimpXplore.ps1
# Scan specific drive with 8 threads for better performance
.\ChimpXplore.ps1 -Path "C:\" -MaxThreads 8
# Generate professional HTML report with interactive charts
.\ChimpXplore.ps1 -Path "C:\Users" -ExportHtml "UserReport.html"
# Fast mode for large directories (with improved hidden file handling)
.\ChimpXplore.ps1 -Path "D:\Data" -FastMode -IncludeHidden -MinSize 10
- Download: Save
ChimpXplore.ps1
to your preferred directory - Execution Policy: Ensure PowerShell can run scripts:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
- Run as Administrator (Windows): For full system access and advanced methods
- Test Run: Start with a small directory to verify functionality
Parameter | Type | Default | Description |
---|---|---|---|
-Path |
String | Current directory | Root path to scan |
-TopFolders |
Integer | 20 | Number of largest folders to show |
-TopFiles |
Integer | 10 | Number of largest files to show |
-MinSize |
Double | 1.0 | Minimum size in MB to include |
-Depth |
Integer | -1 | Maximum scan depth (-1 = unlimited) |
Parameter | Type | Default | Description |
---|---|---|---|
-MaxThreads |
Integer | 4 | Maximum threads for parallel processing (always enabled) |
-FastMode |
Switch | False | Use optimized .NET methods for speed. For system directories, combine with -IncludeHidden for better accuracy |
-ProgressUpdateInterval |
Integer | 500 | Items processed before progress update |
Parameter | Type | Default | Description |
---|---|---|---|
-UseAdvancedMethods |
Switch | False | Enable WMI/Robocopy/Win32 API fallbacks for permissions |
-Comprehensive |
Switch | False | Detailed analysis with creation times and attributes |
-IncludeHidden |
Switch | False | Include hidden/system files and folders |
Parameter | Type | Default | Description |
---|---|---|---|
-ExportHtml |
String | None | HTML report output path |
-ExportCsv |
String | None | CSV export output path |
-ShowProgress |
Boolean | True | Display progress during scan |
Parameter | Type | Default | Description |
---|---|---|---|
-FileTypes |
String[] | All | Include only these extensions |
-ExcludeTypes |
String[] | None | Exclude these extensions |
# Scan current directory with default settings
.\ChimpXplore.ps1
Output: Console display showing top 20 folders and 10 files β₯1MB
# Comprehensive C: drive analysis
.\ChimpXplore.ps1 -Path "C:\" -TopFolders 50 -ExportHtml "C:\Reports\DriveAnalysis.html" -MinSize 5
Features:
- Scans entire C: drive
- Shows top 50 folders β₯5MB
- Generates interactive HTML report with charts
# Analyze large video files with maximum performance
.\ChimpXplore.ps1 -Path "F:\MediaLibrary" -FileTypes @(".mp4",".mkv",".avi",".mov") -MinSize 100 -ExportCsv "MediaFiles.csv" -MaxThreads 12 -FastMode -IncludeHidden
Features:
- Targets only video files (4 common formats)
- Minimum 100MB size filter
- 12-thread parallel processing for maximum speed
- Fast mode with .NET optimization and proper hidden file handling
- CSV export for spreadsheet analysis
# Scan protected system directories with FastMode
.\ChimpXplore.ps1 -Path "C:\Windows" -UseAdvancedMethods -FastMode -IncludeHidden -Depth 3 -TopFolders 30 -ExportHtml "SystemAnalysis.html"
Features:
- Uses WMI/Robocopy/Win32 API for permission issues
- FastMode with proper hidden file handling for system directories
- Limited to 3 directory levels for performance
- Advanced methods handle access-denied folders
- HTML report with system directory breakdown
# Analyze network storage with authentication handling
.\ChimpXplore.ps1 -Path "\\server\share" -UseAdvancedMethods -MinSize 10 -TopFolders 30 -ExportCsv "NetworkAnalysis.csv"
Features:
- Network share compatibility with SMB/CIFS
- Advanced authentication and permission handling
- Focus on folders β₯10MB for meaningful results
- CSV export for capacity planning
# Enterprise monitoring script
$date = Get-Date -Format "yyyy-MM-dd"
.\ChimpXplore.ps1 -Path "C:\" -ExportHtml "C:\Reports\Daily_$date.html" -ShowProgress $false -MinSize 5 -MaxThreads 6
Features:
- Silent operation perfect for scheduled tasks
- Date-stamped HTML reports with charts
- Optimized performance for unattended execution
- 5MB minimum for meaningful storage analysis
# Deep user directory analysis for cleanup
.\ChimpXplore.ps1 -Path "C:\Users\$env:USERNAME" -Comprehensive -IncludeHidden -TopFiles 100 -MinSize 0.5 -ExportHtml "UserCleanup.html"
Features:
- Includes hidden files and system directories
- Comprehensive metadata with creation/access times
- Large file list (100 files) for thorough review
- Small minimum size (0.5MB) catches more cleanup targets
ChimpXplore generates professional HTML reports with advanced visualization:
- Folder Size Bar Chart - Top folders with intelligent unit scaling (MB/GB/TB)
- File Type Doughnut Chart - Distribution by extension with color coding
- Responsive Design - Adapts to desktop, tablet, and mobile screens
- Chart.js Integration - Professional data visualization with tooltips
- Horizontal Scrolling - Full file paths without truncation
- Mobile Responsive - Optimized layout for all screen sizes
- Clean Styling - Professional appearance with hover effects
- Complete Metadata - Size, modification dates, file counts
π Summary Statistics (Total size, files, folders, scan duration)
π Interactive Charts (Folders by size, file types distribution)
π Top Folders Table (Path, size with percentage, file/folder counts)
π Top Files Table (Full path, size, last modified, extension)
- Header: Scan summary with key metrics
- Charts Section: Interactive visualizations with Chart.js
- Tables Section: Detailed breakdowns with responsive design
- Mobile Support: Optimized for all device types
Environment | Recommended Threads | Use Case |
---|---|---|
Small directories (< 10,000 files) | 2-4 threads | Basic scans, user directories |
Medium directories (10,000-100,000 files) | 4-8 threads | Application folders, departmental shares |
Large directories (100,000+ files) | 8-16 threads | Full drive scans, enterprise storage |
Network shares | 2-6 threads | Reduce network congestion |
When -UseAdvancedMethods
is enabled, ChimpXplore uses multiple fallback methods:
- Standard PowerShell - Primary method with full error reporting
- WMI (Windows Management Instrumentation) - System-level access for protected directories
- Robocopy - Windows utility for accurate size calculation in restricted areas
- Win32 API - Low-level file system access for maximum compatibility
ChimpXplore includes intelligent memory management:
- Automatic garbage collection every 10,000 processed items
- Streaming processing for large datasets
- Efficient object disposal to prevent memory leaks
- Progress-based memory optimization reduces footprint during long scans
Issue | Symptoms | Solution |
---|---|---|
Access Denied | Permission errors, missing folders | Use -UseAdvancedMethods and run as Administrator |
Slow Performance | Long scan times | Enable -FastMode , increase -MaxThreads , use -MinSize filter |
High Memory Usage | System slowdown | Reduce -TopFolders /-TopFiles , increase -MinSize threshold |
Network Timeouts | Incomplete network scans | Use -UseAdvancedMethods , reduce thread count for network paths |
HTML Charts Not Loading | Blank chart areas | Ensure modern browser, check JavaScript console for errors |
ChimpXplore is designed to match Windows Explorer and TreeSize Free exactly:
- Standard mode: 99%+ accuracy vs Windows Explorer
- FastMode: 95%+ accuracy with 2-3x speed improvement
- Advanced methods: 100% accuracy including system-protected areas
- C:\Windows (150,000 files): ~45 seconds with 8 threads
- C:\Program Files (200,000 files): ~1 minute with advanced methods
- Full C:\ drive (500,000+ files): ~3-8 minutes depending on configuration
- Win32 API - Direct Windows API calls for maximum access
The -Comprehensive
switch adds detailed metadata:
- Creation times and last access times
- File attributes (hidden, system, read-only, archive)
- Junction point and symbolic link resolution
- Enhanced error reporting
- File type distribution analysis
# Daily drive monitoring
$action = New-ScheduledTaskAction -Execute "PowerShell.exe" -Argument "-File C:\Scripts\ChimpXplore.ps1 -Path C:\ -ExportHtml C:\Reports\Daily_$(Get-Date -Format 'yyyy-MM-dd').html -ShowProgress `$false -MinSize 5"
$trigger = New-ScheduledTaskTrigger -Daily -At "03:00"
Register-ScheduledTask -Action $action -Trigger $trigger -TaskName "ChimpXplore-Daily" -Description "Daily disk space analysis"
# Weekly comprehensive scan
0 2 * * 1 /usr/bin/pwsh /opt/scripts/ChimpXplore.ps1 -Path /home -ExportHtml /var/reports/weekly_$(date +\%Y-\%m-\%d).html -ShowProgress false -MaxThreads 6
# Import for use in other scripts
. .\ChimpXplore.ps1
# Enterprise monitoring function
function Start-StorageMonitoring {
param([string[]]$Paths)
foreach ($path in $Paths) {
$timestamp = Get-Date -Format "yyyy-MM-dd_HH-mm"
$reportPath = "C:\Reports\Storage_$($path -replace ':', '').Replace('\','_')_$timestamp.html"
.\ChimpXplore.ps1 -Path $path -ExportHtml $reportPath -UseAdvancedMethods -MinSize 10
}
}
ChimpXplore generates comprehensive CSV exports with the following columns:
Column | Description | Example | Notes |
---|---|---|---|
Type |
Item type | "Folder" / "File" | Used for filtering |
Name |
Item name | "Documents" | File/folder name only |
Path |
Full path | "C:\Users\John\Documents" | Complete file system path |
Size |
Size in bytes | 1073741824 | Raw size for calculations |
SizeFormatted |
Human-readable | "1.00 GB" | Display-friendly format |
FileCount |
Files contained | 1250 | Folders only |
FolderCount |
Subfolders | 45 | Folders only |
LastModified |
Last change | "2024-11-15 14:30:22" | ISO format timestamp |
Extension |
File extension | ".pdf" | Files only |
Comprehensive Mode Additional Columns:
CreationTime
- File/folder creation timestampLastAccessTime
- Last access timestampAttributes
- File system attributes (Hidden, ReadOnly, etc.)IsHidden
/IsSystem
- Boolean flags for special attributes
- Data Privacy: Only metadata is accessed, never file contents
- Permissions: Uses least-privilege access with fallback methods
- Network Security: Minimal network traffic, metadata queries only
- Audit Trail: All access attempts logged in verbose mode
- Daily: Critical system drives (C:, /root, /var)
- Weekly: User directories, application data, temp folders
- Monthly: Archive storage, backup locations, network shares
- Quarterly: Complete infrastructure audit with comprehensive reports
# Automated report cleanup (retain 30 days)
Get-ChildItem "C:\Reports\ChimpXplore_*.html" | Where-Object {$_.CreationTime -lt (Get-Date).AddDays(-30)} | Remove-Item
# Automated report indexing
$reports = Get-ChildItem "C:\Reports\ChimpXplore_*.html"
$index = $reports | Select-Object Name, CreationTime, @{N='SizeMB';E={[math]::Round($_.Length/1MB,2)}}
$index | Export-Csv "C:\Reports\Index.csv" -NoTypeInformation
- Start Conservative: Begin with default 4 threads, increase gradually
- Use Size Filters: Apply
-MinSize
to focus on significant consumers - Schedule Wisely: Run intensive scans during off-peak hours
- Monitor Resources: Watch CPU and memory usage during large scans
- Network Considerations: Reduce thread count for remote/network paths
- β Always-on parallel processing (4 threads default)
- β Enhanced FastMode with proper hidden file handling in parallel threads
- β Fixed large file collection issue - now properly aggregates files from all parallel threads
- β Interactive HTML reports with Chart.js integration
- β Intelligent unit scaling (MB/GB/TB) in charts
- β Mobile-responsive design with horizontal scrolling
- β Advanced methods for permission handling with improved platform detection
- β Comprehensive metadata collection
- β Cross-platform PowerShell Core support
- Documentation: This README and Quick Reference guide
- Troubleshooting: Common issues section above
- Performance: Benchmark data and optimization guidelines
- Examples: 15+ real-world usage scenarios
ChimpXplore is developed for MSP automation and enterprise storage management.
Dependencies:
- PowerShell 5.1+ / PowerShell Core 6+
- Chart.js (loaded via CDN for HTML reports)
- Windows: WMI, Robocopy (optional, for advanced methods)
Use in accordance with your organization's IT policies and applicable software licenses.