AutoArchive Settings
Explanation
If you enable this policy setting, the options specified in the AutoArchive dialog box are disabled.
Registry
HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\outlook\preferences- 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_AutoArchiveSettings
$k = 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Turn on AutoArchive
# unchecked: 0
Set-ItemProperty -Path $k -Name 'doaging' -Value 1 -Type DWord
# Run AutoArchive every <x> days
Set-ItemProperty -Path $k -Name 'everydays' -Value 14 -Type DWord # between 1 and 60
# Prompt before AutoArchive runs
# unchecked: 0
Set-ItemProperty -Path $k -Name 'promptforaging' -Value 1 -Type DWord
# Delete expired items (e-mail folders only)
# unchecked: 0
Set-ItemProperty -Path $k -Name 'deleteexpired' -Value 1 -Type DWord
# Archive or delete old items
# unchecked: 0
Set-ItemProperty -Path $k -Name 'archiveold' -Value 1 -Type DWord
# Show archive folder in folder list
# unchecked: 0
Set-ItemProperty -Path $k -Name 'archivemount' -Value 1 -Type DWord
# Clean out items older than
Set-ItemProperty -Path $k -Name 'archiveperiod' -Value 6 -Type DWord # between 1 and 60
#
# Possible options:
# Months = 0
# Weeks = 1
# Days = 2
Set-ItemProperty -Path $k -Name 'archivegranularity' -Value 0 -Type DWord
# Permanently delete old items
# unchecked: 0
Set-ItemProperty -Path $k -Name 'archivedelete' -Value 1 -Type DWordDisable
# Disable: outlk16/L_AutoArchiveSettings
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": outlk16/L_AutoArchiveSettings
$k = 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences'
Remove-ItemProperty -Path $k -Name 'doaging' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'everydays' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'promptforaging' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'deleteexpired' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'archiveold' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'archivemount' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'archiveperiod' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'archivegranularity' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'archivedelete' -ErrorAction SilentlyContinueOptions (9)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Turn on AutoArchiveL_TurnonAutoArchive | Check boxboolean | doaging | REG_DWORD | Checked: REG_DWORD = 1Unchecked: REG_DWORD = 0 | ||||||||
| Run AutoArchive every <x> daysL_RunAutoArchiveeveryxdays | Numeric boxdecimal | everydays | REG_DWORD | Min: 1 · Max: 60 · Default (UI): 14 | ||||||||
| Prompt before AutoArchive runsL_PromptbeforeAutoArchiveruns | Check boxboolean | promptforaging | REG_DWORD | Checked: REG_DWORD = 1Unchecked: REG_DWORD = 0 | ||||||||
| Delete expired items (e-mail folders only)L_Deleteexpireditemsemailfoldersonly | Check boxboolean | deleteexpired | REG_DWORD | Checked: REG_DWORD = 1Unchecked: REG_DWORD = 0 | ||||||||
| Archive or delete old itemsL_Archiveordeleteolditems | Check boxboolean | archiveold | REG_DWORD | Checked: REG_DWORD = 1Unchecked: REG_DWORD = 0 | ||||||||
| Show archive folder in folder listL_Showarchivefolderinfolderlist | Check boxboolean | archivemount | REG_DWORD | Checked: REG_DWORD = 1Unchecked: REG_DWORD = 0 | ||||||||
| Clean out items older thanL_Cleanoutitemsolderthan | Numeric boxdecimal | archiveperiod | REG_DWORD | Min: 1 · Max: 60 · Default (UI): 6 | ||||||||
| L_empty19 | Drop-down listenum | archivegranularity | REG_DWORD | Default choice (UI): #0
| ||||||||
| Permanently delete old itemsL_Permanentlydeleteolditems | Check boxboolean | archivedelete | REG_DWORD | Checked: REG_DWORD = 1Unchecked: REG_DWORD = 0 |
Application
Microsoft 365 Apps / Office (Microsoft) — November 2026 templates
Official templates downloaded on November 12, 2026.