Diagnostics: Configure scenario retention
- Policy ID
- WdiDpsScenarioDataSizeLimitPolicy
- Scope
- Computer Configuration
- Supported on
- At least Windows Vista
- Source
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
- Category
- System › Troubleshooting and Diagnostics
Description
This policy setting determines the data retention limit for Diagnostic Policy Service (DPS) scenario data.
If you enable this policy setting, you must enter the maximum size of scenario data that should be retained in megabytes. Detailed troubleshooting data related to scenarios will be retained until this limit is reached.
If you disable or do not configure this policy setting, the DPS deletes scenario data once it exceeds 128 megabytes in size.
No reboots or service restarts are required for this policy setting to take effect: changes take effect immediately.
This policy setting will only take effect when the Diagnostic Policy Service is in the running state. When the service is stopped or disabled, diagnostic scenario data will not be deleted. The DPS can be configured with the Services snap-in to the Microsoft Management Console.
Options
Registry
- DataRetentionBySizeEnabledREG_DWORD
- DirSizeLimitREG_DWORD