Synchronizing data in shared folders
Explanation
This setting controls the number of days that elapses without a user accessing an Outlook folder before Outlook stops synchronizing the folder with Exchange. For example, say this option is set to 45. User A opens User B's calendar in Outlook, and then does not click on it again for 45 days. Outlook stops synchronizing the data with Exchange and the calendar is no longer up-to-date. The local copy of the data is removed from the OST file. If User A then clicks on the User B calendar 90 days later, Outlook synchronizes the calendar data and starts the clock again for 45 days.
Registry
HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\outlook\cached mode- 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_Synchronizingdatainsharedfolders
$k = 'HKCU:\software\policies\microsoft\office\16.0\outlook\cached mode'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Number of days
Set-ItemProperty -Path $k -Name 'sharedfolderageoutdays' -Value 45 -Type DWord # minimum 0Disable
# Disable: outlk16/L_Synchronizingdatainsharedfolders
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": outlk16/L_Synchronizingdatainsharedfolders
$k = 'HKCU:\software\policies\microsoft\office\16.0\outlook\cached mode'
Remove-ItemProperty -Path $k -Name 'sharedfolderageoutdays' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Number of daysL_NumberOfDays | Numeric boxdecimal | sharedfolderageoutdays | REG_DWORD | Min: 0 · Default (UI): 45 |
Application
Microsoft 365 Apps / Office (Microsoft) — November 2026 templates
Official templates downloaded on November 12, 2026.