Outlook 2007 Logon Prompt on Exchange 2007

When using Outlook 2007 with Exchange 2007 some of our users would get prompted to login to the client access server. Clicking cancel would still allow them in their mailbox with what appeared to be all functionality. However the prompt would return after a few minutes. This was very annoying as you can imagine. After some web searching I was able to find the problem a long with a solution.

First open up Exchange 2007 powershell. We’ll check on the problem and verify it is the same as well as fix it from here.

Run the following command.
[PS] C:\Windows\System32>Get-ClientAccessServer | fl

Name : EXCH03
OutlookAnywhereEnabled : False
AutoDiscoverServiceCN : exch03
AutoDiscoverServiceClassName : ms-Exchange-AutoDiscover-Service
AutoDiscoverServiceInternalUri : https://exch03.company.com/Autodiscover/Autodiscover.xml
AutoDiscoverServiceGuid : 77378f46-2c66-4aa9-a6a6-3e7a48b19596
AutoDiscoverSiteScope : {DownTown}
IsValid : True
OriginatingServer : ADDC01.company.com
ExchangeVersion : 0.1 (8.0.535.0)
DistinguishedName : CN=EXCH03,CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administ
rative Groups,CN=PHE,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=company,D
C=com
Identity : EXCH03
Guid : 341169c4-dd14-47b2-b3e6-01ca8653dfbb
ObjectCategory : company.com/Configuration/Schema/ms-Exch-Exchange-Server
ObjectClass : {top, server, msExchExchangeServer}
WhenChanged : 4/22/2009 10:03:06 AM
WhenCreated : 4/7/2009 10:37:52 AM


Name : EXCH04
OutlookAnywhereEnabled : False
AutoDiscoverServiceCN : EXCH04
AutoDiscoverServiceClassName : ms-Exchange-AutoDiscover-Service
AutoDiscoverServiceInternalUri : https://mail.company.com/autodiscover/autodiscover.xml
AutoDiscoverServiceGuid : 77378f46-2c66-4aa9-a6a6-3e7a48b19596
AutoDiscoverSiteScope : {DownTown}
IsValid : True
OriginatingServer : ADDC01.company.com
ExchangeVersion : 0.1 (8.0.535.0)
DistinguishedName : CN=EXCH04,CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administ
rative Groups,CN=PHE,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=company,D
C=com
Identity : EXCH04
Guid : 4857fd2e-da32-4a7c-a97a-cfb0135d2875
ObjectCategory : company.com/Configuration/Schema/ms-Exch-Exchange-Server
ObjectClass : {top, server, msExchExchangeServer}
WhenChanged : 4/13/2009 12:46:00 PM
WhenCreated : 4/13/2009 10:07:00 AM

You should notice here that our AutoDiscoverServiceInternalUri points to our external dns name for Outlook Web Access. This is our problem. This should be the internal dns name for our client access server. Here is the command to set it to what we want.

[PS] C:\Windows\System32>Set-ClientAccessServer -Identity "EXCH04" -AutodiscoverServiceInternalURI "https://exch04
.company.com/Autodiscover/Autodiscover.xml"
[PS] C:\Windows\System32>

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.