Diagnostics: Configure scenario execution level
Supported on: At least Windows Vista
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\SOFTWARE\Policies\Microsoft\Windows\WDI |
|---|---|
| Value name | ScenarioExecutionEnabled |
| Enabled writes | 1 (REG_DWORD) |
| Disabled writes | 0 (REG_DWORD) |
| Option | Value | Type | Allowed values |
|---|---|---|---|
| Scenario Execution Level | EnabledScenarioExecutionLevel | 1 (REG_DWORD) = Detection and Troubleshooting Only 2 (REG_DWORD) = Detection, Troubleshooting and Resolution |
What it does (vendor explanation)
This policy setting determines the execution level for Diagnostic Policy Service (DPS) scenarios.
If you enable this policy setting, you must select an execution level from the drop-down menu. If you select problem detection and troubleshooting only, the DPS will detect problems and attempt to determine their root causes. These root causes will be logged to the event log when detected, but no corrective action will be taken. If you select detection, troubleshooting and resolution, the DPS will attempt to automatically fix problems it detects or indicate to the user that assisted resolution is available.
If you disable this policy setting, Windows cannot detect, troubleshoot, or resolve any problems that are handled by the DPS.
If you do not configure this policy setting, the DPS enables all scenarios for resolution by default, unless you configure separate scenario-specific policy settings.
This policy setting takes precedence over any scenario-specific policy settings when it is enabled or disabled. Scenario-specific policy settings only take effect if this policy setting is not configured.
No reboots or service restarts are required for this policy setting to take effect: changes take effect immediately.
Group Policy path: Computer Configuration > Administrative Templates > System > Troubleshooting and Diagnostics > Diagnostics: Configure scenario execution level
PowerShell equivalent (generated from the template)
New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WDI' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WDI' -Name 'ScenarioExecutionEnabled' -Value 1 -PropertyType DWord -Force
# Scenario Execution Level
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WDI' -Name 'EnabledScenarioExecutionLevel' -Value 1 -PropertyType DWord -ForceGroup Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".