Display Shutdown Event Tracker
Afficher le moniteur d’événements de mise hors tension
Explanation
The Shutdown Event Tracker can be displayed when you shut down a workstation or server. This is an extra set of questions that is displayed when you invoke a shutdown to collect information related to why you are shutting down the computer.
If you enable this setting and choose "Always" from the drop-down menu list, the Shutdown Event Tracker is displayed when the computer shuts down.
If you enable this policy setting and choose "Server Only" from the drop-down menu list, the Shutdown Event Tracker is displayed when you shut down a computer running Windows Server. (See "Supported on" for supported versions.)
If you enable this policy setting and choose "Workstation Only" from the drop-down menu list, the Shutdown Event Tracker is displayed when you shut down a computer running a client version of Windows. (See "Supported on" for supported versions.)
If you disable this policy setting, the Shutdown Event Tracker is not displayed when you shut down the computer.
If you do not configure this policy setting, the default behavior for the Shutdown Event Tracker occurs.
Note: By default, the Shutdown Event Tracker is only displayed on computers running Windows Server.
Le moniteur d’événements de mise hors tension peut être affiché lorsque vous éteignez une station de travail ou un serveur. Il s’agit de questions supplémentaires affichées lorsque vous demandez une mise hors tension afin de recueillir les informations indiquant la raison de l’arrêt de l’ordinateur.
Si vous activez ce paramètre et que vous choisissez « Toujours » dans le menu déroulant, le moniteur d’événements de mise hors tension s’affiche lorsque vous arrêtez l’ordinateur.
Si vous activez ce paramètre de stratégie et choisissez « Serveur uniquement » dans le menu déroulant, le moniteur d’événements de mise hors tension s’affiche lorsque vous arrêtez un ordinateur qui exécute Windows Server. (Voir « Pris en charge sur » pour connaître les versions prises en charge.)
Si vous activez ce paramètre de stratégie et choisissez « Station de travail uniquement » dans le menu déroulant, le moniteur d’événements de mise hors tension s’affiche lorsque vous arrêtez un ordinateur qui exécute une version du client de Windows. (Voir « Pris en charge sur » pour connaître les versions prises en charge.)
Si vous désactivez ce paramètre de stratégie, le moniteur d’événements de mise hors tension ne s’affiche pas lorsque vous arrêtez l’ordinateur.
Si vous ne configurez pas ce paramètre de stratégie, le comportement par défaut du moniteur d’événements de mise hors tension s’applique.
Remarque : par défaut, le moniteur d’événements de mise hors tension ne s’affiche que sur les ordinateurs qui exécutent Windows Server.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Reliability- Value name
ShutdownReasonOn
| 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.
Enable
# Enable: Reliability/ShutdownReason
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Reliability'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ShutdownReasonOn' -Value 1 -Type DWord
# Shutdown Event Tracker should be displayed
# Possible options:
# Always = 1
# Workstation Only = 2
# Server Only = 3
Set-ItemProperty -Path $k -Name 'ShutdownReasonUI' -Value 1 -Type DWordDisable
# Disable: Reliability/ShutdownReason
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Reliability'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ShutdownReasonOn' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": Reliability/ShutdownReason
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Reliability'
Remove-ItemProperty -Path $k -Name 'ShutdownReasonOn' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'ShutdownReasonUI' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Shutdown Event Tracker should be displayed:Le moniteur d’événements de mise hors tension devrait être affiché :ShutdownReason_Box | Drop-down listenum | ShutdownReasonUI | REG_DWORD | Required · Default choice (UI): #0
|