Open in the explorer

Keep Search Folders offline

Type
User
GPO path
User Configuration › Policies › Administrative Templates › Microsoft Outlook 2016 › Search Folders
Supported on
At least Windows Server 2008 R2 or Windows 7
ADMX file
outlk16.admx
Internal name
outlk16/L_Keepsearchfoldersoffline

Explanation

This policy setting allows you to specify the number of days to keep a Search Folder active when running in offline or cached mode. After a Search Folder has not been accessed for the specified number of days, it becomes dormant and no longer remains up-to-date with current contents of folders (viewing the Search Folder makes it active again and restarts the timer).

If you enable this policy setting, you may specify the number of days to keep a Search Folder active when running in offline mode.

If you disable or do not configure this policy setting, then Search Folders always remain dormant.

Registry

HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\outlook\options\general
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Enable

# Enable: outlk16/L_Keepsearchfoldersoffline
$k = 'HKCU:\software\policies\microsoft\office\16.0\outlook\options\general'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Specify days to keep folders alive in offline or cached mode
Set-ItemProperty -Path $k -Name 'searchofflinekeepalivedays' -Value 60 -Type DWord  # between 0 and 999

Disable

# Disable: outlk16/L_Keepsearchfoldersoffline
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": outlk16/L_Keepsearchfoldersoffline
$k = 'HKCU:\software\policies\microsoft\office\16.0\outlook\options\general'
Remove-ItemProperty -Path $k -Name 'searchofflinekeepalivedays' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Specify days to keep folders alive in offline or cached mode:L_SpecifydaystokeepfoldersaliveinofflineorcachedmodeNumeric boxdecimalsearchofflinekeepalivedaysREG_DWORD
Min: 0 · Max: 999 · Default (UI): 60

Application

Microsoft 365 Apps / Office (Microsoft) — November 2026 templates

Official templates downloaded on November 12, 2026.