en-US windows computer user

Set maximum duration for storing snapshots used by Recall

Verified with Windows 11 25H2 — updated on July 30, 2026

Windows 11 25H2

Supported on: At least Windows 11 Pro, Enterprise, or Education with Windows Sandbox

Path in the GPO console

Computer Configuration\Administrative Templates\Windows Components\Windows AI

Description

This policy setting allows you to control the maximum amount of time (in days) that Windows saves snapshots for Recall. When the policy is enabled, you can configure the maximum storage duration to be 30, 60, 90, or 180 days. When this policy is not configured, the maximum storage duration is 90 days unless the current user specifies a different value. If both maximum storage duration and maximum storage space are set for Recall, then snapshots are deleted when the first maximum is reached. Important: This setting applies to Enterprise and Education client SKUs only.

Registry

HKLM SOFTWARE\Policies\Microsoft\Windows\WindowsAI
HKCU SOFTWARE\Policies\Microsoft\Windows\WindowsAI

Value name: SetMaximumStorageDurationForRecallSnapshots

More options available

Options

Select maximum storage duration:
SetMaximumStorageDurationForRecallSnapshots enum
  • Let the OS define the maximum amount of time the snapshots will be saved -> 0 (default)
  • 30 days -> 30
  • 60 days -> 60
  • 90 days -> 90
  • 180 days -> 180

MDM / Intune (CSP)

Device ./Device/Vendor/MSFT/Policy/Config/WindowsAI/SetMaximumStorageDurationForRecallSnapshots
User ./User/Vendor/MSFT/Policy/Config/WindowsAI/SetMaximumStorageDurationForRecallSnapshots
DeviceUser Since Windows 11, version 24H2 with KB5055627 [10.0.26100.3915] and later Official mapping (Microsoft Learn)

Microsoft Learn documentation Mapping data: Microsoft Learn (CC BY 4.0)

CSP values
  • 0 - Let the OS define the maximum amount of time the snapshots will be saved.
  • 30 - 30 days.
  • 60 - 60 days.
  • 90 (Default) - 90 days.
  • 180 - 180 days.

Export Builder

BETA

Configure the state, scope and options, then generate .reg, PowerShell, Intune and SCCM outputs — or add the setting to a multi-setting collection.

These exports write the registry — this is not a managed GPO.

Scope

.reg file

Windows Registry Editor Version 5.00

; Exported from gporais.com
; Policy: Set maximum duration for storing snapshots used by Recall
; State: Enabled
; Scope: Computer (HKLM)
; Supported on: At least Windows 11 Pro, Enterprise, or Education with Windows Sandbox

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsAI]
"SetMaximumStorageDurationForRecallSnapshots"=dword:00000001
"SetMaximumStorageDurationForRecallSnapshots"=dword:00000000
More formats (PowerShell, Intune, SCCM)

PowerShell

# Exported from gporais.com
# Policy: Set maximum duration for storing snapshots used by Recall
# State: Enabled
# Scope: Computer (HKLM)
# Supported on: At least Windows 11 Pro, Enterprise, or Education with Windows Sandbox

$path = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'SetMaximumStorageDurationForRecallSnapshots' -Value 1 -Type DWord
Set-ItemProperty -Path $path -Name 'SetMaximumStorageDurationForRecallSnapshots' -Value 0 -Type DWord

Building a multi-setting collection? Add this setting and generate combined .reg / PowerShell / GPO scripts.

Open the Builder

Embed this policy on your site

What to embed
Theme

Adds one script line: the theme follows your site’s appearance and the height fits the content. If your site blocks scripts, the embed follows the visitor’s system theme.

Preview