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.
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
| État | Valeur é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 DWordDé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 DWordRevenir à « Non configuré »
# Revenir à « Non configuré » : WSL/AllowInboxWSL
$k = 'HKLM:\Software\Policies\WSL'
Remove-ItemProperty -Path $k -Name 'AllowInboxWSL' -ErrorAction SilentlyContinueApplication
Sous-système Windows pour Linux (WSL) (Microsoft) — modèles de novembre 2026
Modèles officiels téléchargés le 12 novembre 2026.