Wingetlywingetly
← Back to Windows Subsystem for Linux

Silent install command for Windows Subsystem for Linux 2.7.0

The exact silent switches the Windows Subsystem for Linux installer accepts, plus a one-line command you can paste into a script, Intune Win32 app, or Configuration Manager package.

One-line silent install (x64, machine scope)
msiexec.exe /i wsl.2.7.0.0.x64.msi /quiet /norestart

Run from the directory containing wsl.2.7.0.0.x64.msi. Download the installer from the Direct link below first. Run an elevated terminal (Run as Administrator) for machine-scope installs.

ArchitectureScopeTypeSilent switchesSource
x64machineMSI
WiX
Default for WiX (MSI)
arm64machineMSI
WiX
Default for WiX (MSI)
  • Declared by publisher means the switches come straight from the winget manifest the publisher (or community maintainer) submitted to microsoft/winget-pkgs.
  • Default for {type} means the manifest doesn't specify silent switches, so the framework's standard switches are shown (e.g. /S for NSIS, /quiet /norestart for MSI).

Frequently asked questions

What is the silent install command for Windows Subsystem for Linux?
Windows Subsystem for Linux uses MSI (WiX). After downloading the installer, run: msiexec.exe /i wsl.2.7.0.0.x64.msi /quiet /norestart. The silent install switches are /quiet /norestart.
How do I deploy Windows Subsystem for Linux via Intune or Configuration Manager?
Use winget for the cleanest path: winget install --id Microsoft.WSL.PreRelease --exact 2.7.0 --silent --accept-package-agreements --accept-source-agreements. If winget isn't viable in your environment, package the publisher's installer directly using the silent switches above.

Prefer the winget route? See the full Windows Subsystem for Linux install page.