RepositoryPowerShellDEGermany
pxlrbt

pxlrbt/move-wsl

Easily move your WSL distros VHDX file to a new location.

1.6kstars
155forks
8issues
8views

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: batch-script

#1 Repository Của Tháng

1
TINIX TRENDING·Chủ đề: wsl2

#1 Repository Của Tháng

1
TINIX TRENDING·Chủ đề: wsl

#1 Repository Của Tháng

🚀 Dời WSL sang ổ đĩa khác mà không lo hỏng ảnh

move-wsl: script PowerShell hỗ trợ dời file VHDX của cả WSL 1 và WSL 2 đến thư mục mới, có chế độ tương tác lẫn CLI, tự động shutdown WSL và kiểm tra nén NTFS trước khi thực thi.

Dự án move-wsl là một script PowerShell giúp người dùng dễ dàng di chuyển file ảnh VHDX của distro WSL (cả phiên bản WSL 1 và WSL 2) sang một vị trí mới trên ổ đĩa khác. Script hỗ trợ hai chế độ: chạy tương tác (chọn distro, nhập đường dẫn, xác nhận) hoặc chạy không tương tác qua tham số dòng lệnh. Trước khi thực hiện, script sẽ tự động shutdown WSL để tránh khóa file, kiểm tra xem thư mục đích có bật nén NTFS hay không (vì nén NTFS có thể gây hỏng ảnh WSL), và luôn giữ nguyên cài đặt distro mặc định.

✨ Điểm nổi bật

  • Hỗ trợ WSL 1 & 2: Di chuyển file VHDX của cả hai phiên bản WSL.
  • Hai chế độ chạy: Tương tác (có menu chọn) hoặc CLI (truyền tham số trực tiếp).
  • Tắt WSL tự động: Tránh lỗi khóa file khi đang chạy.
  • Giữ nguyên distro mặc định: Cài đặt mặc định sau khi dời vẫn giữ nguyên.
  • Kiểm tra nén NTFS: Cảnh báo nếu thư mục đích có bật nén, tránh hỏng ảnh.
  • Hỗ trợ xuất lệnh ép buộc: Dùng -Force để bỏ qua xác nhận.
  • Có màu sắc & tiến trình: Giao diện rõ ràng với phản hồi thời gian thực.

💡 Vì sao đáng chú ý

Thay vì phải thủ công export, import lại distro – một quá trình dài và dễ gây lỗi – move-wsl chỉ cần vài câu lệnh là hoàn thành toàn bộ. Đặc biệt phù hợp cho người dùng Windows dùng WSL nhiều nhưng hệ thống chạm hết ổ C. Script dựa hoàn toàn trên lệnh wsl chính thức, an toàn và đã được cộng đồng kiểm chứng.


#LuciPhamDev #WSL #PowerShell #OpenSource #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositoryPowerShell
Raphire/Win11Debloat

A simple, lightweight PowerShell script that allows you to remove pre-installed apps, disable telemetry, as well as perform various other changes to declutter and customize your Windows experience. Win11Debloat works for both Windows 10 and Windows 11.

63.6k
Nov 15, 2026
RepositoryPowerShell
Micke-K/IntuneManagement

Copy, export, import, delete, document and compare policies and profiles in Intune and Azure with PowerShell script and WPF UI. Import ADMX files and registry settings with ADMX ingestion. View and edit PowerShell script.

2.1k
Oct 25, 2026
RepositoryPowerShell
Surfboardv2ray/batch-fragment-scanner

Batch Test v2ray fragment values to see which one works best on your network.

134
Sep 24, 2024
RepositoryPowerShell
daboynb/windows_scripts

Collection of useful automation scripts for Windows

119
Mar 4, 2026
RepositoryC++
microsoft/terminal

The new Windows Terminal and the original Windows console host, all in the same place!

105.5k
Nov 20, 2026
RepositoryC#
PowerShell/PowerShell

PowerShell for every system!

56.3k
Nov 20, 2026
RepositoryC#
dorssel/usbipd-win

Windows software for sharing locally connected USB devices to other machines, including Hyper-V guests and WSL 2.

6.3k
Nov 17, 2026
RepositoryC#
gerardog/gsudo

Sudo for Windows

6.1k
Aug 12, 2026
RepositoryRust
owu/wsl-dashboard

A GUI manager for WSL featuring a modern UI — a lightweight, low‑memory, high‑performance dashboard to manage WSL instances. Install, list, start, stop, unregister, and configure your WSL distros​ from one place.

4.1k
Nov 1, 2026