Allow Internet Explorer 8 shutdown behavior
Autoriser le comportement d’arrêt d’Internet Explorer 8
Explanation
This policy setting allows you to revert to the Internet Explorer 8 behavior of allowing OnUnLoad script handlers to display UI during shutdown. This policy setting may be needed to fix compatibility problems with particular web applications.
If you enable this policy setting, OnUnLoad script handlers display UI during shutdown.
If you disable or do not configure this policy setting, OnUnLoad script handlers do not display UI during shutdown (default behavior in Internet Explorer 9).
Ce paramètre de stratégie vous permet de rétablir le comportement d’Internet Explorer 8 afin d’autoriser les gestionnaires de scripts OnUnLoad à afficher l’interface utilisateur durant l’arrêt. Ce paramètre de stratégie peut s’avérer nécessaire pour corriger les problèmes de compatibilité d’applications Web spécifiques.
Si vous activez ce paramètre de stratégie, les gestionnaires de scripts OnUnLoad affichent l’interface utilisateur durant l’arrêt.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, les gestionnaires de scripts OnUnLoad n’affichent pas l’interface utilisateur durant l’arrêt (comportement par défaut dans Internet Explorer 9).
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Internet Explorer\MainHKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Main- Value name
ShutdownWaitForOnUnload
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| 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.
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/FastShutdownOnUnload
$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 'ShutdownWaitForOnUnload' -Value 1 -Type DWordDisable
# Disable: inetres/FastShutdownOnUnload
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main'
# disabledValue is not defined in the ADMX: no value is specified for the "Disabled" stateRevert to "Not configured"
# Revert to "Not configured": inetres/FastShutdownOnUnload
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main'
Remove-ItemProperty -Path $k -Name 'ShutdownWaitForOnUnload' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"