Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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