Exchange 2010 configure Site Scope for Autodiscover

This post is also available in: Polish

In Exchange 2010 environment with many Active Directory Sites we have to provide access for clients connecting from multiple sites to our Exchange Server.

When our Exchange and Active Directory environment is spreads across country or world, we often use AD Sites. Then we have to make sure that every AD Site is supported by ours Exchange CAS servers Autodiscovery.

So we need to add AD Sites to AutoDiscoverySitesScope in our Exchange CAS Server.

First we should check existing configuration of CAS servers. To do this we can write below command:

Get-ClientAccessServer | fl Name, AutoDiscoverSiteScope

 

We will get list of all Exchange CAS with AutoDiscoverSiteScope.

If we don’t know what AD Sites are in our environment we can get list of AD Sites using:

Get-AdSite

When we want to add AD Site to Exchange CAS we need to use Set-ClientAccessServer CMDlet like below:

Set-ClientAccessServer -identity MXCAS01 -AutoDiscoverSiteScope "Location Site 1, Location Site 2"

If we want to add new AD Sites to existing configuration we have to first get this configuration, next update and then write to Exchange CAS.

We can do this like below:

#get existing sites supported by MXCAS01 
$AD_SiteScope = (Get-ClientAccessServer -Identity MXCAS01).AutoDiscoverSiteScope

#add new AD Sites to variable
$AD_SiteScope += "Location Site 3, Location Site 4"

#update settings of MXCAS01
Set-ClientAccessServer -Identity MXCAS01 -AutoDiscoverSiteScope $AD_SiteScope

 

If you want to find to which AD Site your Exchange Server blongs to, you need to use nltest command like below:

nltest/dsgetsite

or you can check this remotely like below:

nltest /server:MXCAS01 /dsgetsite

 

 

Print Friendly
Tagged , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>