Assuming already have winget-cli
via App Installer
in Store
- Powershell Core Preview
- Windows Terminal Preview
- PowerToys
winget install Microsoft.Powershell-Preview
winget install Microsoft.WindowsTerminalPreview
winget install Microsoft.PowerToys
- Check Execution Policy (should be
Remote Signed
from enabling Developer Mode in Settings) - Ensure Admin
Get-ExecutionPolicy
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
- Can enable optional features through control panel
- OR now you can simply run:
wsl --install
which will enable Virtual Machine Platform and Download latest WSL Kernel.
- Restart Machine
Some minor WSL setup:
wsl --set-default-version 2