We help IT Professionals succeed at work.

Remove Exchange 2013 CAS roles when server is already gone?

Steven Helms
Steven Helms asked
on
295 Views
Last Modified: 2017-11-09
Is there a way to remove CAS roles and anything else when the server is already gone?
I have three servers EX1, EX2 and EX3.  How can I remove EX2?
Here is  what I receive with one PowerShell command.
[PS] C:\Windows\system32>Get-AutoDiscoverVirtualDirectory

Name                                    Server                                  InternalUrl
----                                    ------                                  -----------
Autodiscover (Default Web Site)         EX1
The task wasn't able to connect to IIS on the server 'EX2.example.local'. Make sure that the server exists and
can be reached from this computer: The RPC server is unavailable.
    + CategoryInfo          : ReadError: (EX2\Autodiscover (Default Web Site):ADObjectId) [Get-AutodiscoverVirtualDire
   ctory], IISNotReachableException
    + FullyQualifiedErrorId : [Server=EX1,RequestId=351ddc1e-65ff-4555-8e45-7a469fda99e1,TimeStamp=3/26/2017 5:59:41 P
   M] [FailureCategory=Cmdlet-IISNotReachableException] 30AB6771,Microsoft.Exchange.Management.SystemConfigurationTas
  ks.GetAutodiscoverVirtualDirectory
    + PSComputerName        : ex1.example.local

Autodiscover (Default Web Site)         EX3


[PS] C:\Windows\system32>
Comment
Watch Question

Cloud Security Consultant
CERTIFIED EXPERT
Top Expert 2010
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
Steven HelmsIT Support

Author

Commented:
I only want to remove EX2, not all of Exchange.  If I can leave it in the config, then I am happy to do so.
Adam BrownCloud Security Consultant
CERTIFIED EXPERT
Top Expert 2010
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
Jason CrawfordTransport Ninja
CERTIFIED EXPERT

Commented:
What does a Get-ExchangeServer show?
CERTIFIED EXPERT

Commented:
You can remove the Server from ADSIEDIT but just remember this can cause some other issues even later on so best practice would be recover the Server

Recover an Exchange Server
https://technet.microsoft.com/en-us/library/dd876880(v=exchg.141).aspx

And follow
Uninstalling Exchange Server 2010
http://www.careexchange.in/uninstalling-exchange-server-2010/

https://blogs.technet.microsoft.com/mspfe/2015/08/26/decommissioning-legacy-exchange-servers/


In case you don't want to recover the Server and want to remove it from ADSIEDIT then you can follow the steps shared by Adam or below article

http://msexperttalk.com/remove-exchange-server-using-adsi-edit/
Steven HelmsIT Support

Author

Commented:
Get-ExchangeServer shows
EX1
EX2
EX3
Delphineous SilverwingGood Ol' Geek
CERTIFIED EXPERT

Commented:
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Split:
-- Adam Brown (https:#a42065603)
-- Adam Brown (https:#a42065652)


If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

Delphineous
Experts-Exchange Cleanup Volunteer

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions