Allow Install On Demand (except Internet Explorer)
Activer l’installation à la demande (sauf Internet Explorer)
Explanation
This policy setting allows you to manage whether users can download and install self-installing program files (non-Internet Explorer components) that are registered with Internet Explorer (such as Macromedia and Java) that are required in order to view web pages as intended.
If you enable this policy setting, non-Internet Explorer components will be automatically installed as necessary.
If you disable this policy setting, users will be prompted when non-Internet Explorer components would be installed.
If you do not configure this policy setting, non-Internet Explorer components will be automatically installed as necessary.
Ce paramètre de stratégie permet de définir si les utilisateurs peuvent télécharger et installer des fichiers programmes à installation automatique (composants ne relevant pas d’Internet Explorer) qui sont inscrits avec Internet Explorer (comme Macromedia et Java) et nécessaires pour afficher correctement certaines pages Web.
Si vous activez ce paramètre de stratégie, les composants manquants qui ne sont pas des composants Internet Explorer sont installés automatiquement.
Si vous désactivez ce paramètre de stratégie, le téléchargement de composants qui ne sont pas des composants Internet Explorer ne se fait qu’avec l’accord de l’utilisateur.
Si vous ne configurez pas ce paramètre de stratégie, les composants manquants qui ne sont pas des composants Internet Explorer sont installés automatiquement.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Internet Explorer\MainHKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Main- Value name
NoWebJITSetup
| 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/Advanced_InstallOnDemand_Other
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'NoWebJITSetup' -Value 0 -Type DWordDisable
# Disable: inetres/Advanced_InstallOnDemand_Other
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'NoWebJITSetup' -Value 1 -Type DWordRevert to "Not configured"
# Revert to "Not configured": inetres/Advanced_InstallOnDemand_Other
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main'
Remove-ItemProperty -Path $k -Name 'NoWebJITSetup' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"