Set maximum duration for storing snapshots used by Recall: registry value SetMaximumStorageDurationForRecallSnapshotsComputerHKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsAI
- Policy ID
- SetMaximumStorageDurationForRecallSnapshots
- Scope
- Computer Configuration, User Configuration
- Supported on
- At least Windows 11 Pro, Enterprise, or Education with Windows Sandbox
- Source
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
- Category
- Windows Components › Windows AI
Registry
SetMaximumStorageDurationForRecallSnapshots
-ComputerUser…\SOFTWARE\Policies\Microsoft\Windows\WindowsAIHKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsAI Current key
HKCU\SOFTWARE\Policies\Microsoft\Windows\WindowsAI
HKCU\SOFTWARE\Policies\Microsoft\Windows\WindowsAI
SetMaximumStorageDurationForRecallSnapshots
REG_DWORDComputerUser…\SOFTWARE\Policies\Microsoft\Windows\WindowsAIHKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsAI Current key
HKCU\SOFTWARE\Policies\Microsoft\Windows\WindowsAI
HKCU\SOFTWARE\Policies\Microsoft\Windows\WindowsAI
- Enabled value
- Depends on the option value
- Element
- Select maximum storage duration:
| Item | Stored value |
|---|---|
| Let the OS define the maximum amount of time the snapshots will be saved | 0 |
| 30 days | 30 |
| 60 days | 60 |
| 90 days | 90 |
| 180 days | 180 |
Apply with .reg · CMD · PowerShell
ComputerMachine-wide setting
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsAI] ; Options (use only one) ; Let the OS define the maximum amount of time the snapshots will be saved "SetMaximumStorageDurationForRecallSnapshots"=dword:00000000 ; 30 days "SetMaximumStorageDurationForRecallSnapshots"=dword:0000001e ; 60 days "SetMaximumStorageDurationForRecallSnapshots"=dword:0000003c ; 90 days "SetMaximumStorageDurationForRecallSnapshots"=dword:0000005a ; 180 days "SetMaximumStorageDurationForRecallSnapshots"=dword:000000b4
CMD
:: Options (use only one) :: Let the OS define the maximum amount of time the snapshots will be saved reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" /v "SetMaximumStorageDurationForRecallSnapshots" /t REG_DWORD /d 0 /f :: 30 days reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" /v "SetMaximumStorageDurationForRecallSnapshots" /t REG_DWORD /d 30 /f :: 60 days reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" /v "SetMaximumStorageDurationForRecallSnapshots" /t REG_DWORD /d 60 /f :: 90 days reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" /v "SetMaximumStorageDurationForRecallSnapshots" /t REG_DWORD /d 90 /f :: 180 days reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" /v "SetMaximumStorageDurationForRecallSnapshots" /t REG_DWORD /d 180 /f
PowerShell
# Common: create the key New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI' -Force | Out-Null # Options (use only one) # Let the OS define the maximum amount of time the snapshots will be saved New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI' -Name 'SetMaximumStorageDurationForRecallSnapshots' -PropertyType DWord -Value 0 -Force | Out-Null # 30 days New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI' -Name 'SetMaximumStorageDurationForRecallSnapshots' -PropertyType DWord -Value 30 -Force | Out-Null # 60 days New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI' -Name 'SetMaximumStorageDurationForRecallSnapshots' -PropertyType DWord -Value 60 -Force | Out-Null # 90 days New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI' -Name 'SetMaximumStorageDurationForRecallSnapshots' -PropertyType DWord -Value 90 -Force | Out-Null # 180 days New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI' -Name 'SetMaximumStorageDurationForRecallSnapshots' -PropertyType DWord -Value 180 -Force | Out-Null
UserPer-account setting
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\WindowsAI] ; Options (use only one) ; Let the OS define the maximum amount of time the snapshots will be saved "SetMaximumStorageDurationForRecallSnapshots"=dword:00000000 ; 30 days "SetMaximumStorageDurationForRecallSnapshots"=dword:0000001e ; 60 days "SetMaximumStorageDurationForRecallSnapshots"=dword:0000003c ; 90 days "SetMaximumStorageDurationForRecallSnapshots"=dword:0000005a ; 180 days "SetMaximumStorageDurationForRecallSnapshots"=dword:000000b4
CMD
:: Options (use only one) :: Let the OS define the maximum amount of time the snapshots will be saved reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" /v "SetMaximumStorageDurationForRecallSnapshots" /t REG_DWORD /d 0 /f :: 30 days reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" /v "SetMaximumStorageDurationForRecallSnapshots" /t REG_DWORD /d 30 /f :: 60 days reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" /v "SetMaximumStorageDurationForRecallSnapshots" /t REG_DWORD /d 60 /f :: 90 days reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" /v "SetMaximumStorageDurationForRecallSnapshots" /t REG_DWORD /d 90 /f :: 180 days reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" /v "SetMaximumStorageDurationForRecallSnapshots" /t REG_DWORD /d 180 /f
PowerShell
# Common: create the key New-Item -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI' -Force | Out-Null # Options (use only one) # Let the OS define the maximum amount of time the snapshots will be saved New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI' -Name 'SetMaximumStorageDurationForRecallSnapshots' -PropertyType DWord -Value 0 -Force | Out-Null # 30 days New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI' -Name 'SetMaximumStorageDurationForRecallSnapshots' -PropertyType DWord -Value 30 -Force | Out-Null # 60 days New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI' -Name 'SetMaximumStorageDurationForRecallSnapshots' -PropertyType DWord -Value 60 -Force | Out-Null # 90 days New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI' -Name 'SetMaximumStorageDurationForRecallSnapshots' -PropertyType DWord -Value 90 -Force | Out-Null # 180 days New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI' -Name 'SetMaximumStorageDurationForRecallSnapshots' -PropertyType DWord -Value 180 -Force | Out-Null