en-US office user

AutoArchive Settings

Verified with Microsoft 365/Office 5568.1000 — updated on September 4, 2026 Supported on: At least Windows Server 2008 R2 or Windows 7

Microsoft 365/Office 5568.1000

Path in the GPO console

User Configuration\Administrative Templates\Microsoft Outlook 2016\Outlook Options\Other\AutoArchive

Registry

HKCU software\policies\microsoft\office\16.0\outlook\preferences

Options

Turn on AutoArchive
doaging boolean
Run AutoArchive every <x> days
everydays decimal range 1-60 default: 14
Prompt before AutoArchive runs
promptforaging boolean
Delete expired items (e-mail folders only)
deleteexpired boolean
Archive or delete old items
archiveold boolean
Show archive folder in folder list
archivemount boolean
Clean out items older than
archiveperiod decimal range 1-60 default: 6
archivegranularity enum
  • 0 Months default
  • 1 Weeks
  • 2 Days
Permanently delete old items
archivedelete boolean

Description

If you enable this policy setting, the options specified in the AutoArchive dialog box are disabled.

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. ⓘ

.reg file

Windows Registry Editor Version 5.00

; Exported from gporais.com
; Policy: AutoArchive Settings
; State: Enabled
; Supported on: At least Windows Server 2008 R2 or Windows 7

[HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\outlook\preferences]
"doaging"=dword:00000000
"everydays"=dword:0000000e
"promptforaging"=dword:00000000
"deleteexpired"=dword:00000000
"archiveold"=dword:00000000
"archivemount"=dword:00000000
"archiveperiod"=dword:00000006
"archivegranularity"=dword:00000000
"archivedelete"=dword:00000000
More formats (PowerShell, Intune, SCCM)

PowerShell

# Exported from gporais.com
# Policy: AutoArchive Settings
# State: Enabled
# Supported on: At least Windows Server 2008 R2 or Windows 7
# Warning: In SYSTEM context (the Intune default), HKCU targets the SYSTEM profile. Run this script using the logged-on credentials.

$path = 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'doaging' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'everydays' -Value 14 -Type DWord
Set-ItemProperty -Path $path -Name 'promptforaging' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'deleteexpired' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'archiveold' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'archivemount' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'archiveperiod' -Value 6 -Type DWord
Set-ItemProperty -Path $path -Name 'archivegranularity' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'archivedelete' -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