Excluding one particular Exchange CAS server to not participating in Autodiscover ?


I have built and deploy Exchange 2013 CAS role only for basic authentication purpose back to the existing primary Mailbox/CAS role in the same AD site.

How can I exclude certain Exchange 2013 – CAS server so that it is not participating in the Autodiscover process?

AD Domain: MyCompany.com

AD Site: Site1DC1
PRDMAIL01-VM1 [MBX DAG1 member & CAS role]
PRDMAIL01-VM2 [MBX DAG1 member & CAS role]

AD Site: Site2DC2
PRDMAIL02-VM1 [MBX DAG1 member & CAS role]
PRDMAIL02-VM2 [MBX DAG1 member & CAS role]
PRDMAIL02-VM3 [CAS role only] --> the CNAME I created for this server is Auth.MyCompany.com

The objective of PRDMAIL02-VM3 server is just running for 3rd party application and NOT to actively participating in Autodiscover, Free Busy, EWS methods, etc… so all of my workstations picked it up as being active in the CAS array.

Thanks in advance.
Senior IT System EngineerIT ProfessionalAsked:
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.

Justin EvansCommented:
first of all open a EMS and type the following:

Get-ClientAccessServer |ft identity, AutodiscoverServiceInternalUri,AutodiscoverSiteScope

This will show you who is in the CAS Array.

Then to remove type the following:

Set-ClientAccessServer –identity PRDMAIL02-VM3 –AutodiscoverServiceInternalUri: https://PRDMAIL02-VM3.Auth.MyCompany.com/autodiscover/autodiscover.xml

Kind Regards

Senior IT System EngineerIT ProfessionalAuthor Commented:
Hi Justin,

Does it mean it is just setting the AutodiscoverServiceInternalUri into another Exchange server or some random strings ?
timgreen7077Exchange EngineerCommented:
if you don't want the server to participate in Autodiscover just don't add it to the internal auotdiscover DNS record. add only DNS records for the servers you want to be found by auotdiscover.
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

Senior IT System EngineerIT ProfessionalAuthor Commented:
Hi Tim,

When I do NSlookup, the autodicover.domain.com resolves to all CAS server except PRDMAIL02-VM3.
timgreen7077Exchange EngineerCommented:
Good so that server will not be found by auotdiscover. I would just verify that th wre is no autodiscover DNS A record for that server, but most likely there isn't since nslookup didn't find it. you should be good to go.
IvanSystem EngineerCommented:

by default your domain computers are going to use Autodiscover SCP, and not DNS A record. You don't need to have DNS A record, and domain clients will still pick up Autodiscover from domain.

If you want to exclude one Exchange from Autodiscover, then set AutodiscoverServiceInternalUri to NULL for that server.

[PS] C:\> Set-ClientAccessServer -Identity “PRDMAIL02-VM3” -AutoDiscoverServiceInternalUri $NULL


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
Senior IT System EngineerIT ProfessionalAuthor Commented:
Thanks all !
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.