exchange 主信箱的信件自動搬移到歸檔信箱設定方式
以系統管理員啟動 powershell 後依序執行下面指令 Install-Module ExchangeOnlineManagement Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted Set-ExecutionPolicy RemoteSigned -Scope CurrentUser Import-Module ExchangeOnlineManagement Connect-ExchangeOnline 建立保存標籤,指定動作為移動到歸檔信箱,條件為信件超過三年 New-RetentionPolicyTag "三年後自動歸檔" ` -Type All ` -RetentionAction MoveToArchive ` -AgeLimitForRetention 1095 建立保存原則連結到該標籤 New-RetentionPolicy "三年後自動歸檔" ` -RetentionPolicyTagLinks "三年後自動歸檔" 設定套用保存原則的信箱 Set-Mailbox -Identity username@company.com ` -RetentionPolicy "三年後自動歸檔" 立即啟動原則 (一般是每天排程執行) Start-ManagedFolderAssistant -Identity username@company.com 進入 OWA 會觀察到主信箱同一層會多出一個歸檔信箱 In-Place Archive -xxx 裡面的資料夾結構會跟主信箱一樣 PS. outlook 不會立即看到歸檔信箱,需要等待同步