Skip to content

v2.13 - Statistics Accuracy & Pester Tests

Choose a tag to compare

@bivlked bivlked released this 17 Jan 22:16

🎯 What's New in v2.13

This release focuses on statistics accuracy and introduces comprehensive Pester testing for CI/CD.

🐛 Fixed

  • Docker statistics parsing: Fixed regex to support both reclaimed X and Total reclaimed space: X output formats
  • Event logs WarningsCount: Fixed missing counter increment when event log clearing fails
  • Windows Update false success: Added null-check to prevent misleading "0 updates installed" messages
  • Temp files deduplication: Fixed duplicate cleanup when %TEMP% equals %LOCALAPPDATA%\Temp
  • Browser cache negative values: Prevented incorrect statistics when browser recreates files during cleanup

⚡ Improved

  • Get-FolderSize performance: Added -File flag to skip directory objects (significantly faster)
  • Docker cleanup efficiency: Removed redundant docker builder prune (already included in system prune)
  • Recycle Bin size fallback: Added GetDetailsOf fallback for more reliable size calculation
  • Disk Cleanup registry cleanup: StateFlags9999 now properly removed after cleanmgr execution

🧪 New: Pester Tests

  • Added tests/Helpers.Tests.ps1 with 52 unit tests for helper functions
  • Added tests/Fixes.Tests.ps1 with 42 validation tests for all v2.13 fixes
  • Updated CI/CD workflow with Pester test job
  • 94 tests passing

📦 Installation

From PowerShell Gallery (Recommended)

Install-Script -Name WinClean

Update existing installation

Update-Script -Name WinClean

Direct download

irm https://raw.githubusercontent.com/bivlked/WinClean/main/WinClean.ps1 -OutFile WinClean.ps1

🚀 Quick Start

# Preview mode (no changes)
.\WinClean.ps1 -ReportOnly

# Full maintenance
.\WinClean.ps1

# Skip updates, only cleanup
.\WinClean.ps1 -SkipUpdates

Full Changelog: https://github.com/bivlked/WinClean/blob/main/CHANGELOG.md