Allowed package family names for non-admin user install
Noms de la famille de packages autorisés pour l’installation d’utilisateurs non administrateurs
Explanation
Allowed package family names for non-Administrator user Windows app package installation.
If you enable this policy, you can enter a list of Windows app packages non-Administrators will be able to initiate installation of regardless of the configured "Prevent non-admin users from installing packaged Windows apps" policy.
The values provided will be treated as regular expressions (ECMA Script). A package family name like Contoso.ContosoApp_8wekyb3d8bbwe is itself a valid regular expression that will match all packages in that family. A regular expression like ^Contoso.*_8wekyb3d8bbwe$ will also match Contoso.ContosoApp_8wekyb3d8bbwe
If the package family name of an installing Windows app package matches any rule it will not be blocked by the "Prevent non-admin users from installing packaged Windows apps" policy. Installation may still be blocked by other policy or settings.
If you disable or do not configure this policy, all Windows app packages will be subject to the configured "Prevent non-admin users from installing packaged Windows apps" policy.
Default is 'disabled' (key not present).
Noms de la famille de packages autorisés pour l’installation de package d’application Windows non administrateur.
Si vous activez ce paramètre de stratégie, vous pouvez entrer une liste de packages d’applications Windows pour lesquels les non-administrateurs peuvent lancer l’installation, quelle que soit la stratégie configurée « Empêcher les utilisateurs non administrateurs d’installer des applications Windows empaquetées ».
Les valeurs fournies seront traitées comme des expressions régulières (script ECMA). Un nom de famille de packages tel que Contoso.ContosoApp_8wekyb3d8bbwe est lui-même une expression régulière valide qui correspondra à tous les packages de cette famille. Une expression régulière telle que ^Contoso.*_8wekyb3d8bbwe$ correspondra également à Contoso.ContosoApp_8wekyb3d8bbwe
Si le nom de la famille de packages d’un package d’application Windows d’installation correspond à une règle, il n’est pas bloqué par la stratégie « Empêcher les utilisateurs non administrateurs d’installer des applications Windows empaquetées ». L’installation peut toujours être bloquée par d’autres paramètres ou stratégie.
Si vous désactivez ou ne configurez pas cette stratégie, tous les packages d’applications Windows sont soumis à la stratégie « Empêcher les utilisateurs non administrateurs d’installer des applications Windows empaquetées ».
La valeur par défaut est 'disabled' (clé absente).
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Appx\AllowedNonAdminPackageFamilyNameRules- Value name
- not defined in the ADMX
Enable / disable values: not defined in the ADMX (see the options below).
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: AppxPackageManager/AllowedNonAdminPackageFamilyNameRules
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Appx\AllowedNonAdminPackageFamilyNameRules'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Allowed package family names for non-admin user install
$values = @('<value1>', '<value2>') # Replace the values with your own
foreach ($v in $values) { Set-ItemProperty -Path $k -Name $v -Value $v -Type String }Disable
# Disable: AppxPackageManager/AllowedNonAdminPackageFamilyNameRules
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": AppxPackageManager/AllowedNonAdminPackageFamilyNameRules
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Appx\AllowedNonAdminPackageFamilyNameRules'
# names to adapt
# Remove-ItemProperty -Path $k -Name '<name1>' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Allowed package family names for non-admin user installNoms de la famille de packages autorisés pour l’installation d’utilisateurs non administrateursAllowedNonAdminPackageFamilyNameRulesList | List (table)list | policy keyNumbered values (1, 2, 3…) · additive | REG_SZ (values under the key) |