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
说明:
-Identity为源域中用户名
-RemoteForestDomainController为源域控服务器
-RemoteForestCredential为源域控凭证(即源域控管理员用户名和密码)
-LocalForestDomainController为目标域控服务器(本地域)
-LocalForestCredential为目标域控凭证(即目标控管理员用户名和密码)
此命令必须切换到Exchange安装目录(Program Files\Microsoft\Exchange Server\V14\Scripts)下执行,可以通过cd “\Program Files\Microsoft\Exchange Server\V14\Scripts”(此命令可以包含空格)
补充说明:
A) 准备迁移邮箱,此命令会复制AD用户和邮箱相关属性到目标域中,执行命令结果后。
转载于:https://blog.51cto.com/fengxja/1334575