1. Check Windows version (must be 22000 or higher)
[System.Environment]::OSVersion.Version
2. Enable required Windows features
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
3. Restart your computer (do this manually)
4. Download and install WSA (this uses winget, ensure it's installed)
winget install 9P3395VX91NR -s msstore
5. Enable Developer Mode (optional, for sideloading apps)
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" /t REG_DWORD /f /v "AllowDevelopmentWithoutDevLicense" /d "1"
Start-Process "wsa://com.amazon.venezia"
Get-WmiObject -Namespace "root\cimv2\mdm\dmmap" -Class "MDM_AppsVirtualization_ApplicationSettings" | Select-Object -Property PSComputerName, ProviderID, SettingName, SettingValue
8. (Optional) Install ADB for sideloading apps
winget install Google.AndroidStudio