Old Exchange Server 2007 configuration exists even after reformatting of server

Network_Padawan
Network_Padawan used Ask the Experts™
on
I am setting up a test network with exchange 2007. The information store became corrupted and so I removed the old copy and began to reinstall, this time giving the server name a different name (as I miss-typed the old server name). Upon reinstallation, I saw the old servername and the new one in the exchange console. This confused AD and account and a number of other things so I decided to wipe out the server, reinstall windows server 2008 and reinstall exchange 2007...but there it is again!

I don't understand how the wiping out of a server and reinstall can keep the old exchange configuration in there? Sure you cant do anything but I have to change many of the configs to the current server name and now I cant get exchange working at all.

Is there some AD schema objects being recalled or something? I dont understand!

Highly frustrating
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
You cannot simply remove Exchange 2007 through a simple add/remove programs alone.  Please see the attached link regarding how to remove Exchange 2007 from a server.

http://support.microsoft.com/kb/927464

Author

Commented:
even if i wiped the server out and started from scratch? I see the two previous installation on my 3rd attempt in the console under server configuration.
Did you uninstall the exchange server 2007 by running setup? (You probably did...) I ran into the same problem a while back in a live environment where servers were being consolidated. One server (of course the last one) was still in the Exchange environment,causing lots of errors.

To remove it completely, I used ADSIEDIT to remove the server object. Locate the server record in Configuration/Services/Microsoft Exchange and delete it.

This is not the correct method to remove it. The best way to remove the server. To do it correctly, use the recoverserver switch, recoverthe server and when it is running again, uninstall it correctly. Create a serverwith the same name (vmware works a charm here) and follow the procedure in the article linked below.
http://www.msexchange.org/tutorials/Recovering-Exchange-2007-Server-RecoverServer-switch.html


Lot more work though, so I opted for the quick solution with ADSIEDIT.

Goodluck with it and lucky it happened in a test environment! :-)
Amazon Web Services

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

Commented:
Yes, uninstalling Exchange 2007 requires more than just using add/remove programs or the setup program.  You must complete the uninstall process by also remove it from active directory.

Quote from KB:
"Exchange 2007 is removed differently from earlier versions of Exchange Server. You cannot manually remove Exchange 2007 from a computer. The only supported ways to remove Exchange 2007 are to use Add or Remove Programs or to use the Setup program on the Exchange 2007 CD to remove Exchange 2007 and to remove the Exchange 2007 object from Active Directory."

Commented:
As noted by mzzltijin, using ADSIedit will speed up the process but do becareful when using the tool.  You can cause a lot of havok if you aren't sure of what you are doing.

Author

Commented:
Do I run ADSIEDIT on the exchange server or on the Global Catalog server?
Commented:
Either is fine, you can use either machine to do so.  I highly suggest you read up before using the tool and get as much understanding of what is required.  Use ADSIedit at your own risk.

Using adsiedit:

1.Install ADSI Edit.

2.Launch ADSI Edit. To do this, click Start, click Run, type adsiedit.msc in the text box, and then click OK.

3.Locate the Exchange server object by going to the following location: CN=Configuration, DC= Domain Name, DC=com, CN=Services, CN=Microsoft Exchange, CN=<Organization Name>, CN=Administrative Groups, CN= <Exchange Administrative Group>, CN=Servers, CN=<Server Name>.

4.Delete the server object.

5.Remove the Exchange server's machine account from Security groups Exchange Servers and Exchange Install Domain Servers

Author

Commented:
Sorry I can not find the CN=configuration or the CN=Services or anything else you have listed. All I see is the AD structure as seen in the AD users and computers.

I see  DC= Domain Name, DC=com, then underneath the following:

CN=Builtin
CN=Computers
CN=Domain Controllers

etc etc

Sorry I just cant seem to find it

Author

Commented:
Oh wait I found! Sorry

Thanks :)

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial