<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Exchange-Genie &#187; msExchAutoDiscoverServer</title>
	<atom:link href="http://www.exchange-genie.com/category/msexchautodiscoverserver/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.exchange-genie.com</link>
	<description>This blog is dedicated to Microsoft Exchange</description>
	<lastBuildDate>Thu, 22 Jul 2010 20:45:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Exchange 2007 Autodiscover Service Part 1</title>
		<link>http://www.exchange-genie.com/2007/07/exchange-2007-autodiscover-service-part-1/</link>
		<comments>http://www.exchange-genie.com/2007/07/exchange-2007-autodiscover-service-part-1/#comments</comments>
		<pubDate>Fri, 06 Jul 2007 17:31:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[msExchAutoDiscoverServer]]></category>
		<category><![CDATA[Autodiscover]]></category>
		<category><![CDATA[Exchange]]></category>
		<category><![CDATA[exchange 2007]]></category>
		<category><![CDATA[Exchange 2007 SP1]]></category>
		<category><![CDATA[Outlook Anywhere]]></category>

		<guid isPermaLink="false">http://www.exchange-genie.com/?p=9</guid>
		<description><![CDATA[*Updated March 16 2008* A new feature in Exchange 2007 is autodiscover service which is required for users running Outlook 2007 to get many features like OOF, OAB, to function in an Exchange 2007 envrionment. In my opionon this cool new feature is one of the number 1 problems people encounter during set up. For [...]]]></description>
			<content:encoded><![CDATA[<p>*Updated March 16 2008*<br />
A new feature in Exchange 2007 is autodiscover service which is required for users running Outlook 2007 to get many features like OOF, OAB, to function in an Exchange 2007 envrionment. In my opionon this cool new feature is one of the number 1 problems people encounter during set up.</p>
<p>For this blog I used a simple setup with 1 CAS/Hub and 1 MBX server, this blog does not cover all the configurations and thier options but goes into detail about Exchange 2007 Autodiscover service.</p>
<p>There are 4 ways to get autodiscover to function:<br />
1. Set the SCP to the url of the autodiscover server (this will work for domain joined machines)<br />
2. DNS/HTTP<br />
3. Deploy an Xml file to the users machine which also requires registry changes on the client<br />
4. DNS SRV records (requires Outlook 2007 SP1)</p>
<p>There are a number of setting when it comes to configuring autodiscover and its associated components:</p>
<p>By default Exchange creates the 2 virtual directories on the CAS server that are needed for the autodiscover and availability service, however there is no gui interface to manage these services and all management must be done from EMS (exchange management shell)</p>
<p>- EWS &#8211; Exchange Web Services and Autodiscover &#8212; for autodiscover service</p>
<p><a href="http://1.bp.blogspot.com/_jG-efUpJ7Oc/Rpk0dNzdm-I/AAAAAAAAABE/EE38HSkZaas/s1600-h/IIS-EWS.jpg"><img id="BLOGGER_PHOTO_ID_5087154930618047458" style="margin: 0px 10px 10px 0px; float: left;" src="http://1.bp.blogspot.com/_jG-efUpJ7Oc/Rpk0dNzdm-I/AAAAAAAAABE/EE38HSkZaas/s400/IIS-EWS.jpg" border="0" alt="" /></a></p>
<p>Lets start from the begining:</p>
<p><span style="color: #00cccc;font-size:130%;">SERVICE CONNECTION POINT &#8211; SCP</span></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
The SCP informtion can be found using LDP or Adsieidt, for this blog I will use Adsiedit in my examples:<br />
Open the Configuration container to the following path:<br />
CN=Services, CN=Microsoft Exchange,CN=First Organization (your org name),CN=Administrative Groups,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Servers,CN=YourServer,CN=Protocols,CN=Autodiscover, <a href="http://3.bp.blogspot.com/_jG-efUpJ7Oc/Rpku8tzdm8I/AAAAAAAAAA0/AXsfS3Ot-bg/s1600-h/scp.jpg"><img id="BLOGGER_PHOTO_ID_5087148874714160066" style="margin: 0px 10px 10px 0px; float: left;" src="http://3.bp.blogspot.com/_jG-efUpJ7Oc/Rpku8tzdm8I/AAAAAAAAAA0/AXsfS3Ot-bg/s400/scp.jpg" border="0" alt="" /></a></p>
<p>By default the SCP will be set to <a href="https://yourserverfqdn/autodiscover/autodiscover.xml">Https://yourserverfqdn/autodiscover/autodiscover.xml</a></p>
<p>How can the SCP be manged?</p>
<p>Currently there is no gui interface to manage the SCP setting however we can use the new EMS.<br />
1. Open EMS<br />
2. Get-clientAccessServer ¦ fl Name,AutoDiscoverServiceInternalUri</p>
<p><a href="http://3.bp.blogspot.com/_jG-efUpJ7Oc/Rpkxftzdm9I/AAAAAAAAAA8/mBYRB-TcAuQ/s1600-h/get-clientaccessserver.jpg"><img id="BLOGGER_PHOTO_ID_5087151675032837074" style="margin: 0px 10px 10px 0px; float: left;" src="http://3.bp.blogspot.com/_jG-efUpJ7Oc/Rpkxftzdm9I/AAAAAAAAAA8/mBYRB-TcAuQ/s400/get-clientaccessserver.jpg" border="0" alt="" /></a></p>
<p>The get command will allow us to view the current SCP for a given server or all servers.</p>
<p>To set the SCP we use the commandlet: Set-ClientAccessServer -Identity vmcashub -AutoDiscoverServiceInternalUri &#8220;<a href="https://mail.vm.local/autodiscover/autodiscover.xml">https://mail.vm.local/autodiscover/autodiscover.xml</a>&#8221;<br />
** Note: You can leave this as the internal servername unless you have an NLB that you want to take advantage of**</p>
<p>and we can validate our change with the get command:<br />
Get-clientAccessServer ¦ fl Name,AutoDiscoverServiceInternalUri</p>
<p>Now that the SCP is set domain joined clients could use the autodiscover service however there are some additional components are tied to the autodiscover serivce like Offline address book, UM, availability.</p>
<p>Lets use the Test-OutlookWebServices commandlet and see what happens<br />
Test-OutlookWebServices -identity Brian.Tirch<br />
**Note if you don&#8217;t specify an identity the system will choose a user</p>
<p>Id : 1003Type : InformationMessage : About to test AutoDiscover with the e-mail address <a href="mailto:Brian.Tirch@vm.local">Brian.Tirch@vm.local</a>.<br />
Id : 1018Type : InformationMessage : The SSL certificate on mail.vm.local is self-signed.<br />
Id: 1006Type : InformationMessage : Contacted AutoDiscover at <a href="https://mail.vm.local/autodiscover/autodiscover.xml">https://mail.vm.local/autodiscover/autodiscover.xml</a>.<br />
Id: 1018Type : InformationMessage : The SSL certificate on vmcashub.vm.local is self-signed.<br />
Id : 1016Type : SuccessMessage : [EXCH]-Successfully contacted the AS service at <a href="https://vmcashub.vm.local/EWS/Exchange.asmx">https://vmcashub.vm.local/EWS/Exchange.asmx</a>.<br />
Id : 1015Type : SuccessMessage : [EXCH]-Successfully contacted the OAB service at <a href="https://vmcashub.vm.local/EWS/Exchange.asmx">https://vmcashub.vm.local/EWS/Exchange.asmx</a>.<br />
Id : 1014Type : SuccessMessage : [EXCH]-Successfully contacted the UM service at <a href="https://vmcashub.vm.local/UnifiedMessaging/Service.asmx">https://vmcashub.vm.local/UnifiedMessaging/Service.asmx</a>.<br />
Id : 1006Type : <span style="color: #ff0000;">SuccessMessage : Successfully tested AutoDiscover.</span></p>
<p>Let take a look at the Output:<br />
1. The first return shows the user that is being used to test autodiscover<br />
<span style="color: #33ff33;font-size:85%;">InformationMessage : About to test AutoDiscover with the e-mail address </span><a href="mailto:Brian.Tirch@vm.local"><span style="color: #33ff33;font-size:85%;">Brian.Tirch@vm.local</span></a><span style="color: #33ff33;font-size:85%;">.</span><br />
2. Exchange creates self signed certificates during installation (from here on out I will skip this message)<br />
<span style="color: #33ff33;font-size:85%;">Id : 1018Type : InformationMessage : The SSL certificate on mail.vm.local is self-signed.</span><br />
3. The system connects to the SCP to find the autodiscover service<br />
<span style="color: #33ff33;font-size:85%;">Id: 1006Type : InformationMessage : Contacted AutoDiscover at </span><a href="https://mail.vm.local/autodiscover/autodiscover.xml"><span style="color: #33ff33;font-size:85%;">https://mail.vm.local/autodiscover/autodiscover.xml</span></a><span style="color: #33ff33;font-size:85%;">.</span><br />
<span style="color: #000000;">4. The availability service is contacted</span><br />
<span style="color: #000000;"><span style="color: #33ff33;">Id : 1016Type : SuccessMessage : [EXCH]-Successfully contacted the AS service at </span><a href="https://vmcashub.vm.local/EWS/Exchange.asmx"><span style="color: #33ff33;">https://vmcashub.vm.local/EWS/Exchange.asmx</span></a><span style="color: #33ff33;">.</span><br />
<span style="font-size:85%;">** note the url- this is the fqdn of the server and we have not modified this yet </span></span></p>
<p><span style="color: #000000;"><span style="font-size:85%;">5. The OAB url is checked</span></span><br />
<span style="font-size:0;"><span style="color: #33ff33;font-size:85%;">Id : 1015Type : SuccessMessage : [EXCH]-Successfully contacted the OAB service at </span><a href="https://vmcashub.vm.local/EWS/Exchange.asmx"><span style="color: #33ff33;font-size:85%;">https://vmcashub.vm.local/EWS/Exchange.asmx</span></a><span style="color: #33ff33;"><span style="font-size:85%;">.</span></span></span><br />
<span style="font-size:85%;">** note the url- this is the fqdn of the server and we have not modified this yet and would cause problems for external users</span><br />
6. The UM serverurl is checked<br />
<span style="color: #33ff33;font-size:85%;">Id : 1014Type : SuccessMessage : [EXCH]-Successfully contacted the UM service at </span><a href="https://vmcashub.vm.local/UnifiedMessaging/Service.asmx"><span style="color: #33ff33;font-size:85%;">https://vmcashub.vm.local/UnifiedMessaging/Service.asmx</span></a><span style="color: #33ff33;font-size:85%;">.</span><br />
<span style="font-size:85%;">** note the url- this is the fqdn of the server and we have not modified this yet and would cause problems for external users</span><br />
7. The process completes succuess<br />
<span style="color: #33ff33;font-size:85%;">Id : 1006Type : SuccessMessage : Successfully tested AutoDiscover.</span></p>
<p>The test looks good and users will be able to use autodiscover service (AS).</p>
<p>The following services can be set from the gui or from EMS in this example I will use EMS:<br />
OAB<br />
UM<br />
&#8212;-EMS Only<br />
EWS</p>
<p>We need to set the internal and external urls, by default the internal url is set to the fqdn of the server.</p>
<p>Lets start with EWS (Exchange web services) which controls the availability service<br />
<strong>EWS</strong><br />
Get-WebServicesVirtualDirectory ¦ fl name,internalurl,externalurl<br />
<span style="color: #33ff33;">Name : EWS (Default Web Site)InternalUrl : </span><a href="https://vmcashub.vm.local/EWS/Exchange.asmx"><span style="color: #33ff33;">https://vmcashub.vm.local/EWS/Exchange.asmx</span></a><br />
<span style="color: #33ff33;">ExternalUrl :</span><br />
from the output we see the external url is not set and the internal is set to the server fqdn which will work for internal clients however we want to use our external name of mail.vm.local for our configuration.</p>
<p>Here I am piping the get command to the set command which will set all my Web services virtual directories at once instead of one by one:<br />
<span style="color: #33ff33;font-size:85%;">Get-WebServicesVirtualDirectory set-WebservicesVirtualDirectory -intrnalurl </span><a href="https://mail.vm.local/EWS/Exchange.asmx"><span style="color: #33ff33;font-size:85%;">https://mail.vm.local/EWS/Exchange.asmx</span></a><span style="color: #33ff33;font-size:85%;"> -externalurl </span><a href="https://mail.vm.local/EWS/Exchange.asmx"><span style="color: #33ff33;font-size:85%;">https://mail.vm.local/EWS/Exchange.asmx</span></a><br />
**Note if you are not using an NLB then you can leave the internal settings to the default.</p>
<p>Lets verify this by running the get again:<br />
Get-WebServicesVirtualDirectory ¦ fl name,internalurl,externalurl<br />
<span style="color: #33ff33;">Name : EWS (Default Web Site)</span><br />
<span style="color: #33ff33;">InternalUrl : </span><a href="https://mail.vm.local/EWS/Exchange.asmx"><span style="color: #33ff33;">https://mail.vm.local/EWS/Exchange.asmx</span></a><br />
<span style="color: #33ff33;">ExternalUrl : </span><a href="https://mail.vm.local/EWS/Exchange.asmx"><span style="color: #33ff33;">https://mail.vm.local/EWS/Exchange.asmx</span></a><br />
**You do not need to set external urls on non internet facing CAS servers</p>
<p>Repeat the steps with the commands below:</p>
<p><strong>Offline Address Book<br />
</strong>Get-OabVirtualDirectory ¦ fl Server,Name,internalurl,externalurl<br />
<span style="color: #33ff33;">Server : VMCASHUB</span><br />
<span style="color: #33ff33;">Name : OAB (Default Web Site)</span><br />
<span style="color: #33ff33;">InternalUrl : </span><a href="http://vmcashub.vm.local/OAB"><span style="color: #33ff33;">http://vmcashub.vm.local/OAB</span></a><br />
<span style="color: #33ff33;">ExternalUrl :</span></p>
<p>Set-OabVirtualDirectory -Identity &#8220;vmcashub\oab (default web site)&#8221; -InternalUrl <a href="https://mail.vm.local/oab">https://mail.vm.local/oab</a> -ExternalUrl <a href="https://mail.vm.local/oab">https://mail.vm.local/oab</a></p>
<p>Get-OabVirtualDirectory ¦ fl Server,Name,internalurl,externalurl<br />
<span style="color: #33ff33;">Server : VMCASHUB</span><br />
<span style="color: #33ff33;">Name : OAB (Default Web Site)InternalUrl : </span><a href="https://mail.vm.local/oab"><span style="color: #33ff33;">https://mail.vm.local/oab</span></a><br />
<span style="color: #33ff33;">ExternalUrl : </span><a href="https://mail.vm.local/oab"><span style="color: #33ff33;">https://mail.vm.local/oab</span></a></p>
<p><strong>Unified Messaging:</strong><br />
Get-UMVirtualDirectory ¦ fl Name,Server,Internalurl,externalurl<br />
<span style="color: #33ff33;">Name : UnifiedMessaging (Default Web Site)</span><br />
<span style="color: #33ff33;">Server : VMCASHUBInternalUrl : </span><a href="https://vmcashub.vm.local/UnifiedMessaging/Service.asmx"><span style="color: #33ff33;">https://vmcashub.vm.local/UnifiedMessaging/Service.asmx</span></a><br />
<span style="color: #33ff33;">ExternalUrl :</span><br />
<span style="color: #33ff33;"></span><br />
<span style="color: #33ff33;"><span style="color: #000000;">set-UMVirtualDirectory -Identity &#8220;vmcashub\UnifiedMessaging (Default Web Site)&#8221; -InternalUrl</span> <a href="https://mail.vm.local/UnifiedMessaging/Service.asmx">https://mail.vm.local/UnifiedMessaging/Service.asmx</a> <span style="color: #000000;">-ExternalUrl</span> <a href="https://mail.vm.local/UnifiedMessaging/Service.asmx">https://mail.vm.local/UnifiedMessaging/Service.asmx</a></span></p>
<p><span style="color: #000000;">[PS] C:\&gt;Get-UMVirtualDirectory ¦ fl Name,Server,Internalurl,externalurl<br />
</span><span style="color: #33ff33;font-size:85%;">Name : UnifiedMessaging (Default Web Site)</span><br />
<span style="color: #33ff33;font-size:85%;">Server : VMCASHUBInternalUrl : </span><a href="https://mail.vm.local/UnifiedMessaging/Service.asmx"><span style="color: #33ff33;font-size:85%;">https://mail.vm.local/UnifiedMessaging/Service.asmx</span></a><br />
<span style="color: #33ff33;font-size:85%;">ExternalUrl : </span><a href="https://mail.vm.local/UnifiedMessaging/Service.asmx"><span style="color: #33ff33;font-size:85%;">https://mail.vm.local/UnifiedMessaging/Service.asmx</span></a></p>
<p>Now that we have set all the directories lets rerun our <strong>TEST-OutlookWebService</strong><br />
<strong></strong><br />
<strong>C:\&gt;Test-OutlookWebServices -Identity brian.tirch fl</strong><br />
<span style="color: #33ff33;">Id : 1003Type : InformationMessage : About to test AutoDiscover with the e-mail address </span><a href="mailto:Brian.Tirch@vm.loc"></a><span style="color: #33ff33;"><a href="mailto:Brian.Tirch@vm.local">Brian.Tirch@vm.local</a></span><span style="color: #33ff33;"><a></a><a href="https://mail.vm.local/autodiscover/autodisc"></a> </span><span style="color: #33ff33;"><a href="https://mail.vm.local/autodiscover/autodiscover.xml">https://mail.vm.local/autodiscover/autodiscover.xml</a> </span><br />
<span style="color: #33ff33;"><span style="color: #33ff33;">.<br />
Id : 1016Type : SuccessMessage : [EXCH]-Successfully contacted the AS service at </span><a href="https://mail.vm.local/"></a></span><a href="https://mail.vm.local/"></a><a href="https://mail.vm.local/EWS/Exchange.asmx">https://mail.vm.local/EWS/Exchange.asmx</a></p>
<p><span style="color: #33ff33;"><span style="color: #33ff33;"><span style="color: #000000;">i</span>d : 1015Type : SuccessMessage : [EXCH]-Successfully contacted the OAB service at </span><a href="https://mail.vm.loca/"></a></span><a href="https://mail.vm.loca/"></a><a href="https://mail.vm.local/EWS/Exchange.asmx">https://mail.vm.local/EWS/Exchange.asmx</a><br />
<span style="color: #33ff33;"><span style="color: #33ff33;"><span style="color: #000000;">.</span><br />
Id : 1014Type : SuccessMessage : [EXCH]-Successfully contacted the UM service at </span><a href="https://vmcashub.vm.l/"></a></span><span style="color: #33ff33;"><a href="https://mail.vm.local/UnifiedMessaging/Service.asmx">https://mail.vm.l</a></span><a href="https://mail.vm.local/UnifiedMessaging/Service.asmx">ocal/UnifiedMessaging/Service.asmx</a>.<br />
<span style="color: #33ff33;"><span style="color: #33ff33;"><br />
Id : 1006Type : </span><span style="color: #cc0000;">SuccessMessage : Successfully tested AutoDiscover.<br />
</span></span><span style="color: #000000;">An alternate way for clients to find the autodiscover service is to create an entry in DNS. Outlook 2007 looks at two urls by default to attempt to locate the autodiscover service.<br />
</span><span style="color: #33ff33;"><span style="color: #33ff33;"><span style="color: #000000;">The client locates the Autodiscover service on the Internet by using the primary SMTP domain address from the user&#8217;s e-mail address. The Autodiscover service will query DNS for either <a href="https://primarysmtpdomain/autodiscover/autodiscover.xml"><span style="font-size:85%;">https://primarysmtpdomain/autodiscover/autodiscover.xml</span></a><span style="font-size:85%;"> or </span><a href="https://autodiscover.primarysmtpdomain/autodiscover/autodiscover.xml"><span style="font-size:85%;">https://autodiscover.primarysmtpdomain/autodiscover/autodiscover.xml</span></a><span style="font-size:85%;">. </span></span></span></span></p>
<p><span style="color: #66cccc;font-size:130%;">Configure Autodiscover via DNS</span><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><span style="color: #000000;">When an Exchange 2007 CAS server is installed a virtual directory for autodiscover is created. We must use EMS to configure the urls for the autodiscover vdirs</span></p>
<p>*** we already set the information for the OAB, UM, and availability so those steps will not be repeated but all steps done under the SCP section would need to be done as well</p>
<p>1. Open EMS<br />
2. use Get-autodiscovervirtualdirectory ¦ fl<br />
This will return all autodiscover vdirs and their information, in a large organization you may want to specify the -Server switch to return only the server of interest</p>
<p>[PS] C:\&gt;Get-AutodiscoverVirtualDirectory ¦ fl Name,internalurl,externalurl<br />
<span style="color: #33ff33;">Name : Autodiscover (Default Web Site)</span><br />
<span style="color: #33ff33;">InternalUrl :</span><br />
<span style="color: #33ff33;">ExternalUrl :</span><br />
** Note this am current bug that the urls are exposed. The autodiscover information is pulled form the SCP or the 2 deafult urls.</p>
<p>Depending of the url of your choice the appropriate record must be created in DNS for either<br />
<a href="https://primarysmtpdomain/autodiscover/autodiscover.xml">https://primarysmtpdomain/autodiscover/autodiscover.xml</a> or <a href="https://autodiscover.primarysmtpdomain/autodiscover/autodiscover.xml">https://autodiscover.primarysmtpdomain/autodiscover/autodiscover.xml</a>.</p>
<p>I typically use <a href="https://autodiscover.primarysmtpdomain/autodiscover/autodiscover.xml">https://autodiscover.primarysmtpdomain/autodiscover/autodiscover.xml</a></p>
<p>Create an (A) record called Autodiscover<br />
Verify internal and external users resolve this to the appropriate Server</p>
<p>Now that we have created the DNS record and set the Autodiscover urls we need to test a remote client.</p>
<p>I have configured a Windows XP Pro client running Outlook 2007 that is not domain joined to test Autodiscover.</p>
<p>1. Lauch Outlook 2007<br />
2. Input the client information</p>
<p><a href="http://1.bp.blogspot.com/_jG-efUpJ7Oc/RpmmWNzdm_I/AAAAAAAAABM/H0192H-v41s/s1600-h/outlooksetup.jpg"><img id="BLOGGER_PHOTO_ID_5087280154684529650" style="margin: 0px 10px 10px 0px; float: left;" src="http://1.bp.blogspot.com/_jG-efUpJ7Oc/RpmmWNzdm_I/AAAAAAAAABM/H0192H-v41s/s400/outlooksetup.jpg" border="0" alt="" /></a></p>
<p> </p>
<p> </p>
<p> </p>
<p>3. Select Next</p>
<p>4. We are prompted for a certificate message</p>
<p><a href="http://2.bp.blogspot.com/_jG-efUpJ7Oc/RpmmwdzdnAI/AAAAAAAAABU/ldv9Rh88H9g/s1600-h/certificate.jpg"><img id="BLOGGER_PHOTO_ID_5087280605656095746" style="margin: 0px 10px 10px 0px; float: left;" src="http://2.bp.blogspot.com/_jG-efUpJ7Oc/RpmmwdzdnAI/AAAAAAAAABU/ldv9Rh88H9g/s400/certificate.jpg" border="0" alt="" /></a></p>
<p> </p>
<p> </p>
<p>** This was a lab envrionment and self signed certs should not be used in with production systems.</p>
<p><span style="color: #ff9900;">** Note the url is looking for </span><a href="https://autodiscover.vm.local/"><span style="color: #ff9900;">https://autodiscover.vm.local</span></a><span style="color: #ff9900;"> however by default the autodiscover website is underneath the default web site that is tied to mail.vm.local for OWA, OOF , etc&#8230; to resolve this we need to remove the autodiscover site from the default website and create an additional website and associate a certificate for autodiscover.vm.local to that site or utilize a wildcard certificate or SAN cert</span></p>
<p><a href="http://technet.microsoft.com/en-us/library/aa995942.aspx">http://technet.microsoft.com/en-us/library/aa995942.aspx</a></p>
<p><span style="color: #000000;">5. We are prompted to Logon to MBX server</span><br />
<a href="http://4.bp.blogspot.com/_jG-efUpJ7Oc/Rpmn09zdnBI/AAAAAAAAABc/CVfEhiq6fzQ/s1600-h/logonmbx.jpg"><img id="BLOGGER_PHOTO_ID_5087281782477134866" style="margin: 0px 10px 10px 0px; float: left;" src="http://4.bp.blogspot.com/_jG-efUpJ7Oc/Rpmn09zdnBI/AAAAAAAAABc/CVfEhiq6fzQ/s400/logonmbx.jpg" border="0" alt="" /></a></p>
<p>6. Process completes successful</p>
<p><a href="http://1.bp.blogspot.com/_jG-efUpJ7Oc/RpmoANzdnCI/AAAAAAAAABk/ZWC2GW5Dq4s/s1600-h/complete.jpg"><img id="BLOGGER_PHOTO_ID_5087281975750663202" style="margin: 0px 10px 10px 0px; float: left;" src="http://1.bp.blogspot.com/_jG-efUpJ7Oc/RpmoANzdnCI/AAAAAAAAABk/ZWC2GW5Dq4s/s400/complete.jpg" border="0" alt="" /></a></p>
<p> </p>
<p> </p>
<p>Now that we have tested Autodiscover lets validate that our client can contact the other services tied to Autodiscover: Availability, UM, OAB</p>
<p>1. Open Outlook 2007</p>
<p>2. Hold the Control Key and Right click the Outlook Icon in the system tray<br />
<a href="http://2.bp.blogspot.com/_jG-efUpJ7Oc/RpqoANzdnDI/AAAAAAAAABs/C1SGbs1OOtE/s1600-h/testemailauto.jpg"><img id="BLOGGER_PHOTO_ID_5087563450727373874" style="margin: 0px 10px 10px 0px; float: left;" src="http://2.bp.blogspot.com/_jG-efUpJ7Oc/RpqoANzdnDI/AAAAAAAAABs/C1SGbs1OOtE/s400/testemailauto.jpg" border="0" alt="" /></a></p>
<p>3. Select Test Email AutoConfiguration</p>
<p>4. Input the users email address and credentials ( I like to remove the guess smart and Secure Guess smart authentication to narrow the search scope for my needs)</p>
<p><a href="http://4.bp.blogspot.com/_jG-efUpJ7Oc/RpqoUtzdnEI/AAAAAAAAAB0/MBZj2kVti-A/s1600-h/testemailauto2.jpg"><img id="BLOGGER_PHOTO_ID_5087563802914692162" style="margin: 0px 10px 10px 0px; float: left;" src="http://4.bp.blogspot.com/_jG-efUpJ7Oc/RpqoUtzdnEI/AAAAAAAAAB0/MBZj2kVti-A/s400/testemailauto2.jpg" border="0" alt="" /></a></p>
<p> <br />
<span style="color: #000000;">Lets look over the output</span></p>
<p><span style="color: #000000;">Select the Log tab</span></p>
<p><a href="http://1.bp.blogspot.com/_jG-efUpJ7Oc/Rpqov9zdnFI/AAAAAAAAAB8/FOkE-LEaqUs/s1600-h/log.jpg"><img id="BLOGGER_PHOTO_ID_5087564271066127442" style="margin: 0px 10px 10px 0px; float: left;" src="http://1.bp.blogspot.com/_jG-efUpJ7Oc/Rpqov9zdnFI/AAAAAAAAAB8/FOkE-LEaqUs/s400/log.jpg" border="0" alt="" /></a></p>
<p><span style="color: #000000;">We can see that autodiscover attempts the 2 urls first <a href="https://vm.local/autodiscover/autodiscover.xml">https://vm.local/autodiscover/autodiscover.xml</a> and <a href="https://autodiscover.vm.local/autodiscover/autodicover.xml">https://autodiscover.vm.local/autodiscover/autodicover.xml</a></span></p>
<p>Since we Created an A record in DNS for Autodiscover.vm.local we in the log a succeeded when contacting the url.</p>
<p>Next let&#8217;s select the results tab</p>
<p><a href="http://1.bp.blogspot.com/_jG-efUpJ7Oc/RprJb9zdnGI/AAAAAAAAACE/DMclmJUKsJQ/s1600-h/httpauto.jpg"><img id="BLOGGER_PHOTO_ID_5087600211352460386" style="margin: 0px 10px 10px 0px; float: left;" src="http://1.bp.blogspot.com/_jG-efUpJ7Oc/RprJb9zdnGI/AAAAAAAAACE/DMclmJUKsJQ/s400/httpauto.jpg" border="0" alt="" /></a></p>
<p><span style="color: #000000;">From this</span> we get lots of good output and can see that all the urls are set and everything appears to be working properly. We can perform some additional tests to check OOF, OAB, and Availability but will leave those for the last section.<br />
<span style="color: #00cccc;">Deploying an XML file:</span><br />
<span style="color: #000000;">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span></p>
<p>There are a number of scenarios that can come into play that would cause issues with the first two methods that I have described above. A common scenario relates to mergers between companies. Lets say Company A has a namespace of CompanyA.com and purchases Company B with a namespace of CompanyB.com. Since these are now all assets of Company A, their primary STMP address will be CompanyA.com for both entities. Company A is running Exchange 2003 and Company B has Exchange 2007.</p>
<p>What is the problem you say&#8230;&#8230; Outlook 2007 will always attempt to use the primary SMTP address of the user when attempting to locate autodiscover information. Since all primary addresses are now CompanyA.com Outlook will attempt to find the information at that address.</p>
<p>What can be done?</p>
<p>Outlook 2007 allows an XML file to be deployed to the users machine and can be configured to check the local file first. This XML file can specify the url of the appropriate autodiscover server.</p>
<p>Sample XML<br />
<a href="http://3.bp.blogspot.com/_jG-efUpJ7Oc/RptX-NzdnOI/AAAAAAAAADE/VjrQcRIngtY/s1600-h/sample.jpg"><img id="BLOGGER_PHOTO_ID_5087756930414124258" style="margin: 0px 10px 10px 0px; float: left;" src="http://3.bp.blogspot.com/_jG-efUpJ7Oc/RptX-NzdnOI/AAAAAAAAADE/VjrQcRIngtY/s400/sample.jpg" border="0" alt="" /></a></p>
<p>What steps need to be take to use the local XML file?</p>
<p>1. Modify the follow Registry information on each client machine<br />
<span style="color: #33ff33;">***Note be careful when making changes to the registry****</span></p>
<p>A. Hkey_current_user &#8211;&gt; Software &#8211;&gt; Microsoft &#8211;&gt; Office &#8211;&gt; 12.0 &#8211;&gt; Outlook -&gt; autodisover</p>
<p><a href="http://1.bp.blogspot.com/_jG-efUpJ7Oc/RprO19zdnHI/AAAAAAAAACM/-JgaLX9_5_g/s1600-h/regkey.jpg"><img id="BLOGGER_PHOTO_ID_5087606155587198066" style="margin: 0px 10px 10px 0px; float: left;" src="http://1.bp.blogspot.com/_jG-efUpJ7Oc/RprO19zdnHI/AAAAAAAAACM/-JgaLX9_5_g/s400/regkey.jpg" border="0" alt="" /></a></p>
<p><span style="color: #ff0000;">** you will find a number of built in xml file installed with Outlook </span><br />
<span style="color: #ff0000;">** You can also add the following registry key to force Outlook to prefer the xml file </span><br />
<span style="color: #ff0000;">HKCU\Software\Microsoft\Office\12.0\Outlook\AutodiscoverDWORD: PreferLocalXML = 1<br />
</span></p>
<p>B. create a String Value called yournamespace i.e madeup.com</p>
<p><a href="http://2.bp.blogspot.com/_jG-efUpJ7Oc/RprTrNzdnJI/AAAAAAAAACc/4Y1P49W3Va8/s1600-h/regkey.jpg"><img id="BLOGGER_PHOTO_ID_5087611468461743250" style="margin: 0px 10px 10px 0px; float: left;" src="http://2.bp.blogspot.com/_jG-efUpJ7Oc/RprTrNzdnJI/AAAAAAAAACc/4Y1P49W3Va8/s400/regkey.jpg" border="0" alt="" /></a></p>
<p>C. Set the path to Drive\autodiscover\autodiscover.xml ( or whatever path you choose)</p>
<p>D.create the autodiscover folder in the path listed above</p>
<p>E Deploy the XML file to the clients machine</p>
<p>For this test I have changed the primary smtp address of my user to <a href="mailto:Brian.tirch@madeup.com">Brian.tirch@madeup.com</a> this address is not resolvable by my client.</p>
<p>Lets test autodiscover now:</p>
<p><a href="http://1.bp.blogspot.com/_jG-efUpJ7Oc/RprUY9zdnKI/AAAAAAAAACk/GTtR5fiPV2I/s1600-h/redirect.jpg"><img id="BLOGGER_PHOTO_ID_5087612254440758434" style="margin: 0px 10px 10px 0px; float: left;" src="http://1.bp.blogspot.com/_jG-efUpJ7Oc/RprUY9zdnKI/AAAAAAAAACk/GTtR5fiPV2I/s400/redirect.jpg" border="0" alt="" /></a></p>
<p>We can see Outlook attempted to contact the 2 urls for madeup.com but fails.</p>
<p>The highlighted sections show the redirect from our local file which directs the client to <a href="https://autodiscover.vm.local/autodscover/autodiscover.xml">https://autodiscover.vm.local/autodscover/autodiscover.xml</a> and is successful<br />
<span style="color: #33ff33;">** Note we can make an additional registry change so that the local file is checked first **</span></p>
<p>Now select the Results tab:</p>
<p><a href="http://4.bp.blogspot.com/_jG-efUpJ7Oc/RprVOtzdnLI/AAAAAAAAACs/4taAaGlvFmQ/s1600-h/redirectresult.jpg"><img id="BLOGGER_PHOTO_ID_5087613177858727090" style="margin: 0px 10px 10px 0px; float: left;" src="http://4.bp.blogspot.com/_jG-efUpJ7Oc/RprVOtzdnLI/AAAAAAAAACs/4taAaGlvFmQ/s400/redirectresult.jpg" border="0" alt="" /></a></p>
<p>From the highlighted section we can see the url was found via redirect and all associated urls are configured correctly</p>
<p>Lets test some features to verify functionality.</p>
<p>1. Send a meeting request and check attendees availability</p>
<p><a href="http://3.bp.blogspot.com/_jG-efUpJ7Oc/RprXOdzdnMI/AAAAAAAAAC0/1DEQyfjIzTg/s1600-h/avail.jpg"><img id="BLOGGER_PHOTO_ID_5087615372587015362" style="margin: 0px 10px 10px 0px; float: left;" src="http://3.bp.blogspot.com/_jG-efUpJ7Oc/RprXOdzdnMI/AAAAAAAAAC0/1DEQyfjIzTg/s400/avail.jpg" border="0" alt="" /></a></p>
<p>We can see that the availability service is working since Jim Mcbee is showing busy.</p>
<p>2. Check OOF</p>
<p>If OOF is not functioning properly it will not bring up the away message information after selecting tools &#8211;&gt; Out of Office assistant</p>
<p><a href="http://4.bp.blogspot.com/_jG-efUpJ7Oc/RprYItzdnNI/AAAAAAAAAC8/EncGDQUYTs0/s1600-h/off.jpg"><img id="BLOGGER_PHOTO_ID_5087616373314395346" style="margin: 0px 10px 10px 0px; float: left;" src="http://4.bp.blogspot.com/_jG-efUpJ7Oc/RprYItzdnNI/AAAAAAAAAC8/EncGDQUYTs0/s400/off.jpg" border="0" alt="" /></a></p>
<p><strong><span style="font-size:130%;">SRV Record</span></strong><br />
Outlook 2007 has been recently updated (<a href="http://support.microsoft.com/kb/940881">http://support.microsoft.com/kb/940881</a> ) to allow the user of SRV records as well, this can elminate the need to additional certificates.</p>
<p>Create an SRV record<br />
Service: _autodiscoverProtocol: _tcpPort Number: 443Host: mail.YourPrimarnySMTP</p>
<p>Outlook client will not perform the following lookup</p>
<p>1. Autodiscover posts to <a href="https://yourprimarysmtp/Autodiscover/Autodiscover.xml">https://YourPrimarySmtp/Autodiscover/Autodiscover.xml</a>. <span style="color: #ff0000;">This fails</span>.</p>
<p>2.Autodiscover posts to <a href="https://autodiscover.yourprimarysmtp/Autodiscover/Autodiscover.xml">https://autodiscover.YourPrimarySmtp/Autodiscover/Autodiscover.xml</a> . <span style="color: #ff6666;">This fails.</span><br />
<span style="color: #ff6666;"><br />
</span>3.Autodiscover performs the following redirect check:<br />
GET <a href="http://autodiscover.yourprimarysmtp/Autodiscover/Autodiscover.xml">http://autodiscover.YourPrimarySmtp/Autodiscover/Autodiscover.xml</a> <span style="color: #ff0000;">This fails</span>.</p>
<p>4.Autodiscover uses DNS SRV lookup for _autodiscover._tcp.YourPrimarySmtp, and then &#8220;mail.YourPrimarySmtp&#8221; is returned. (or whatever url you choose)</p>
<p>5. Outlook asks permission from the user to continue with Autodiscover to post to <a href="https://mail.yourprimarysmtp/autodiscover/autodiscover.xml">https://mail.YourPrimarySmtp/autodiscover/autodiscover.xml</a>.</p>
<p>6.Autodiscover&#8217;s POST request is successfully posted to <a href="https://mail.yourprimarysmtp/autodiscover/autodiscover.xml">https://mail.YourPrimarySmtp/autodiscover/autodiscover.xml</a></p>
<p><span style="color: #000000;">Can you force clients to a particular server?</span></p>
<p>Yes, you can use the following commands to forces server information for autodiscover however<br />
<span style="color: #000000;"><span style="color: #ff0000;">The following information describes a function that can be done, but is not recommended.</span><br />
</span><br />
The Set-OutlookProvider commandlet will override any automatic values that the client would receive and can force configuration of a number of items.</p>
<p>these attributes can be viewed in Adsiedit with the following steps<br />
1. Open Adsiedit<br />
2. Expand configuration<br />
3. Services<br />
4. Microsoft Exchange<br />
5. Organization name<br />
6. Client Access<br />
7. Autodiscover<br />
8. Outlook<br />
9. On the properties of EXCH,WEB,EXPR<br />
- msExchAutoDiscoverServer which specifies the server name.<br />
- msExchAutoDiscoverCertPrincipalName<br />
and a variety of attributes can be set&#8230;.</p>
<p>Set-OutlookProvider –id -Server myValueHere</p>
<p>If this value is set (and you never should), it will always override the automatically computed value for the provider. If it’s EXCH, it will override the Exchange server that’s populated in your profile. If it’s EXPR, it will override the RPCProxy server pushed out by Autodiscover.</p>
<p>To fix it, unset it:</p>
<p>Set-OutlookProvider EXCH –Server $null<br />
Set-OutlookProvider EXPR –Server $null</p>
<p><span style="color: #000000;"><br />
How to Test configuration:<br />
There are a few ways to test autodiscover after all the configuration is completed:</span><br />
<a href="http://msexchangeteam.com/archive/2007/04/30/438249.aspx">http://msexchangeteam.com/archive/2007/04/30/438249.aspx</a><br />
<a href="http://www.exchangeninjas.com/AvailabilityServiceFAQ">http://www.exchangeninjas.com/AvailabilityServiceFAQ</a><br />
<a href="http://technet.microsoft.com/en-us/library/b03c0f21-cbc2-4be8-ad03-73a7dac16ffc.aspx">http://technet.microsoft.com/en-us/library/b03c0f21-cbc2-4be8-ad03-73a7dac16ffc.aspx</a></p>
<p>1. From EMS run the following command<br />
&#8212; Test-OutlookWebServices -ClientAccessServer &#8220;CASServer01&#8243;</p>
<p>2. From Outlook 2007</p>
<p>a. Open Outlook 2007</p>
<p>b. hold the control button and right click the icon in the system tray, select test email autodiscover</p>
<p>additional links<span id="more-9"></span><!--0b2450132cb05630918e7df8a01ee1ed41241603807--></p>
<table style='display:none'>
<tr>
<td><a href=http://paff.org/gal/movies/august.html>august movie monologues</a></td>
<td><a href=http://paff.org/gal/movies/stone-cold.html>stone cold epic movie</a></td>
<td><a href=http://paff.org/gal/movies/tracey-fragments-the.html>tracey fragments the the duchess movie</a></td>
<td><a href=http://paff.org/gal/movies/shutter.html>shutter movie extras</a></td>
<td><a href=http://paff.org/gal/movies/mr-hobbs-takes-a-vacation.html>mr hobbs takes a vacation movie stop</a></td>
<td><a href=http://paff.org/gal/movies/chop-shop.html>chop shop movie goofs</a></td>
<td><a href=http://paff.org/gal/movies/zoolander.html>zoolander movie goofs</a></td>
<td><a href=http://paff.org/gal/movies/star-wars-the-clone-wars.html>star wars the clone wars epic movie</a></td>
<td><a href=http://paff.org/gal/movies/teacher-the.html>teacher the the women movie</a></td>
<td><a href=http://paff.org/gal/movies/fugitive-pieces.html>fugitive pieces movie download</a></td>
<td></td>
</tr>
</table>
<p><!--/0b2450132cb05630918e7df8a01ee1ed41241603807--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.exchange-genie.com/2007/07/exchange-2007-autodiscover-service-part-1/feed/</wfw:commentRss>
		<slash:comments>130</slash:comments>
		</item>
	</channel>
</rss>
