Managing Windows subsystem for Linux (WSL)

If you activate the WSL Windows feature, images and config will reside under %userprofile%\AppData\Local\Packages

Some simple powershell commands for managing WSL

List images

wsl -l -v

Uninstall an image:

wsl --unregister kali-rolling
removes your image of choice

Backup your image:

wsl --export <distro> <filename.tar>

Import your image:

wsl --import <distro> <install location> <filename> 

Upgrade WSL version:

wsl --set-version <distro name> 2

Stop WSL:

wsl --shutdown

Kali Linux specific tip:

Run Kali in a nice desktop experience https://www.kali.org/docs/wsl/win-kex/

More articles

Dynamic botnet filter

We can utilize dynamic botnet filters on firewalls and specific services can be called upon dynamically. On Github there are several

Read More »