Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How can I completely remove Exchange 2010 from AD

Posted on 2011-09-23
1
Medium Priority
?
585 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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

If something goes wrong with Exchange, your IT resources are in trouble.All Exchange server migration processes are not designed to be identical and though migrating email from on-premises Exchange mailbox to Cloud’s Office 365 is relatively simple…
With so many activities to perform, Exchange administrators are always busy in organizations. If everything, including Exchange Servers, Outlook clients, and Office 365 accounts work without any issues, they can sit and relax. But unfortunately, it…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Suggested Courses

609 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