Limits the number of user data snapshots retained for use in case of emergency rollback: registry value UserDataSnapshotRetentionLimitUserHKCU\Software\Policies\Microsoft\Edge

Policy ID
UserDataSnapshotRetentionLimit
Scope
Computer Configuration, User Configuration
Supported on
Microsoft Edge version 86, Windows 7 or later
Source
Microsoft Edge Policy Templates (version 155.0.4283.45)
Category
Microsoft Edge

Registry

UserDataSnapshotRetentionLimit

REG_DWORDUserComputer
Enabled value
Depends on the option value
Element
Limits the number of user data snapshots retained for use in case of emergency rollback:
Value type
REG_DWORD
Maximum value
5
Minimum value
0
Apply with .reg · CMD · PowerShell
UserPer-account setting
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Edge]

; Value names and types follow the ADMX. Replace <enter value> below with your own data
"UserDataSnapshotRetentionLimit"=dword:<enter value>
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data

reg add "HKCU\Software\Policies\Microsoft\Edge" /v "UserDataSnapshotRetentionLimit" /t REG_DWORD /d "<enter value>" /f
PowerShell
# Value names and types follow the ADMX. Replace <enter value> below with your own data

New-Item -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Force | Out-Null
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Edge' -Name 'UserDataSnapshotRetentionLimit' -PropertyType DWord -Value '<enter value>' -Force | Out-Null
ComputerMachine-wide setting
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Edge]

; Value names and types follow the ADMX. Replace <enter value> below with your own data
"UserDataSnapshotRetentionLimit"=dword:<enter value>
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data

reg add "HKLM\Software\Policies\Microsoft\Edge" /v "UserDataSnapshotRetentionLimit" /t REG_DWORD /d "<enter value>" /f
PowerShell
# Value names and types follow the ADMX. Replace <enter value> below with your own data

New-Item -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Edge' -Name 'UserDataSnapshotRetentionLimit' -PropertyType DWord -Value '<enter value>' -Force | Out-Null