Open in the explorer

Activate Shutdown Event Tracker System State Data feature

Activer la fonctionnalité des données sur l’état du système du moniteur d’événements de mise hors tension

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système
Supported on
Windows Server 2003 only FR: Windows Server 2003 uniquement
ADMX file
Reliability.admx
Internal name
Reliability/ShutdownEventTrackerStateFile

Explanation

This policy setting defines when the Shutdown Event Tracker System State Data feature is activated.

The system state data file contains information about the basic system state as well as the state of all running processes.

If you enable this policy setting, the System State Data feature is activated when the user indicates that the shutdown or restart is unplanned.

If you disable this policy setting, the System State Data feature is never activated.

If you do not configure this policy setting, the default behavior for the System State Data feature occurs.

Note: By default, the System State Data feature is always enabled on Windows Server 2003. See "Supported on" for all supported versions.

French text from Windows 11 26H2

Ce paramètre de stratégie définit quand la fonctionnalité des données sur l’état du système du moniteur d’événements de mise hors tension est activée.

Le fichier des données sur l’état du système contient des informations sur l’état du système de base, ainsi que sur l’état de tous les processus en cours d’exécution.

Si vous activez ce paramètre de stratégie, la fonctionnalité des données sur l’état du système est activée lorsque l’utilisateur indique que l’arrêt ou le redémarrage est imprévu.

Si vous désactivez ce paramètre de stratégie, la fonctionnalité des données sur l’état du système n’est jamais activée.

Si vous ne configurez pas ce paramètre de stratégie, le comportement par défaut de la fonctionnalité des données sur l’état du système s’applique.

Remarque : par défaut, la fonctionnalité des données sur l’état du système est toujours activée dans Windows Server 2003. Voir « Pris en charge sur » pour connaître les versions prises en charge.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Reliability
Value name
SnapShot
StateValue written
EnabledREG_DWORD = 1
DisabledREG_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/ShutdownEventTrackerStateFile
$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 'SnapShot' -Value 1 -Type DWord

Disable

# Disable: Reliability/ShutdownEventTrackerStateFile
$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 'SnapShot' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": Reliability/ShutdownEventTrackerStateFile
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Reliability'
Remove-ItemProperty -Path $k -Name 'SnapShot' -ErrorAction SilentlyContinue

Availability