9、迁移用户邮箱准备

1) 登陆DC01服务器,打开Exchange命令行

2) 登录EX10服务器,运行以下两条命令

$LocalCredentials = Get-Credential

$RemoteCredentials = Get-Credential

注意:Get-Credential命令为得到当前输入用户名和密码凭证(这里为源域和目标域的域管理员用户名和密码),$LocalCredentials和$RemoteCredentials为变量。
输入管理员用户名,必须下列格式administrator@abc.com
参考链接:
http:/technet.microsoft.com/zh-cn/library/ee861103.aspx

.\Prepare-MoveRequest.ps1 -Identity test03@test.com -RemoteForestDomainController 2k08r2-dc.test.com -RemoteForestCredential $RemoteCredentials -LocalForestDomainController dc01.contoso.com -LocalForestCredential $LocalCredentials
clip_image002
说明:
-Identity为源域中用户名

-RemoteForestDomainController为源域控服务器
-RemoteForestCredential为源域控凭证(即源域控管理员用户名和密码)
-LocalForestDomainController为目标域控服务器(本地域)
-LocalForestCredential为目标域控凭证(即目标控管理员用户名和密码)

此命令必须切换到Exchange安装目录(Program Files\Microsoft\Exchange Server\V14\Scripts)下执行,可以通过cd “\Program Files\Microsoft\Exchange Server\V14\Scripts”(此命令可以包含空格)

补充说明:

A) 准备迁移邮箱,此命令会复制AD用户和邮箱相关属性到目标域中,执行命令结果后。

B) 用户为禁用状态,需要启动用户。
clip_image003

C) 需要第一次登录更改密码,用户必须登录更改密码或者管理员重置密码,否则用户无法登录。
clip_image004

D) 迁移用户的登录后缀还是源域的,需要手动更改为目标域,否则用户在目标域无法登录。
clip_image005