Ouvrir dans l'explorateur

Allow the Inbox version of the Windows Subsystem for Linux

Cette stratégie n'a pas de traduction française dans les modèles de l'éditeur ; le texte original est en anglais.

Type
Ordinateur
Chemin GPO
Configuration ordinateur › Stratégies › Modèles d'administration › Windows Subsystem for Linux EN : Computer Configuration › Policies › Administrative Templates › Windows Subsystem for Linux
Pris en charge sur
SUPPORTED_Windows10
Fichier ADMX
WSL.admx
Nom interne
WSL/AllowInboxWSL

Explication

When set to disabled, this policy disables the inbox version (optional component) of the Windows Subsystem for Linux. If this policy is disabled, only the store version of WSL can be used.

Registre

HKEY_LOCAL_MACHINE\Software\Policies\WSL
Nom de la valeur
AllowInboxWSL
ÉtatValeur écrite
ActivéREG_DWORD = 1
DésactivéREG_DWORD = 0

PowerShell

Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.

Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.

Activer

# Activer : WSL/AllowInboxWSL
$k = 'HKLM:\Software\Policies\WSL'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowInboxWSL' -Value 1 -Type DWord

Désactiver

# Désactiver : WSL/AllowInboxWSL
$k = 'HKLM:\Software\Policies\WSL'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowInboxWSL' -Value 0 -Type DWord

Revenir à « Non configuré »

# Revenir à « Non configuré » : WSL/AllowInboxWSL
$k = 'HKLM:\Software\Policies\WSL'
Remove-ItemProperty -Path $k -Name 'AllowInboxWSL' -ErrorAction SilentlyContinue

Application

Sous-système Windows pour Linux (WSL) (Microsoft) — modèles de novembre 2026

Modèles officiels téléchargés le 12 novembre 2026.