Skip to content
/ WMT Public

WSL2 Management Tool (WMT) - A tool in PowerShell for cloning, exporting, and importing WSL2 distributions, with advanced ZIP compression management integrated into the export form.

Notifications You must be signed in to change notification settings

deuza/WMT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

GitHub release GitHub last commit Status License: CC0 PowerShell Platform GUI GitHub Release Date GitHub commit activity Hack The Planet Built With Love

🐧 WSL2 Management Tool (WMT) 🐧

Clone, export, import your WSL2 distributions — with optional compression of `.tar` files into `.zip` files.

🚀 Features

  • Simple graphical interface in WinForms
  • Cloning of a WSL2 distribution with choice of folder
  • Export .tar with automatic compression option to .zip
  • Import of a .tar or .zip to a new name/disk
  • Automatic checks (disk space, existing name, etc.)
  • 7-Zip support if available, otherwise native .NET fallback

📦 Installation

No installation required! Download the .ps1 script, run it with PowerShell (preferably as an administrator):

.\WMT.ps1

📸 Snapshots

Here's a look at the WMT (WSL2 Management Tool) interface :

01 02 03
04 05 06
07 08 10

Running the Script with "Mark of the Web" policies :

If you encounter issues running WMT.PS1 due to PowerShell execution policies, you might need to:

  1. Unblock the file: After downloading and extracting the script, right-click on WMT.PS1, go to Properties, and if you see an "Unblock" button or checkbox at the bottom of the General tab, click it and then OK. Alternatively, from PowerShell:

    Unblock-File -Path ".\WMT.PS1"
  2. Set Execution Policy for the current process (recommended for ease of use): Open PowerShell, navigate to the script's directory, and run:

    Set-ExecutionPolicy Bypass -Scope Process -Force    
    .\WMT.PS1

    This change only affects the current PowerShell session.

⚠️ Requires WSL2 to be active with at least one distro installed.

🛠️ Dependencies (optional)

  • 7-Zip (for more efficient compression)
  • PowerShell ≥ 5.1 (pre-installed on Win10/11)
  • Windows 10 / 11 with WSL2 enabled

💡 Tips

  • .zip compression is automatic after export if the option is checked.
  • The import directly accepts .zip files (unzipped in the background).

✅ Roadmap (v0.2.x)

  • Unified GUI interface
  • Command line mode (headless)
  • Auto-detection of corruption in archives
  • Batch mode for scheduled backups

🔓 Licence

CC0 1.0 Universal : https://creativecommons.org/publicdomain/zero/1.0/


With ❤️ by DeuZa ...

About

WSL2 Management Tool (WMT) - A tool in PowerShell for cloning, exporting, and importing WSL2 distributions, with advanced ZIP compression management integrated into the export form.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published