[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How can I completely remove Exchange 2010 from AD

Posted on 2011-09-23
1
Medium Priority
?
587 Views
Last Modified: 2012-05-12
I'm having trouble executing a shell command due to residual information from a removed exchange server.

Working in a single domain with 2008 R2 servers and Exchange 2010 SP1 rollup 5
The previous Exchange server was removed without properly removing it from the domain...it was simply shutoff and then the new Exchange was built. The old Exchange is no longer available to work with.
I am attempting to establish IM with OWA via Lync server.

Prior to where I am at now, there was an unmounted database of the old Exchange server showing up in the new Exchange console.

Old mail server is LyncMail
new mail server is LyncExch

I used the following two commands to remove the database from the console...

Get-mailbox -arbitration -database <DB name> | disable-mailbox -arbitration -disablelastarbitrationmailboxallowed

Get-mailbox -arbitration -database <DB name> | remove-mailbox -arbitration -removelastarbitrationmailboxallowed

So now there is only the one active, mounted database showing up in the console.
My problem is that when attempting to execute the command...

get-owavirtualdirectory | set-owavirtualdirectory -instantmessagingservername LyncSrv -instantmessagingcertificatethumprint <thumbprint> -instantmessagingenabled $true -instantmessagingtype 1

it attempts to execute, but reports an error...The task wasn't able to connect to IIS on server 'LyncMail'. Make sure that the server exists and can be reached from this computer: The RPC server is unavailable.
WARNING: The command completed successfully but no settings of 'LyncExch\owa (default web site)' have been modified.

I went to the ADSI Edit on the AD server and removed every instance I could find for LyncMail, but it is still somewhere that is causing the problem.

Looking back through the EMC, the LyncMail server is still showing up under Server Configuration with the roles Hub Transport, Client Access, Mailbox
I was able to go to the Hub Transport and remove Client LyncMail and Default LyncMail from the Receive Connectors, but it remains in the upper panel in the Server Configuration.

Server Configuration
0
Comment
Question by:pjmac28
1 Comment
 

Accepted Solution

by:
pjmac28 earned 0 total points
ID: 36589989
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here in this article, you will get a step by step guidance on how to restore an Exchange database to a recovery database. Get a brief on Recovery Database and how it can be used to restore Exchange database in this section!
Exchange administrators are always vigilant about Exchange crashes and disasters that are possible any time. It is quite essential to identify the symptoms of a possible Exchange issue and be prepared with a proper recovery plan. There are multiple…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager
how to add IIS SMTP to handle application/Scanner relays into office 365.
Suggested Courses

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question