Chinaunix首页 | 论坛 | 博客
  • 博客访问: 774337
  • 博文数量: 156
  • 博客积分: 5320
  • 博客等级: 大校
  • 技术积分: 1605
  • 用 户 组: 普通用户
  • 注册时间: 2004-10-09 12:24
文章分类

全部博文(156)

文章存档

2010年(20)

2009年(46)

2008年(21)

2007年(21)

2006年(33)

2005年(10)

2004年(5)

分类: WINDOWS

2010-02-23 13:50:22

1启动Active Directory user and computers工具,选择所有在这台邮件服务器拥有邮箱的用户,点击右键选择“Exchange Tasks”,然后选择“Delete Mailbox”将所有用户的邮箱删掉,如果这个动作没有做,我们将无法继续下一步。请插入你的Exchange安装光盘,当安装画面出现以后,在 “Component Selection”画面为你已经安装的组件选择“Remove”选项。
2 我们必须停止所有和Exchange相关的各种服务,例如:
Microsoft Exchange Event
Microsoft Exchange IMAP4
Microsoft Exchange Information Store
Microsoft Exchange Management
Microsoft Exchange Message Transfer Agent Stacks
Microsoft Exchange POP3
Microsoft Exchange Routing Engine
Microsoft Exchange Site Replication Service
Microsoft Exchange System Attendant
这些服务都是需要你停掉的。
3 在你停掉所有相关的服务之后,你应该注意还有很多键值仍残留在注册表里,所以下一步我们将删除以下的这些键值,在你修改注册表之前强烈建议你先做一次备份,以防有意外情况出现。它们分别是以下的键值:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ESE98
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Exchange
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DAVEX
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ESE98
注意:如果你的exchange打过sp2,那么这个键值将不存在。
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EXIFS
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ExIPC
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EXOLEDB
Microsoft Exchange Directory Service to Metabase
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeMU
Microsoft Exchange Event
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeES
Microsoft Exchange IMAP4
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\IMAP4Svc
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeAL
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeDSAccess
Microsoft Exchange Information Store
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeIS
Microsoft Exchange Management
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeMGMT
Microsoft Exchange Message Transfer Agent Stacks
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeMTA
Microsoft Exchange POP3
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\POP3Svc
Microsoft Exchange Publish Free/Busy HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeFBPublish
Microsoft Exchange Routing Engine
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RESvc
Microsoft Exchange Site Replication Service
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeSRS
Microsoft Exchange System Attendant
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeSA
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeTransport
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeWEB
在删除以上的这些键值以后,我们还要继续下一步的操作。
4 (可选)删除IIS组件,并且删除metabase.bin文件,该文件位于sysroot\system32\inetsrv目录下。
5 请重新启动你的电脑。
6 启动完成以后,请把你的Exchange目录exchsrvr重新命名,或者把它转移到其它的盘符下。
7 (可选)请重新安装IIS的相关组件,请确信你选中了SMTP(Simple Mail Transfer Protocol)和NNTP(Network News Transport Protocol)等协议。
8 请再次重新安装相关的系统补丁。
经过上述几个步骤之后,我们已经基本删掉了Exchange的架构以及一些软件的设置,但千万不要认为这就已经万事大吉了,因为接下来的步骤才是最关键的,尽管它很容易操作。现在我们将把Exchange的相关信息从AD里面删掉。
我们需要借助一个工具,该工具在Windows 2000的安装光盘下的Tools目录下你可以找到,请安装它,名字叫作ADSI EDIT,其实还有一个工具也可以做到这一点,名字叫作LDP.EXE,但是操作起来比较复杂,所以在这里就不多做介绍了。
1. 安装完这个工具以后,请启动它,并且展开Domain NC[ServerName],然后再展开DC=domainname,DC=com,右键点击 “CN=Microsoft Exchange system objects”, 然后选择 “property”。如下图所示。
2. 在“Attributes”属性页上面,在下拉菜单 “Select a property to view”里面, 选择 “Heuristics”。
3 点击“Clear”,然后选择“Apply”,然后选“OK” 关闭窗口。
注意:在这一步当中,如果你点“Clear”,然后点“Set”再点“Apply”,那么这个值将残留在AD里面而没有被删掉。
(注:笔者在删除exchange的过程当中,并没有进行上述第2步的操作,而是在第1步时直接选择快捷菜单里的Delete选项,直接进行了删除。在重新安装的过程当中并没有出现异常情况。在这里之所以会提到第2步的操作,是因为笔者在删除Exchange以前,也参考了大量的微软网站的KB,其中有一篇文章就提到了这一点,但是笔者认为这一步的操作似乎有些多余,笔者至今也没参透其中的原因,如果有哪一位同仁知道其中的原理,希望予以赐教。)
 
[KB导读]Using the “Remove Exchange Attributes”

本文主要讲解了任何删除用户的邮箱属性(注意不是邮箱),当你的EX服务器因为意外损坏(比如硬盘挂掉),又没有备份的时候,恢复往往是比较复杂的(有关恢复问题请搜索论坛),在无法恢复的情况下,我们一般是采用删除AD里的组织重新安装,那么这样安装后有一个问题,就是用户的属性里仍保留有EXCHANGE属性,你不能修改这些属性,也不能重新建立邮箱,这是因为用户属性里的MSEXCHHOMESERVERNAME仍指向坏掉的EXCHANGE组织导致的。以前我说过可以手工编辑清除用户的活动目录属性(见论坛),这样操作不仅慢(要一个一个去做),还带有一定的危险性,现在推荐大家使用EX2000 SP2以后版本都有的一个功能–移除EXCHANGE属性。它可以删除所有错误的EXCHANGE属性,重新建立邮箱。
原文地址:
——————————-
SUMMARY
In Exchange 2000 Service Pack 2 (SP2) and later, administrators can use the Remove Exchange Attributes option to remove Exchange attributes from any user or group object. Use this option with caution. You can use this option to reconnect a mailbox after disaster recovery. You can also use this option if you are using the Active Directory Connector (ADC) and you notice that some of your Exchange attributes are being matched improperly with Active Directory user objects.
MORE INFORMATION
To remove Exchange attributes from any user or group object: 1. Click Start, point to Programs, point to Administrative Tools, and then click Active Directory Users and Computers.
2. On the View menu, click Advanced Features.
3. Click the appropriate organizational unit.
4. In the organizational unit, click the user object, and then right-click the user object.
5. Click Exchange Tasks, and then click Remove Exchange Attributes.
6. Click Next, read the warning, click Next again, and then click Finish.
After you perform this action, no event is generated in the Application event log.

List of Attributes Removed (from the Source Code, Build 5716.2)
(”altRecipient”),
(”authOrig”),
(”autoReplyMessage”),
(”delivContLength”),
(”deliverAndRedirect”),
(”deliveryMechanism”),
(”delivExtContTypes”),
(”dLMemDefault”),
(”dLMemRejectPerms”),
(”dLMemSubmitPerms”),
(”dnQualifier”),
(”enabledProtocols”),
(”expirationTime”),
(”extensionData”),
(”folderPathname”),
(”formData”),
(”forwardingAddress”),
(”garbageCollPeriod”),
(”homeMTA”),
(”importedFrom”),
(”internetEncoding”),
(”labeledURI”),
(”language”),
(”languageCode”),
(”legacyExchangeDN”),
(”mail”),
(”mailNickname”),
(”mAPIRecipient”),
(”msExchCustomProxyAddresses”),
(”msExchExpansionServerName”),
(”msExchFBURL”),
(”msExchMailboxSecurityDescriptor”),
(”msExchMasterAccountSid”),
(”msExchPoliciesExcluded”),
(”msExchPoliciesIncluded”),
(”msExchPolicyEnabled”),
(”msExchPolicyOptionList”),
(”msExchPreviousAccountSid”),
(”msExchProxyCustomProxy”),
(”msExchRecipLimit”),
(”msExchUserAccountControl”),
(”pOPCharacterSet”),
(”pOPContentFormat”),
(”protocolSettings”),
(”publicDelegates”),
(”replicationSensitivity”),
(”secretary”),
(”securityProtocol”),
(”submissionContLength”),
(”targetAddress”),
(”textEncodedORAddress”),
(”unauthOrig”),
(”heuristics”),
(”msExchADCGlobalNames”),
(”msExchALObjectVersion”),
(”msExchHideFromAddressLists”),
(”msExchInconsistentState”),
(”msExchUnmergedAttsPt”),
(”replicatedObjectVersion”),
(”replicationSignature”),
(”showInAddressBook”),
(”unmergedAtts”),
(”extensionAttribute1″),
(”extensionAttribute10″),
(”extensionAttribute11″),
(”extensionAttribute12″),
(”extensionAttribute13″),
(”extensionAttribute14″),
(”extensionAttribute15″),
(”extensionAttribute2″),
(”extensionAttribute3″),
(”extensionAttribute4″),
(”extensionAttribute5″),
(”extensionAttribute6″),
(”extensionAttribute7″),
(”extensionAttribute8″),
(”extensionAttribute9″),
(”autoReply”),
(”deletedItemFlags”),
(”homeMDB”),
(”mDBOverHardQuotaLimit”),
(”mDBOverQuotaLimit”),
(”mDBStorageQuota”),
(”mDBUseDefaults”),
(”msExchHomeServerName”),
(”msExchMailboxGuid”),
(”msExchMailboxUrl”),
(”msExchPfRootUrl”),
(”msExchUseOAB”),
(”proxyAddresses”)

If you are running the Active Directory Connector between Exchange 2000 and Exchange 5.5, the procedures listed in this article for removing mail attributes from a user on Exchange 2000 will not propagate across the ADC and remove the Custom Recipient object representing the user on the Exchange 5.5 side.

If the client is expecting the changes to migrate from Exchange 2000 to Exchange 5.5, you will have to avoid removing the legacyExchangeDN attribute, and set its value to ADCDisabledMail.

For additional information, search the Exchange 2000 SP2 Help (the Exadmin.chm file) for “remove exchange attributes”.

The following two Exchange attributes are left behind after running “Remove Exchange Attributes” in Exchange 2000 SP2.
deletedItemFlag

displayNamePrintable
The Exchange Attribute publicDelegatesBL is also left behind after running “Remove Exchange Attribute”. This is because the user has been granted delegated access to another user’s mailbox. This behavior is by design so that when the user is mail-enabled again they will have access to that user’s mailbox without the user having to re-delegate access.

阅读(1086) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~