About The Author

Ahmed Saber..Senior Microsoft Engineer and Consultant .

Get The Latest News

Sign up to receive latest news

Thursday, August 6, 2009

Autodiscover Configuration On Exchange 2007 with Multi CAS

 

Hi everyone
Today I am going to show you how to configure autodiscover services in exchange 2007 server
in my scenario I have two Hub+ CAS server load balanced together using Microsoft NLB services
I spent a lot of time and effort in my labs and also with my customers in their real environment to figure out the correct steps to configure autodiscover services and make it work perfectly in any setup or environment . and it is proven to work in any case
I will take you step by step to configure auto discover and also how to test it also , ok now it is time to go ahead and start the work .
My Scenario setup :

1- I have two domain controllers DC1 , DC2
2- my domain name is test.com
3- I have two mailbox servers called exch1 ,exch2 and I am using SCC cluster
the virtual name for my mailbox cluster is exchange.test.com
4- I have two HUB+CAS servers called owa1 ,owa2 and load balanced together
the virtual name for my HUB+CAS load balanced cluster is mail.test.com .....this is the name will be used to access my OWA from inside and outside

Autodiscover configuration steps :

now i have two cases that you might face , either your client PCs are joined to the domain or not
I will talk about how to configure autodiscover service when your client PCs joined to the domain.

Here are the steps :

you must have a suitable SAN certificate either generated locally or from a third party and i will talk about how to create a SAN certificate in a different post
start Configuring your SCP URLs so the autodiscover service work correctelly , to do this you will use the exchange managment shell with the following commands :

Get-clientAccessServer  | fl Name,AutoDiscoverServiceInternalUri

the output of this command will be similar to the following

Name : OWA1

AutoDiscoverServiceInternalUri : https://owa1.test.com/Autodiscover/Autodiscover.xml

Name : OWA2

AutoDiscoverServiceInternalUri : https://owa2.test.com/Autodiscover/Autodiscover.xml

After that run the following commands to set the autodiscover URI :

Set-ClientAccessServer -Identity owa1 -AutoDiscoverServiceInternalUri "https://mail.test.com/autodiscover/autodiscover.xml"

Set-ClientAccessServer -Identity owa2 -AutoDiscoverServiceInternalUri "https://mail.test.com/autodiscover/autodiscover.xml"

Now we will configure the offline address book URLs:

run the following command to get the OAB information details

Get-OabVirtualDirectory  | fl Server,Name,internalurl,externalurl

the output will be similar to below:

Server : OWA1

Name : OAB (Default Web Site)

InternalUrl : http://owa1.test.com/OAB

ExternalUrl :

Server : OWA2

Name : OAB (Default Web Site)

InternalUrl : http://owa2.test.com/OAB

ExternalUrl :

now run the following command to set OAB URLs:

Set-OabVirtualDirectory -Identity "owa1\oab (default web site)" -InternalUrl https://mail.test.com/oab -ExternalUrl https://mail.test.com/oab

Set-OabVirtualDirectory -Identity "owa2\oab (default web site)" -InternalUrl https://mail.test.com/oab -ExternalUrl https://mail.test.com/oab

for Unified messaging URLs:

Get-UMVirtualDirectory  | fl Name,Server,Internalurl,externalurl

Name : UnifiedMessaging (Default Web Site)

Server : owa1

InternalUrl : https://owa1.test.com/UnifiedMessaging/Service.asmx

ExternalUrl :

Name : UnifiedMessaging (Default Web Site)

Server : owa2

InternalUrl : https://owa2.test.com/UnifiedMessaging/Service.asmx

ExternalUrl :

set-UMVirtualDirectory -Identity "owa1\UnifiedMessaging (Default Web Site)" -InternalUrl https://mail.test.com/UnifiedMessaging/Service.asmx -ExternalUrl https://mail.test.com/UnifiedMessaging/Service.asmx

set-UMVirtualDirectory -Identity "owa2\UnifiedMessaging (Default Web Site)" -InternalUrl https://mail.test.com/UnifiedMessaging/Service.asmx -ExternalUrl https://mail.test.com/UnifiedMessaging/Service.asmx

for EWS services URLs:

Get-WebServicesVirtualDirectory | fl name,internalurl,externalurl

Name : EWS (Default Web Site)

InternalUrl : https://owa1.test.com/EWS/Exchange.asmx

ExternalUrl :

Name : EWS (Default Web Site)

InternalUrl : https://owa2.test.com/EWS/Exchange.asmx

ExternalUrl :

**Note if you are not using an NLB then you can leave the internal settings to the default.

set-WebservicesVirtualDirectory -Identity "owa1\EWS (default web site)" -InternalUrl https://mail.test.com/EWS/Exchange.asmx -ExternalUrl https://mail.test.com/EWS/Exchange.asmx

set-WebservicesVirtualDirectory -Identity "owa2\EWS (default web site)" -InternalUrl https://mail.test.com/EWS/Exchange.asmx -ExternalUrl https://mail.test.com/EWS/Exchange.asmx

now to test the autodiscover service settings follow these steps:

1- hold the CTRL button
2- right click the outlook icon in the system tray
3- select the test autoconfiguration option
4- if your pc is joined to domain the do not write your password otherwise write it if your pc is member of workgroup
5- then click test
6- the result should be successful

===================================================================
thank you very much
I hope this post help most of you in their work
i will be waiting your comments on my post and also i will be waiting any suggestions

=================================================================

Regards
Ahmed Saber
Microsoft Senior Engineer and Team Leader
KDCC
Kuwait

=================================================================

0 comments: