Remove Exchange 2013 CAS roles when server is already gone?

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
    + PSComputerName        : ex1.example.local

Autodiscover (Default Web Site)         EX3

[PS] C:\Windows\system32>
Steven HelmsAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Adam BrownSr Solutions ArchitectCommented:
Yes, but it has to be done in ADSIEdit. provides instructions on how to do it.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Steven HelmsAuthor 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 BrownSr Solutions ArchitectCommented:
Derp. Sorry. Same place in ADSIEdit, go to Services\Microsoft Exchange\<Organization>\Administrative Groups\<Administrative Group>\Servers and delete the server in there.
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Jason CrawfordTransport NinjaCommented:
What does a Get-ExchangeServer show?
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

And follow
Uninstalling Exchange Server 2010

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
Steven HelmsAuthor Commented:
Get-ExchangeServer shows
Delphineous SilverwingGood Ol' GeekCommented:
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:

-- 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.

Experts-Exchange Cleanup Volunteer
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.