自動封存設定 的登錄值 doaging 等 8 個使用者HKCU\software\policies\microsoft\office\16.0\outlook\preferences
- 原則 ID
- L_AutoArchiveSettings
- 適用範圍
- 使用者設定
- 支援的作業系統
- 至少需要 Windows Server 2008 R2 或 Windows 7
- 來源
- Microsoft 365 Apps / Office Administrative Templates (版本 5568.1000)
- 類別
- Microsoft Outlook 2016 › Outlook 選項 › 其他 › 自動封存
登錄
doaging
REG_DWORD使用者- 已核取
- 1
- 未核取
- 0
- 元素
- 開啟自動封存
- 值類型
- REG_DWORD
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\outlook\preferences] ; 選項 (只使用其中一個) ; 已核取 "doaging"=dword:00000001 ; 未核取 "doaging"=dword:00000000
CMD
:: 選項 (只使用其中一個) :: 已核取 reg add "HKCU\software\policies\microsoft\office\16.0\outlook\preferences" /v "doaging" /t REG_DWORD /d 1 /f :: 未核取 reg add "HKCU\software\policies\microsoft\office\16.0\outlook\preferences" /v "doaging" /t REG_DWORD /d 0 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Force | Out-Null # 選項 (只使用其中一個) # 已核取 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Name 'doaging' -PropertyType DWord -Value 1 -Force | Out-Null # 未核取 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Name 'doaging' -PropertyType DWord -Value 0 -Force | Out-Null
everydays
REG_DWORD使用者- 啟用時的值
- 取決於選項值
- 元素
- 每 <x> 天執行自動封存
- 值類型
- REG_DWORD
- 最小值
- 1
- 最大值
- 60
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\outlook\preferences] ; 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值> "everydays"=dword:<輸入值>
CMD
:: 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值> reg add "HKCU\software\policies\microsoft\office\16.0\outlook\preferences" /v "everydays" /t REG_DWORD /d "<輸入值>" /f
PowerShell
# 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值> New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Force | Out-Null New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Name 'everydays' -PropertyType DWord -Value '<輸入值>' -Force | Out-Null
promptforaging
REG_DWORD使用者- 已核取
- 1
- 未核取
- 0
- 元素
- 自動封存執行前提示
- 值類型
- REG_DWORD
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\outlook\preferences] ; 選項 (只使用其中一個) ; 已核取 "promptforaging"=dword:00000001 ; 未核取 "promptforaging"=dword:00000000
CMD
:: 選項 (只使用其中一個) :: 已核取 reg add "HKCU\software\policies\microsoft\office\16.0\outlook\preferences" /v "promptforaging" /t REG_DWORD /d 1 /f :: 未核取 reg add "HKCU\software\policies\microsoft\office\16.0\outlook\preferences" /v "promptforaging" /t REG_DWORD /d 0 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Force | Out-Null # 選項 (只使用其中一個) # 已核取 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Name 'promptforaging' -PropertyType DWord -Value 1 -Force | Out-Null # 未核取 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Name 'promptforaging' -PropertyType DWord -Value 0 -Force | Out-Null
deleteexpired
REG_DWORD使用者- 已核取
- 1
- 未核取
- 0
- 元素
- 刪除過期的項目 (僅用於電子郵件資料夾)
- 值類型
- REG_DWORD
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\outlook\preferences] ; 選項 (只使用其中一個) ; 已核取 "deleteexpired"=dword:00000001 ; 未核取 "deleteexpired"=dword:00000000
CMD
:: 選項 (只使用其中一個) :: 已核取 reg add "HKCU\software\policies\microsoft\office\16.0\outlook\preferences" /v "deleteexpired" /t REG_DWORD /d 1 /f :: 未核取 reg add "HKCU\software\policies\microsoft\office\16.0\outlook\preferences" /v "deleteexpired" /t REG_DWORD /d 0 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Force | Out-Null # 選項 (只使用其中一個) # 已核取 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Name 'deleteexpired' -PropertyType DWord -Value 1 -Force | Out-Null # 未核取 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Name 'deleteexpired' -PropertyType DWord -Value 0 -Force | Out-Null
archiveold
REG_DWORD使用者- 已核取
- 1
- 未核取
- 0
- 元素
- 封存或刪除舊項目
- 值類型
- REG_DWORD
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\outlook\preferences] ; 選項 (只使用其中一個) ; 已核取 "archiveold"=dword:00000001 ; 未核取 "archiveold"=dword:00000000
CMD
:: 選項 (只使用其中一個) :: 已核取 reg add "HKCU\software\policies\microsoft\office\16.0\outlook\preferences" /v "archiveold" /t REG_DWORD /d 1 /f :: 未核取 reg add "HKCU\software\policies\microsoft\office\16.0\outlook\preferences" /v "archiveold" /t REG_DWORD /d 0 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Force | Out-Null # 選項 (只使用其中一個) # 已核取 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Name 'archiveold' -PropertyType DWord -Value 1 -Force | Out-Null # 未核取 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Name 'archiveold' -PropertyType DWord -Value 0 -Force | Out-Null
archivemount
REG_DWORD使用者- 已核取
- 1
- 未核取
- 0
- 元素
- 在資料夾清單中顯示封存資料夾
- 值類型
- REG_DWORD
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\outlook\preferences] ; 選項 (只使用其中一個) ; 已核取 "archivemount"=dword:00000001 ; 未核取 "archivemount"=dword:00000000
CMD
:: 選項 (只使用其中一個) :: 已核取 reg add "HKCU\software\policies\microsoft\office\16.0\outlook\preferences" /v "archivemount" /t REG_DWORD /d 1 /f :: 未核取 reg add "HKCU\software\policies\microsoft\office\16.0\outlook\preferences" /v "archivemount" /t REG_DWORD /d 0 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Force | Out-Null # 選項 (只使用其中一個) # 已核取 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Name 'archivemount' -PropertyType DWord -Value 1 -Force | Out-Null # 未核取 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Name 'archivemount' -PropertyType DWord -Value 0 -Force | Out-Null
archiveperiod
REG_DWORD使用者- 啟用時的值
- 取決於選項值
- 元素
- 清除項目 - 早於
- 值類型
- REG_DWORD
- 最小值
- 1
- 最大值
- 60
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\outlook\preferences] ; 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值> "archiveperiod"=dword:<輸入值>
CMD
:: 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值> reg add "HKCU\software\policies\microsoft\office\16.0\outlook\preferences" /v "archiveperiod" /t REG_DWORD /d "<輸入值>" /f
PowerShell
# 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值> New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Force | Out-Null New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Name 'archiveperiod' -PropertyType DWord -Value '<輸入值>' -Force | Out-Null
archivegranularity
REG_DWORD使用者- 啟用時的值
- 取決於選項值
- 元素
- -
| 項目 | 儲存的值 |
|---|---|
| 月數 | 0 |
| 週 | 1 |
| 天 | 2 |
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\outlook\preferences] ; 選項 (只使用其中一個) ; 月數 "archivegranularity"=dword:00000000 ; 週 "archivegranularity"=dword:00000001 ; 天 "archivegranularity"=dword:00000002
CMD
:: 選項 (只使用其中一個) :: 月數 reg add "HKCU\software\policies\microsoft\office\16.0\outlook\preferences" /v "archivegranularity" /t REG_DWORD /d 0 /f :: 週 reg add "HKCU\software\policies\microsoft\office\16.0\outlook\preferences" /v "archivegranularity" /t REG_DWORD /d 1 /f :: 天 reg add "HKCU\software\policies\microsoft\office\16.0\outlook\preferences" /v "archivegranularity" /t REG_DWORD /d 2 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Force | Out-Null # 選項 (只使用其中一個) # 月數 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Name 'archivegranularity' -PropertyType DWord -Value 0 -Force | Out-Null # 週 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Name 'archivegranularity' -PropertyType DWord -Value 1 -Force | Out-Null # 天 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Name 'archivegranularity' -PropertyType DWord -Value 2 -Force | Out-Null
archivedelete
REG_DWORD使用者- 已核取
- 1
- 未核取
- 0
- 元素
- 永久刪除舊項目
- 值類型
- REG_DWORD
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\outlook\preferences] ; 選項 (只使用其中一個) ; 已核取 "archivedelete"=dword:00000001 ; 未核取 "archivedelete"=dword:00000000
CMD
:: 選項 (只使用其中一個) :: 已核取 reg add "HKCU\software\policies\microsoft\office\16.0\outlook\preferences" /v "archivedelete" /t REG_DWORD /d 1 /f :: 未核取 reg add "HKCU\software\policies\microsoft\office\16.0\outlook\preferences" /v "archivedelete" /t REG_DWORD /d 0 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Force | Out-Null # 選項 (只使用其中一個) # 已核取 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Name 'archivedelete' -PropertyType DWord -Value 1 -Force | Out-Null # 未核取 New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\outlook\preferences' -Name 'archivedelete' -PropertyType DWord -Value 0 -Force | Out-Null