Turn off ActiveX Opt-In prompt
Désactiver l’invite d’exécution d’ActiveX
Explanation
This policy setting allows you to turn off the ActiveX Opt-In prompt. ActiveX Opt-In prevents websites from loading any ActiveX control without prior approval. If a website attempts to load an ActiveX control that Internet Explorer has not used before, a Notification bar will appear, asking the user for approval.
If you enable this policy setting, the ActiveX Opt-In prompt does not appear. Internet Explorer does not ask the user for permission to load an ActiveX control, and Internet Explorer loads the control if it passes all other internal security checks.
If you disable or do not configure this policy setting, the ActiveX Opt-In prompt appears.
Ce paramètre de stratégie vous permet de désactiver l’invite d’exécution d’ActiveX. L’exécution d’ActiveX empêche les sites Web de charger tout contrôle ActiveX sans autorisation préalable. Si un site Web tente de charger un contrôle ActiveX qu’Internet Explorer n’a jamais utilisé auparavant, une Barre de notification s’affiche pour demander l’autorisation de l’utilisateur.
Si vous activez ce paramètre de stratégie, l’invite d’exécution d’ActiveX n’apparaît pas. Internet Explorer ne demande pas l’autorisation de l’utilisateur pour charger un contrôle ActiveX. En outre, Internet Explorer charge le contrôle s’il passe tous les autres contrôles de sécurité internes.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, l’invite d’exécution d’ActiveX apparaît.
Registry
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\ExtHKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Ext- Value name
NoFirsttimeprompt
| State | Value written |
|---|---|
| Enabled | not defined in the ADMX |
| Disabled | not defined in the ADMX |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
The ADMX does not specify the value written when enabled; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled). The commands below use 1/0 as an assumption.
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/DisableActiveXFirstPrompt
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Ext'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'NoFirsttimeprompt' -Value 1 -Type DWord # assumed value (not defined in the ADMX)Disable
# Disable: inetres/DisableActiveXFirstPrompt
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Ext'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'NoFirsttimeprompt' -Value 0 -Type DWord # assumed value (not defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": inetres/DisableActiveXFirstPrompt
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Ext'
Remove-ItemProperty -Path $k -Name 'NoFirsttimeprompt' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"