最近的一次Exchange 2003升级到Exchange 2010项目遇到了一些问题,着实让人头疼了一把,整个五一假期都在研究怎么解决,还好,功夫不负有心人,问题总算得以解决,现在把问题整理出来分享一下,以下截图有的是生产环境,有的是测试环境。

首先说说最开始发生的问题吧,也就是因为这一问题,才引发了后来一系列的问题,悲剧啊!

最开始,按照微软的要求,对现有的Exchange 2003环境做了各种扩展,扩展过程也很顺利,原本以后跟以前做过的项目一样,顺利的安装好Exchange 2010,谁知道在安装到邮箱服务器角色的时候出问题了,安装向导报以下错误:

“Couldn’t resolve the user or group “domain.lan/Microsoft Exchange Security Groups/Discovery Management.” If the user or group is a foreign forest principal, you must have either a two-way trust or an outgoing trust. The trust relationship between the primary domain and the trusted domain failed.

如果能一早的对这一问题进行研究解决,也就不会有后面更加麻烦的事情了,可惜呀,有时候不去绕个道还真走不回来。

我在控制面板中删除了Exchange 2010,并且删除了Microsoft Exchange Security Groups,当我再次进行架构扩展的时候,报了以下错误:

p_w_picpath

p_w_picpath

p_w_picpath

本想按照以上要求对相关条目进行删除,没想到啊,又出现以下情况:

p_w_picpath

最后,终于在LDP工具中删除了这一条目属性,使之成为了Not Set,就可以继续扩展架构了

p_w_picpath

p_w_picpath

p_w_picpath

p_w_picpath

p_w_picpath

p_w_picpath

p_w_picpath

p_w_picpath

p_w_picpath


解决了上面的问题,应该可以继续安装了吧,可是到了邮箱服务器角色那一步又回到了最上面提到的问题了,这次不能再删除条目了,还是另想办法吧,最后终于在一个国外的论坛上看到了解决方法:

1.) Open the Active Directory Users and Computers snapin    
2.) Navigate to the Users organizational unit    
3.) Delete the DiscoverySearchMailbox account    
4.) Rerun the Exchange 2010 setup. The setup will install Exchange 2010 fine now…    
5.) Open the Exchange Management Shell (EMC)    
6.) Run the command: setup.com /prepareAD The DiscoverySearchMailbox account will be created again.    
7.) Mail-enable the new DiscoverySearchMailbox with the following command:    
Enable-Mailbox -Discovery -Identity “DiscoverySearchMailbox {D919BA05-46A6-415f-80AD-7E09334BB852}”
8.) Force the Active Directory Replication    
9.) Your Exchange 2010 environment is ready for production now

好了,问题解决了,这会安装一切顺利,该没有问题了吧,不过,有时候还真不能高兴的太早,这不,打开了EMS和EMC的时候,又提示以下错误:

p_w_picpath

经过了一翻苦苦搜寻,解决方法找到了,也终于打开了EMS和EMC

1. Open Windows Powershell as “Run As Administrator”

2. Load the setup Snapin with the command: Add-Pssnapin *Setup*

3. Run the commands one after the other to propagate the RBAC to the user who is logged on to the Exchange Server.

a. Install-CannedRbacRoleAssignments –InvocationMode Install

b. Install-CannedRbacRoles

c. Install-CannedRbackRoleAssignmentsRAP

d. Install-CannedAddressLists
以上所以的错误及解决方案参考以下链接:

http://social.technet.microsoft.com/wiki/contents/articles/14874.error-the-user-domain-localusersadministrator-isnt-assigned-to-any-management-roles-on-exchange-2010-management-console.aspx


http://www.itguydiaries.net/2012/07/omg-exchange-security-groups-were.html


http://markswinkels.nl/2012/05/exchange-2010-sp2-error-during-installation-couldnt-resolve-the-user-or-group-domain-lanmicrosoft-exchange-security-groupsdiscovery-management/