Remove "Run this time" button for outdated ActiveX controls in Internet Explorer
Supprimer le bouton de « Exécuter une fois » pour les contrôles ActiveX obsolètes dans Internet Explorer
Explanation
This policy setting allows you to stop users from seeing the "Run this time" button and from running specific outdated ActiveX controls in Internet Explorer.
If you enable this policy setting, users won't see the "Run this time" button on the warning message that appears when Internet Explorer blocks an outdated ActiveX control.
If you disable or don't configure this policy setting, users will see the "Run this time" button on the warning message that appears when Internet Explorer blocks an outdated ActiveX control. Clicking this button lets the user run the outdated ActiveX control once.
For more information, see "Outdated ActiveX Controls" in the Internet Explorer TechNet library.
Ce paramètre de stratégie permet de masquer le bouton « Exécuter une fois » et d'empêcher les utilisateurs d'exécuter certains contrôles ActiveX obsolètes dans Internet Explorer.
Si vous activez ce paramètre de stratégie, les utilisateurs ne verront pas le bouton « Exécuter une fois » sur le message d'avertissement qui apparaît lorsqu'Internet Explorer bloque un contrôle ActiveX obsolète.
Si vous désactivez ou ne configurez pas ce paramètre de stratégie, les utilisateurs verront le bouton « Exécuter une fois » sur le message d'avertissement qui apparaît lorsqu'Internet Explorer bloque un contrôle ActiveX obsolète. Ce bouton permet à l'utilisateur d'exécuter le contrôle ActiveX obsolète une seule fois.
Pour plus d'informations, voir « Contrôles ActiveX obsolètes » dans la bibliothèque TechNet d'Internet Explorer.
Registry
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\ExtHKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Ext- Value name
RunThisTimeEnabled
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 0 |
| Disabled | REG_DWORD = 1 |
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/VerMgmtDisableRunThisTime
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Ext'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'RunThisTimeEnabled' -Value 0 -Type DWordDisable
# Disable: inetres/VerMgmtDisableRunThisTime
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Ext'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'RunThisTimeEnabled' -Value 1 -Type DWordRevert to "Not configured"
# Revert to "Not configured": inetres/VerMgmtDisableRunThisTime
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Ext'
Remove-ItemProperty -Path $k -Name 'RunThisTimeEnabled' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"