Prevent per-user installation of ActiveX controls
Empêcher l’installation par utilisateur des contrôles ActiveX
Explanation
This policy setting allows you to prevent the installation of ActiveX controls on a per-user basis.
If you enable this policy setting, ActiveX controls cannot be installed on a per-user basis.
If you disable or do not configure this policy setting, ActiveX controls can be installed on a per-user basis.
Ce paramètre de stratégie vous permet d’empêcher l’installation de contrôles ActiveX en fonction de chaque utilisateur.
Si vous activez ce paramètre de stratégie, les contrôles ActiveX ne peuvent pas être installés pour chaque utilisateur.
Si vous désactivez ou que vous ne configurez pas ce paramètre de stratégie, les contrôles ActiveX peuvent être installés pour chaque utilisateur.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Internet Explorer\Security\ActiveXHKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Security\ActiveX- Value name
BlockNonAdminActiveXInstall
| 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.
Computer (HKLM)
Enable
# Enable: inetres/DisablePerUserActiveXInstall
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Security\ActiveX'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'BlockNonAdminActiveXInstall' -Value 1 -Type DWordDisable
# Disable: inetres/DisablePerUserActiveXInstall
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Security\ActiveX'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'BlockNonAdminActiveXInstall' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": inetres/DisablePerUserActiveXInstall
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Security\ActiveX'
Remove-ItemProperty -Path $k -Name 'BlockNonAdminActiveXInstall' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"