Windows Subsystem for Linux silent install and uninstall

A feature of Windows that allows you to run a Linux environment on your Windows machine, without the need for a separate virtual machine or dual booting.

MSI x64arm64 Updated 19 Oct 2026
Vendor
Microsoft Corporation
Category
Runtimes
Installer
Windows Installer (MSI, built with WiX)
Architecture
x64, arm64
Checked version
2.7.13
winget ID
Microsoft.WSL
Product code
{104E16F9-C929-46FA-8CC3-A874FC01F91E}
License
MIT
Download
Official download

Silent install

msiexec /i wsl.2.7.13.0.x64.msi /qn /norestart
  1. Download the installer from the direct download link.
  2. Open an elevated Command Prompt: right-click Command Prompt and select Run as administrator.
  3. Change to the folder with the installer, for example cd C:\Temp.
  4. Run the command above. Adjust the file name if you downloaded a different version.

Or install with winget

winget install --id Microsoft.WSL --exact --silent --scope machine --accept-package-agreements --accept-source-agreements

Silent uninstall

MSI
msiexec /x {104E16F9-C929-46FA-8CC3-A874FC01F91E} /qn /norestart
winget
winget uninstall --id Microsoft.WSL --exact --silent --accept-source-agreements

Run the command from an elevated Command Prompt.

About the Windows Installer (MSI, built with WiX) installer

An MSI built with the WiX Toolset. It is installed with msiexec and accepts the standard MSI switches.

SwitchWhat it does
/qnNo user interface.
/norestartNever restart, even if the installation needs it.
/l*v "C:\Temp\install.log"Verbose log file.

Deploy Windows Subsystem for Linux with Microsoft Intune

Package the installer as a Win32 app (.intunewin) and use these settings:

Install commandmsiexec /i wsl.2.7.13.0.x64.msi /qn /norestart
Uninstall command msiexec /x {104E16F9-C929-46FA-8CC3-A874FC01F91E} /qn /norestart
Install behaviorSystem
Detection ruleMSI product code {104E16F9-C929-46FA-8CC3-A874FC01F91E}

More runtimes apps