Keep Search Folders in Exchange online
Explanation
This policy setting allows you to specify the number of days to keep a Search Folder active when running in online 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 online 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_KeepsearchfoldersinExchangeonline
$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 Exchange online mode
Set-ItemProperty -Path $k -Name 'searchonlinekeepalivedays' -Value 60 -Type DWord # between 0 and 1000Disable
# Disable: outlk16/L_KeepsearchfoldersinExchangeonline
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": outlk16/L_KeepsearchfoldersinExchangeonline
$k = 'HKCU:\software\policies\microsoft\office\16.0\outlook\options\general'
Remove-ItemProperty -Path $k -Name 'searchonlinekeepalivedays' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Specify days to keep folders alive in Exchange online mode:L_SpecifydaystokeepfoldersaliveinExchangeonlinemode | Numeric boxdecimal | searchonlinekeepalivedays | REG_DWORD | Min: 0 · Max: 1000 · Default (UI): 60 |
Application
Microsoft 365 Apps / Office (Microsoft) — November 2026 templates
Official templates downloaded on November 12, 2026.