Skip to content

Instantly share code, notes, and snippets.

@hkboujrida
Created August 18, 2021 14:48
Show Gist options
  • Save hkboujrida/6935a426f04e9c3da15870ea4d718046 to your computer and use it in GitHub Desktop.
Save hkboujrida/6935a426f04e9c3da15870ea4d718046 to your computer and use it in GitHub Desktop.
Set-ExecutionPolicy Bypass -Scope Process -Force;
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
wsl --set-default-version 2
Invoke-WebRequest -Uri https://aka.ms/wslubuntu2004 -OutFile Ubuntu.appx -UseBasicParsing
Add-AppxPackage .\Ubuntu.appx
@hkboujrida
Copy link
Author

Powershell script to run as administrator
Install WSL 2 + Ubuntu 20.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment