Skip to content

WSL2Compact

Latest

Choose a tag to compare

@hyperphantasia hyperphantasia released this 24 May 20:50
· 6 commits to main since this release
ee1bb68

WSL Compactor (WSL2Compact.exe)

Save disk space with just two clicks.

Windows executable release of the wsl_compactor.ps1 script. Helps you safely reclaim disk space used by WSL2 ext4.vhdx files.


Changelog

May 2026: updated with the latest version of the PS1 script (v.1.1.1)

  • Up-to-date with PR#4

Highlights

  • Packaged as a self-contained x64 executable (requires administrator privileges).
  • Compiled from PowerShell using PS2EXE.
  • Embedded metadata and icon.

Security & permissions

  • Requires elevation to unmount and compact VHDX files (the executable enforces admin elevation).

Backup important WSL data before running.