Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/neyrian/wsl-disk-optimization
Optimize all wsl disk image
https://github.com/neyrian/wsl-disk-optimization
disk-space optimization powershell reduce virtual-disk windows-10 windows-11 wsl wsl2
Last synced: 6 days ago
JSON representation
Optimize all wsl disk image
- Host: GitHub
- URL: https://github.com/neyrian/wsl-disk-optimization
- Owner: Neyrian
- Created: 2024-11-14T09:37:16.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-02-13T15:12:54.000Z (7 days ago)
- Last Synced: 2025-02-13T16:27:41.473Z (7 days ago)
- Topics: disk-space, optimization, powershell, reduce, virtual-disk, windows-10, windows-11, wsl, wsl2
- Language: PowerShell
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WSL Disk Optimization
It seems that windows allocates some space to the disk image of wsl. Even after clearing deleting the files, the disk space remains occupied as it has been allocated to the disk image. You need to compactify the disk image.
This script helps you to compact the disks of all your wsl distributions.## Usage
Open an admin powershell and run
```powershell
powershell -noexit -ExecutionPolicy Bypass -File .\OptimizeWSLdisk.ps1
```## Tests
- [x] Win 11 Pro 10.0.22631 Build 22631
- [ ] Win 10