Prohibit non-administrators from applying vendor signed updates
Empêcher les non-administrateurs d’appliquer des mises à jour signées d’éditeurs
Explanation
This policy setting controls the ability of non-administrators to install updates that have been digitally signed by the application vendor.
Non-administrator updates provide a mechanism for the author of an application to create digitally signed updates that can be applied by non-privileged users.
If you enable this policy setting, only administrators or users with administrative privileges can apply updates to Windows Installer based applications.
If you disable or do not configure this policy setting, users without administrative privileges can install non-administrator updates.
Ce paramètre de stratégie contrôle la capacité des non-administrateurs à installer des mises à jour qui ont été signées numériquement par le revendeur d’une application.
Les mises à jour appliquées par des non-administrateurs offrent à l’auteur d’une application le moyen de créer des mises à jour signées numériquement applicables par des utilisateurs sans privilège.
Si vous activez ce paramètre de stratégie, seuls les administrateurs ou les utilisateurs disposant de privilèges d’administration peuvent appliquer les mises à jour d’applications compatibles Windows Installer.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, les utilisateurs sans privilège d’administration peuvent installer les mises à jour non-administrateur.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer- Value name
DisableLUAPatching
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
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: MSI/MSI_DisableLUAPatching
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Installer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableLUAPatching' -Value 1 -Type DWordDisable
# Disable: MSI/MSI_DisableLUAPatching
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Installer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableLUAPatching' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": MSI/MSI_DisableLUAPatching
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Installer'
Remove-ItemProperty -Path $k -Name 'DisableLUAPatching' -ErrorAction SilentlyContinue