Ouvrir dans l'explorateur

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.

Type
Ordinateur
Chemin GPO
Configuration ordinateur › Stratégies › Modèles d'administration › Desktop App Installer EN : Computer Configuration › Policies › Administrative Templates › Desktop App Installer
Pris en charge sur
At least Windows Server 2016, Windows 10 Version 1809
Fichier ADMX
DesktopAppInstaller.admx
Nom interne
DesktopAppInstaller/EnableMsixAllowedZones

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
É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 : 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 DWord

Dé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 DWord

Revenir à « 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 SilentlyContinue

Options (5)

LibelléContrôleValeur de registreType REGContraintes / détails
Local MachineLocalMachineListe déroulanteenumLocalMachinedans Software\Policies\Microsoft\Windows\AppInstaller\MsixAllowedZonesREG_DWORD
Choix par défaut (interface) : n° 1
LibelléValeur
BlockREG_DWORD = 0
AllowREG_DWORD = 1
IntranetIntranetListe déroulanteenumIntranetdans Software\Policies\Microsoft\Windows\AppInstaller\MsixAllowedZonesREG_DWORD
Choix par défaut (interface) : n° 1
LibelléValeur
BlockREG_DWORD = 0
AllowREG_DWORD = 1
Trusted SitesTrustedSitesListe déroulanteenumTrustedSitesdans Software\Policies\Microsoft\Windows\AppInstaller\MsixAllowedZonesREG_DWORD
Choix par défaut (interface) : n° 1
LibelléValeur
BlockREG_DWORD = 0
AllowREG_DWORD = 1
InternetInternetListe déroulanteenumInternetdans Software\Policies\Microsoft\Windows\AppInstaller\MsixAllowedZonesREG_DWORD
Choix par défaut (interface) : n° 1
LibelléValeur
BlockREG_DWORD = 0
AllowREG_DWORD = 1
Untrusted SitesUntrustedSitesListe déroulanteenumUntrustedSitesdans Software\Policies\Microsoft\Windows\AppInstaller\MsixAllowedZonesREG_DWORD
Choix par défaut (interface) : n° 0
LibelléValeur
BlockREG_DWORD = 0
AllowREG_DWORD = 1

Application

WinGet (App Installer) (Microsoft) — modèles d'octobre 2026

Modèles d'octobre 2026 issus de pl4nty/web-admx-tool.