Open in the explorer

Disk Diagnostic: Configure execution level

Diagnostics des disques : configurer le niveau d’exécution

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › Troubleshooting and Diagnostics › Disk Diagnostic FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › Dépannage et diagnostics › Diagnostics des disques
Supported on
Windows Server 2008 with Desktop Experience installed or Windows Vista FR: Windows Server 2008 avec Expérience utilisateur installé ou Windows Vista
ADMX file
DiskDiagnostic.admx
Internal name
DiskDiagnostic/WdiScenarioExecutionPolicy

Explanation

This policy setting determines the execution level for S.M.A.R.T.-based disk diagnostics.

Self-Monitoring And Reporting Technology (S.M.A.R.T.) is a standard mechanism for storage devices to report faults to Windows. A disk that reports a S.M.A.R.T. fault may need to be repaired or replaced. The Diagnostic Policy Service (DPS) detects and logs S.M.A.R.T. faults to the event log when they occur.

If you enable this policy setting, the DPS also warns users of S.M.A.R.T. faults and guides them through backup and recovery to minimize potential data loss.

If you disable this policy, S.M.A.R.T. faults are still detected and logged, but no corrective action is taken.

If you do not configure this policy setting, the DPS enables S.M.A.R.T. fault resolution by default.

This policy setting takes effect only if the diagnostics-wide scenario execution policy is not configured.

No reboots or service restarts are required for this policy setting to take effect: changes take effect immediately.

This policy setting takes effect only when the DPS is in the running state. When the service is stopped or disabled, diagnostic scenarios are not executed. The DPS can be configured with the Services snap-in to the Microsoft Management Console.

Note: For Windows Server systems, this policy setting applies only if the Desktop Experience optional component is installed and the Remote Desktop Services role is not installed.

French text from Windows 11 26H2

Ce paramètre de stratégie détermine le niveau d’exécution des diagnostics des disques S.M.A.R.T. (Self-Monitoring And Reporting Technology).

S.M.A.R.T. est un mécanisme standard permettant aux périphériques de stockage de signaler des défauts à Windows. Un disque qui signale un défaut S.M.A.R.T. doit éventuellement être réparé ou remplacé. Le service de stratégie de diagnostic détecte et enregistre les défauts S.M.A.R.T. dans le journal des événements lorsqu’ils se produisent.

Si vous activez ce paramètre de stratégie, le service de stratégie de diagnostic signale également aux utilisateurs les défauts S.M.A.R.T. et les guide dans les procédures de sauvegarde et de récupération afin de minimiser les pertes de données potentielles.

Si vous désactivez ce paramètre de stratégie, les défauts S.M.A.R.T. sont détectés et consignés, mais aucune mesure corrective n’est prise.

Si vous ne configurez pas ce paramètre de stratégie, le service de stratégie de diagnostic active par défaut la résolution des défauts S.M.A.R.T.

Ce paramètre de stratégie est appliqué uniquement si la stratégie d’exécution des scénario de diagnostics n’est pas configurée.

Aucun redémarrage du système ou du service n’est requis pour que cette stratégie prenne effet : les modifications prennent effet immédiatement.

Ce paramètre de stratégie ne s’applique que si le service de stratégie de diagnostic est en cours d’exécution. Lorsque le service est arrêté ou désactivé, les scénarios de diagnostic ne sont pas exécutés. Le service de stratégie de diagnostic peut être configuré avec le composant logiciel enfichable Services de Microsoft Management Console.

Remarque : pour les systèmes Windows Server, ce paramètre de stratégie s’applique uniquement si le composant facultatif Expérience utilisateur est installé et si le rôle Services Bureau à distance n’est pas installé.

Registry

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WDI\{29689E29-2CE9-4751-B4FC-8EFF5066E3FD}
Value name
not defined in the ADMX
StateValue written
Enabled
KeyValueData
SOFTWARE\Policies\Microsoft\Windows\WDI\{29689E29-2CE9-4751-B4FC-8EFF5066E3FD}ScenarioExecutionEnabledREG_DWORD = 1
SOFTWARE\Policies\Microsoft\Windows\WDI\{29689E29-2CE9-4751-B4FC-8EFF5066E3FD}EnabledScenarioExecutionLevelREG_DWORD = 2
Disabled
KeyValueData
SOFTWARE\Policies\Microsoft\Windows\WDI\{29689E29-2CE9-4751-B4FC-8EFF5066E3FD}ScenarioExecutionEnabledREG_DWORD = 1
SOFTWARE\Policies\Microsoft\Windows\WDI\{29689E29-2CE9-4751-B4FC-8EFF5066E3FD}EnabledScenarioExecutionLevelREG_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.

Enable

# Enable: DiskDiagnostic/WdiScenarioExecutionPolicy
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WDI\{29689E29-2CE9-4751-B4FC-8EFF5066E3FD}'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ScenarioExecutionEnabled' -Value 1 -Type DWord
Set-ItemProperty -Path $k -Name 'EnabledScenarioExecutionLevel' -Value 2 -Type DWord

Disable

# Disable: DiskDiagnostic/WdiScenarioExecutionPolicy
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WDI\{29689E29-2CE9-4751-B4FC-8EFF5066E3FD}'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ScenarioExecutionEnabled' -Value 1 -Type DWord
Set-ItemProperty -Path $k -Name 'EnabledScenarioExecutionLevel' -Value 1 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": DiskDiagnostic/WdiScenarioExecutionPolicy
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WDI\{29689E29-2CE9-4751-B4FC-8EFF5066E3FD}'
Remove-ItemProperty -Path $k -Name 'ScenarioExecutionEnabled' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'EnabledScenarioExecutionLevel' -ErrorAction SilentlyContinue

Availability