WSL CFG
- 
WSL distro installation stuck
- Open "Windows Security"
- Open "App & Browser control"
- Click "Exploit protection settings" at the bottom
- Switch to "Program settings" tab
- 
Add/Locate Hyper-V Host Compute Service:C:\WINDOWS\System32\vmcompute.exein the list and expand it
- Click "Edit"
- 
Scroll down to "Code flow guard (CFG)" and check "Override system settings" (CFGmust be ON for this app!)
- 
Check "Use strict CFG".
- Click "Apply".
- Reboot
 
WSL Pengwin VHD
- Proper way to backup/restore Pengwin #598
- 
Determine archive location, and update $FileName.
- 
Determine previous installation location, and update $InstallLocation.
- 
To avoid error messages, wsl --unregister WLinux.# wsl --export <Distro> <FileName[.tar|.vhdx]> [--vhd] # VHD (Virtual Hard Disk) is a file-based virtual disk that represents a Linux # file system. $FileName = "$env:USERPROFILE\Downloads\WLinux.vhdx" wsl --export WLinux "$FileName" --vhd # wsl --import <Distro> <InstallLocation> <FileName> [Options] # [--version <1|2>] # [--vhd] $InstallLocation = Get-Item -Path ("$env:LOCALAPPDATA\" + "Packages\WhitewaterFoundryLtd.Co.16571368D6CFF_kd1vv0z0vy70w\LocalState\") $FileName = Get-Item -Path "$env:USERPROFILE\Downloads\WLinux.vhdx" wsl --import WLinux "$InstallLocation" "$FileName" --version 2 --vhd pengwin.exe config --default-user jdfen