Prevent embedded UI
Désactiver l’interface utilisateur incorporée
Explanation
This policy setting controls the ability to prevent embedded UI.
If you enable this policy setting, no packages on the system can run embedded UI.
If you disable or do not configure this policy setting, embedded UI is allowed to run.
Ce paramètre de stratégie contrôle la possibilité de désactiver l’interface utilisateur incorporée.
Si vous activez ce paramètre de stratégie, aucun package du système ne peut exécuter l’interface utilisateur incorporée.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, l’interface utilisateur incorporée est autorisée à s’exécuter.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer- Value name
MsiDisableEmbeddedUI
| 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/MsiDisableEmbeddedUI
$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 'MsiDisableEmbeddedUI' -Value 1 -Type DWordDisable
# Disable: MSI/MsiDisableEmbeddedUI
$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 'MsiDisableEmbeddedUI' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": MSI/MsiDisableEmbeddedUI
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Installer'
Remove-ItemProperty -Path $k -Name 'MsiDisableEmbeddedUI' -ErrorAction SilentlyContinue