Enable App Installer Allowed Zones for MSIX Packages
Cette stratégie n'a pas de traduction française dans les modèles de l'éditeur ; le texte original est en anglais.
Explication
This policy controls whether App Installer allows installing packages originating from specific URL Zones. A package's origin is determined by its URI and whether a Mart-of-the-Web (MotW) is present. If multiple URIs are involved, all of them are considered; for example, when using a .appinstaller file that involves redirection.
If you enable this policy, users will be able to install MSIX packages according to the configuration for each zone.
If you disable or do not configure this policy, users will be able to install MSIX packages from any zone except for Untrusted.
Registre
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\AppInstaller- Nom de la valeur
EnableMsixAllowedZones
| É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 : DesktopAppInstaller/EnableMsixAllowedZones
$k = 'HKLM:\Software\Policies\Microsoft\Windows\AppInstaller'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableMsixAllowedZones' -Value 1 -Type DWord
$k = 'HKLM:\Software\Policies\Microsoft\Windows\AppInstaller\MsixAllowedZones'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Local Machine
# Options possibles :
# Block = 0
# Allow = 1
Set-ItemProperty -Path $k -Name 'LocalMachine' -Value 1 -Type DWord
# Intranet
# Options possibles :
# Block = 0
# Allow = 1
Set-ItemProperty -Path $k -Name 'Intranet' -Value 1 -Type DWord
# Trusted Sites
# Options possibles :
# Block = 0
# Allow = 1
Set-ItemProperty -Path $k -Name 'TrustedSites' -Value 1 -Type DWord
# Internet
# Options possibles :
# Block = 0
# Allow = 1
Set-ItemProperty -Path $k -Name 'Internet' -Value 1 -Type DWord
# Untrusted Sites
# Options possibles :
# Block = 0
# Allow = 1
Set-ItemProperty -Path $k -Name 'UntrustedSites' -Value 0 -Type DWordDésactiver
# Désactiver : DesktopAppInstaller/EnableMsixAllowedZones
$k = 'HKLM:\Software\Policies\Microsoft\Windows\AppInstaller'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableMsixAllowedZones' -Value 0 -Type DWordRevenir à « Non configuré »
# Revenir à « Non configuré » : DesktopAppInstaller/EnableMsixAllowedZones
$k = 'HKLM:\Software\Policies\Microsoft\Windows\AppInstaller'
Remove-ItemProperty -Path $k -Name 'EnableMsixAllowedZones' -ErrorAction SilentlyContinue
$k = 'HKLM:\Software\Policies\Microsoft\Windows\AppInstaller\MsixAllowedZones'
Remove-ItemProperty -Path $k -Name 'LocalMachine' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Intranet' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'TrustedSites' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Internet' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'UntrustedSites' -ErrorAction SilentlyContinueOptions (5)
| Libellé | Contrôle | Valeur de registre | Type REG | Contraintes / détails | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Local MachineLocalMachine | Liste déroulanteenum | LocalMachinedans Software\Policies\Microsoft\Windows\AppInstaller\MsixAllowedZones | REG_DWORD | Choix par défaut (interface) : n° 1
| ||||||
| IntranetIntranet | Liste déroulanteenum | Intranetdans Software\Policies\Microsoft\Windows\AppInstaller\MsixAllowedZones | REG_DWORD | Choix par défaut (interface) : n° 1
| ||||||
| Trusted SitesTrustedSites | Liste déroulanteenum | TrustedSitesdans Software\Policies\Microsoft\Windows\AppInstaller\MsixAllowedZones | REG_DWORD | Choix par défaut (interface) : n° 1
| ||||||
| InternetInternet | Liste déroulanteenum | Internetdans Software\Policies\Microsoft\Windows\AppInstaller\MsixAllowedZones | REG_DWORD | Choix par défaut (interface) : n° 1
| ||||||
| Untrusted SitesUntrustedSites | Liste déroulanteenum | UntrustedSitesdans Software\Policies\Microsoft\Windows\AppInstaller\MsixAllowedZones | REG_DWORD | Choix par défaut (interface) : n° 0
|
Application
WinGet (App Installer) (Microsoft) — modèles d'octobre 2026
Modèles d'octobre 2026 issus de pl4nty/web-admx-tool.