Diagnostics: Configure scenario retention
Jump to overview

Policy overview

Key metadata and intent for this policy.

Computer
Category
System > Troubleshooting and Diagnostics
Supported on
At least Windows Vista

Supported OS tags: Windows10, Windows10RT, Windows11, Windows7, Windows8, Windows81, WindowsRT, WindowsRT81, WindowsServer2008, WindowsServer2012, WindowsServer2012R2, WindowsServer2016, WindowsVista

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.

Internal name
WdiDpsScenarioDataSizeLimitPolicy
Policy ID
34f4a3da7ffa
Elements
1

Registry values

How enabled and disabled states update the registry.

ScopeRegistry locationTypeEnabled valueDisabled valueCopy
Computer
Path
SOFTWARE\Policies\Microsoft\Windows\WDI
Value name
DataRetentionBySizeEnabled
REG_DWORD
HKLM
1
HKLM
0
Registry location
Type REG_DWORD · Computer
Path
SOFTWARE\Policies\Microsoft\Windows\WDI
Value name
DataRetentionBySizeEnabled
Hive
HKLM
Enabled value
1
Disabled value
0

Policy elements

Inputs and configuration options exposed by this policy.

ScopeElementTypeRegistry mappingConstraints & behaviorCopy
Computer
Scenario data size limit (in MB)
ID WdiDpsScenarioDataSizeLimitPolicyValue
decimal
Path
SOFTWARE\Policies\Microsoft\Windows\WDI
Value name
DirSizeLimit
Type
REG_DWORD
None
Scenario data size limit (in MB)
Computer · Type decimal
Registry mapping
Path
SOFTWARE\Policies\Microsoft\Windows\WDI
Value name
DirSizeLimit
Type
REG_DWORD
DetailsNone