Windows Subsystem for Linux을(를) 확인 창 없이 설치하고 제거하며, 배포 도구에서 감지하기 위한 명령어입니다. 매니페스트에 기재되어 있거나 설치 기술의 문서화된 기본값처럼 확실한 명령어만 표시합니다.
관련 가이드: 무인 설치(자동 설치) 옵션 총정리 · 레지스트리·PowerShell로 프로그램 제거
winget 사용
PowerShell
winget install --id Microsoft.WSL -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.WSL -e --silentwinget uninstall --id Microsoft.WSL -e --silent설치 파일별
64비트 · MSIX
무인 설치
Add-AppxPackage -Path Microsoft.WSL_2.7.14.0_x64_ARM64.msixbundle제거
Get-AppxPackage -Name MicrosoftCorporationII.WindowsSubsystemForLinux | Remove-AppxPackage64비트 · MSI
무인 설치
msiexec /i wsl.2.7.14.0.x64.msi /qn /norestart로그 파일 저장
msiexec /i wsl.2.7.14.0.x64.msi /qn /norestart /l*v "%TEMP%\windows-subsystem-for-linux-install.log"제거
msiexec /x {DC52CEBE-E53A-463D-98EE-81AF640914BD} /qn /norestart- MSI 제품 코드
- {DC52CEBE-E53A-463D-98EE-81AF640914BD}
- 제거 레지스트리 키
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{DC52CEBE-E53A-463D-98EE-81AF640914BD}
ARM64 · MSIX
무인 설치
Add-AppxPackage -Path Microsoft.WSL_2.7.14.0_x64_ARM64.msixbundle제거
Get-AppxPackage -Name MicrosoftCorporationII.WindowsSubsystemForLinux | Remove-AppxPackageARM64 · MSI
무인 설치
msiexec /i wsl.2.7.14.0.arm64.msi /qn /norestart로그 파일 저장
msiexec /i wsl.2.7.14.0.arm64.msi /qn /norestart /l*v "%TEMP%\windows-subsystem-for-linux-install.log"제거
msiexec /x {D121F6A7-AEC9-46A4-94CB-0AF3FF1B5B61} /qn /norestart- MSI 제품 코드
- {D121F6A7-AEC9-46A4-94CB-0AF3FF1B5B61}
- 제거 레지스트리 키
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{D121F6A7-AEC9-46A4-94CB-0AF3FF1B5B61}
PowerShell: 다운로드, 검증, 설치
공식 파일을 다운로드하고 SHA256을 확인한 뒤 무인 설치합니다.
install-windows-subsystem-for-linux.ps1
$url = 'https://github.com/microsoft/WSL/releases/download/2.7.14/Microsoft.WSL_2.7.14.0_x64_ARM64.msixbundle'
$sha256 = '7BA80E0846C4E82AC3D33165C21A52D95278BAB422EF005461B5E6ACC37CE66B'
$file = Join-Path $env:TEMP 'Microsoft.WSL_2.7.14.0_x64_ARM64.msixbundle'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file install-windows-subsystem-for-linux.ps1
$url = 'https://github.com/microsoft/WSL/releases/download/2.7.14/wsl.2.7.14.0.x64.msi'
$sha256 = 'DB084E536279A59E90A26EC598D8AA8A4DFF8309F41D078FD06242953AC1EBCD'
$file = Join-Path $env:TEMP 'wsl.2.7.14.0.x64.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait install-windows-subsystem-for-linux.ps1
$url = 'https://github.com/microsoft/WSL/releases/download/2.7.14/Microsoft.WSL_2.7.14.0_x64_ARM64.msixbundle'
$sha256 = '7BA80E0846C4E82AC3D33165C21A52D95278BAB422EF005461B5E6ACC37CE66B'
$file = Join-Path $env:TEMP 'Microsoft.WSL_2.7.14.0_x64_ARM64.msixbundle'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file install-windows-subsystem-for-linux.ps1
$url = 'https://github.com/microsoft/WSL/releases/download/2.7.14/wsl.2.7.14.0.arm64.msi'
$sha256 = '3456D37B2F009FB075A1E35366E8B46CE13A7F8355DF63E278D68FCE319C790A'
$file = Join-Path $env:TEMP 'wsl.2.7.14.0.arm64.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait