Open in the explorer

Prevent users from using Windows Installer to install updates and upgrades

Empêcher les utilisateurs d’utiliser Windows Installer pour installer des mises à jour et des mises à niveau

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Windows Installer FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Windows Installer
Supported on
At least Windows 2000 FR: Au minimum Windows 2000
ADMX file
MSI.admx
Internal name
MSI/DisablePatch

Explanation

This policy setting prevents users from using Windows Installer to install patches.

If you enable this policy setting, users are prevented from using Windows Installer to install patches. Patches are updates or upgrades that replace only those program files that have changed. Because patches can be easy vehicles for malicious programs, some installations prohibit their use.

Note: This policy setting applies only to installations that run in the user's security context.

If you disable or do not configure this policy setting, by default, users who are not system administrators cannot apply patches to installations that run with elevated system privileges, such as those offered on the desktop or in Add or Remove Programs.

Also, see the "Enable user to patch elevated products" policy setting.

French text from Windows 11 26H2

Ce paramètre de stratégie empêche les utilisateurs d’utiliser Windows Installer pour installer des correctifs.

Si vous activez ce paramètre de stratégie, les utilisateurs ne peuvent pas utiliser Windows Installer pour installer des correctifs. Les correctifs sont des mises à jour ou des mises à niveau qui remplacent uniquement les fichiers programmes qui ont changé. Comme les correctifs sont des sources faciles d’intrusion malveillante, certaines installations empêchent leur utilisation.

Remarque : ce paramètre de stratégie s’applique uniquement aux installations qui s’exécutent dans le contexte de sécurité de l’utilisateur.

Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, par défaut, les utilisateurs qui ne sont pas administrateurs système ne peuvent pas appliquer de correctifs aux installations qui s’exécutent avec des privilèges système élevés, telles que les installations disponibles sur le Bureau ou dans l’application Ajout/Suppression de programmes.

Consultez également le paramètre de stratégie « Autoriser l’utilisateur à appliquer des correctifs sur des installations avec privilèges élevés ».

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer
Value name
DisablePatch
StateValue written
EnabledREG_DWORD = 1
DisabledREG_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/DisablePatch
$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 'DisablePatch' -Value 1 -Type DWord

Disable

# Disable: MSI/DisablePatch
$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 'DisablePatch' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": MSI/DisablePatch
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Installer'
Remove-ItemProperty -Path $k -Name 'DisablePatch' -ErrorAction SilentlyContinue

Availability