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\{eb73b633-3f4e-4ba0-8f60-8f3c6f53168f} |
|---|---|
| Enabled also writes | SOFTWARE\Policies\Microsoft\Windows\WDI\{eb73b633-3f4e-4ba0-8f60-8f3c6f53168f} ScenarioExecutionEnabled = 1 (REG_DWORD) |
| Enabled also writes | SOFTWARE\Policies\Microsoft\Windows\WDI\{eb73b633-3f4e-4ba0-8f60-8f3c6f53168f} EnabledScenarioExecutionLevel = 2 (REG_DWORD) |
| Disabled also writes | SOFTWARE\Policies\Microsoft\Windows\WDI\{eb73b633-3f4e-4ba0-8f60-8f3c6f53168f} ScenarioExecutionEnabled = 0 (REG_DWORD) |
| Disabled also writes | SOFTWARE\Policies\Microsoft\Windows\WDI\{eb73b633-3f4e-4ba0-8f60-8f3c6f53168f} EnabledScenarioExecutionLevel = 1 (REG_DWORD) |
What it does (vendor explanation)
This policy setting determines whether Diagnostic Policy Service (DPS) diagnoses memory leak problems.
If you enable or do not configure this policy setting, the DPS enables Windows Memory Leak Diagnosis by default.
If you disable this policy setting, the DPS is not able to diagnose memory leak problems.
This policy setting takes effect only under the following conditions: -- If the diagnostics-wide scenario execution policy is not configured. -- When the Diagnostic Policy Service is in the running state. When the service is stopped or disabled, diagnostic scenarios are not executed.
Note: The DPS can be configured with the Services snap-in to the Microsoft Management Console.
No operating system restart or service restart is required for this policy to take effect. Changes take effect immediately.
Group Policy path: Computer Configuration > Administrative Templates > System > Troubleshooting and Diagnostics > Windows Memory Leak Diagnosis > Configure Scenario Execution Level
PowerShell equivalent (generated from the template)
New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WDI\{eb73b633-3f4e-4ba0-8f60-8f3c6f53168f}' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WDI\{eb73b633-3f4e-4ba0-8f60-8f3c6f53168f}' -Name 'ScenarioExecutionEnabled' -Value 1 -PropertyType DWord -Force
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WDI\{eb73b633-3f4e-4ba0-8f60-8f3c6f53168f}' -Name 'EnabledScenarioExecutionLevel' -Value 2 -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".