Solved

How can I completely remove Exchange 2010 from AD

Posted on 2011-09-23
1
582 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
pjmac28 earned 0 total points
ID: 36589989
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Unified and professional email signatures help maintain a consistent company brand image to the outside world. This article shows how to create an email signature in Exchange Server 2010 using a transport rule and how to overcome native limitations …
If you troubleshoot Outlook for clients, you may want to know a bit more about the OST file before doing your next job. IMAP can cause a lot of drama if removed in the accounts without backing up.
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

724 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