Office 365 将自动归档的里的文件移动到收件箱

本文教程告诉你如果将已经自动归档了的文件夹移动到收件箱,需要使用powershell命令。这对于那些已经开通了自动归档,但是做再迁移回到收件箱的有帮助。

1. 下载Microsoft Exchange Web Services Managed API 2.0并安装: https://www.microsoft.com/en-us/download/confirmation.aspx?id=35371

下载脚本 .ps1 file: https://gallery.technet.microsoft.com/exchange/Merge-mailbox-folders-cf1e9576#content

2. 打开Powershell并运行以下命令:

Set-ExecutionPolicy RemoteSigned
(if cx not able to run .ps1 file in step 6, try to change “Remotesigned” to “Bypass”)

$LiveCred = Get-Credential

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection

Import-PSSession $Session

3. 输入以下命令:

New-ManagementRoleAssignment –name:impersonationAssignmentName –Role:ApplicationImpersonation –User:"the e-mail address of admin account"

4. 输入以下命令

$merge=@{“inbox”=”inbox”;}
(前边的inbox是目标文件夹,也就是你自己的收件箱,后边的inbox是自动归档里的文件 夹)

5. 最后执行ps脚本开始移动:

.\Merge-MailboxFolder.ps1 –SourceMailbox User6@steven4869.publicvm.com -Sourcearchive -EWSurl https://outlook.office365.com/EWS/Exchange.asmx -MergeFolderList $merge –Impersonate -username "admin account username" -password "admin account password" -domain "admin account domain"

Latest posts by Exchange中文站 (see all)
发布于: 浏览:6936 次

还没有评论

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据