迁移公共文件夹从Exchange 2010到Exchange 2013

Step 1 :下载需要的公共文件夹迁移脚本DownloadingRequired PF migration Scripts

=====

登录Exchange2010�C

Download the PF migration Scripts

 

Step 2: 备份Exchange2010公共文件夹架构

=====

备份PF文件夹, 项和权限架构,对公共文件夹数据库进行完全备份.

备份公共文件夹架构

Get-PublicFolder -Recurse | Export-CliXMLC:\PFMigration\Legacy_PFStructure.xml

备份公共文件夹项架构

Get-PublicFolderStatistics | Export-CliXMLC:\PFMigration\Legacy_PFStatistics.xml

备份公共文件夹权限架构

Get-PublicFolder -Recurse |Get-PublicFolderClientPermission | Select-Object Identity,User -ExpandPropertyAccessRights | Export-CliXML C:\PFMigration\Legacy_PFPerms.xml

 

Step 3: Exchange2010上,去除PF名中的不支持的符号

=====

确保公共文件夹名中不包含反斜线“\”.

Get-PublicFolderStatistics -ResultSize Unlimited| Where {$_.Name -like “*\*”} | Format-List Name, Identity

如果存在,去掉反斜线“\”

:如果公用文件夹的名称包含反斜线\,将在父公用文件夹中创建该公用文件夹。我们建议您查看 .csv 文件并编辑任何包含反斜线的名称。

 

Step 4: Exchange2013中,移除现有的迁移请求和任何公共文件夹

=====

确保没有公共文件夹迁移请求存在

Get-PublicFolderMigrationRequest

如果有,请移除

Get-PublicFolderMigrationRequest |Remove-PublicFolderMigrationRequest -Confirm:$false

确保在Exchange2013上没有公共文件夹邮箱和文件夹

Get-Mailbox �CPublicFolder

Get-PublicFolder

移除Exchange2013上的公共文件夹邮箱和PF文件夹,可以运行一下命令

Get-Mailbox -PublicFolder |Where{$_.IsRootPublicFolderMailbox -eq $false} | Remove-Mailbox -PublicFolder-Force -Confirm:$false

Get-Mailbox -PublicFolder | Remove-Mailbox-PublicFolder -Force -Confirm:$false

 

Step 5: 确保公共文件夹在Exchange2010中没有被锁定

=====

确保PublicFoldersLockedforMigration,PublicFolderMigrationComplete 被设为$false

Get-OrganizationConfig | Format-ListPublicFoldersLockedforMigration, PublicFolderMigrationComplete

wKiom1V_woiwAWf6AACDJomVN5M327.jpg

Step 6: Exchange2010中创建Foldertosize映射文件

Run the Script �C

=====

.\Export-PublicFolderStatistics.ps1Foldertosize.csv mailboxserver.contoso.com

For Example �C

.\Export-PublicFolderStatistics.ps1Foldertosize.csv exch2010.contoso.com

wKioL1V_xFLTcmc2AAG0474jpNU564.jpg

Step 7: Exchange2010中创建public-folder-to-mailbox映射文件

Run the Script

=====

.\PublicFolderToMailboxMapGenerator.ps1<Maximum mailbox size in bytes> <Folder to size map path><Folder to mailbox map path>

For Example �C Taking 25 Gb into bytes

.\PublicFolderToMailboxMapGenerator.ps126843545600 Foldertosize.csv public-folder-to-mailbox.csv

wKiom1V_wrqDHLGOAAFoL_gv-8s572.jpg

Step 8: 预估所需要的公共文件夹邮箱的数量,并创建

=====

打开public-folder-to-mailbox.csv文件, 它将显示你将需要多少邮箱.

wKiom1V_w8LwFmyZAACwEHGJ2rE985.jpg

使用以下命令行来批量创建25个邮箱

$numberOfMailboxes = 25;

for($index =1 ; $index -le $numberOfMailboxes; $index++)

{

$PFMailboxName = “Mailbox”+$index;

if($index -eq 1)

{

New-Mailbox -PublicFolder $PFMailboxName-HoldForMigration:$true -IsExcludedFromServingHiearchy:$true;

}

else

{

New-Mailbox -PublicFolder $PFMailboxName-IsExcludedFromServingHierarchy:$true

}

}

登录到Exchange2013服务器

可以使用以下命令来创建“PFMailbox”公共文件夹

New-Mailbox -PublicFolder PFMailbox-HoldForMigration:$true

wKiom1V_w-rBhGvaAADcaqCwOis300.jpg

打开public-folder-to-mailbox.csv文件,修改为你创建的公共文件夹邮箱名“PFMailbox”.

并复制该csv文件到Exchange2013文件夹的根目录c:\.

wKioL1V_xayA-1UWAADJjgfWXF8985.jpg

Step 9: 迁移PF文件夹

=====

New-PublicFolderMigrationRequest-SourceDatabase (Get-PublicFolderDatabase -Server <Source server name>)-CSVData (Get-Content <Folder to mailbox map path> -Encoding Byte)

==

如果你遇到损坏想,你可以添加“ -AcceptLargeDataLoss �CBadItemLimit “ 属性.

例如�C

New-PublicFolderMigrationRequest-SourceDatabase (Get-PublicFolderDatabase -Serverexch2010.testcareexchange.biz) -CSVData (Get-ContentC:\public-folder-to-mailbox.csv -Encoding Byte)

wKioL1V_xcPx_NOqAAES4MR7te0244.jpg

查看迁移请求的状态,您可以运行一下命令

Get-PublicFolderMigrationRequest | Get-PublicFolderMigrationRequestStatistics-IncludeReport | fl

如果完成,它将显示“AutoSuspended”

wKiom1V_xCyBtXYCAAHb5FGLxM0807.jpg

Step 10: 锁定公共文件夹以完成最好的公布 (该过程期间将不能使用公共文件夹)

=====

登录Exchange2010服务器

Set-OrganizationConfig�CPublicFoldersLockedForMigration:$true

 

Step 11: 恢复到公共文件夹迁移来完成迁移.

=====

Set-PublicFolderMigrationRequest -Identity\PublicFolderMigration-PreventCompletion:$false

Resume-PublicFolderMigrationRequest -Identity\PublicFolderMigration

wKiom1V_xF7jw5NTAAEnS9hgVWs251.jpg

查看状态�C

Get-PublicFolderMigrationRequest |Get-PublicFolderMigrationRequestStatistics -IncludeReport | fl

如果有人在访问公共文件夹,或者任何代理错误,或者任何活动模块,它将会定期尝试.

wKiom1V_xJvwzYlKAADUPwiy_4U602.jpg

现在它看起来完成了

wKiom1V_xLSg2FlDAADuyrv3__M459.jpg

wKioL1V_xmLidVlfAAGlpWeRk7c362.jpg

Step 12: 测试PF迁移状态

=====

在一个测试邮箱上测试公共文件夹

wKioL1V_xnnTO-5GAABJUzBe5Xo165.jpg

添加公共文件夹邮箱

wKioL1V_xo2w51zvAAChTlUT_78611.jpg

Step 13:

=====

运行

Get-Mailbox -PublicFolder | Set-Mailbox-PublicFolder -IsExcludedFromServingHierarchy $false

wKiom1V_xPryofBLAAFjgP-QhMs944.jpg

Step 14:

=====

一旦完成,在Exchange2010服务器上,设置PublicFolderMigrationComplete$true.

Set-OrganizationConfig-PublicFolderMigrationComplete:$true

 

Step 15:

=====

移除Exchange2010 公共文件夹数据库

wKioL1V_xr-xb-m3AAMEcQbSW0U049.jpg

你可能感兴趣的:(公共文件夹迁移)