I have configured autodiscover for exchange 2007 but its not working properly when I try to configure an account side.
I have some concern related to the SAN certificate as its issued to : CORP.EDU.KW not to MAIL.CORP.EDU.KW but as per Microsoft the Set-OutlookProvider command should fix that
Please find below how I configured autodiscover and find the attached file for the logs
Set-ClientAccessServer -Identity CORPCASHUB01 -AutoDiscoverServiceIntern
alUri
https://autodiscover.corp.edu.kw/autodiscover/autodiscover.xmlSet-ClientAccessServer -Identity CORPCASHUB02 -AutoDiscoverServiceIntern
alUri
https://autodiscover.corp.edu.kw/autodiscover/autodiscover.xml==========================
==========
==========
==========
==========
==========
ENABLE-OUTLOOKANYWHERE -SERVER CORPCASHUB01 -EXTERNALHOSTNAME "MAIL.CORP.EDU.KW" -EXTERNALAUTHENTICATIONMET
HOD "BASIC" -SSLOFFLOADING:$FALSE
ENABLE-OUTLOOKANYWHERE -SERVER CORPCASHUB02 -EXTERNALHOSTNAME "MAIL.CORP.EDU.KW" -EXTERNALAUTHENTICATIONMET
HOD "BASIC" -SSLOFFLOADING:$FALSE
==========================
==========
==========
==========
==========
==========
SET-OABVIRTUALDIRECTORY -IDENTITY "CORPCASHUB01\OAB (DEFAULT WEB SITE)" -EXTERNALURL
HTTPS://MAIL.CORP.EDU.KW/OAB -REQUIRESSL:$TRUE
SET-OABVIRTUALDIRECTORY -IDENTITY "CORPCASHUB02\OAB (DEFAULT WEB SITE)" -EXTERNALURL
HTTPS://MAIL.CORP.EDU.KW/OAB -REQUIRESSL:$TRUE
==========================
==========
==========
==========
==========
==========
SET-WEBSERVICESVIRTUALDIRE
CTORY -IDENTITY "CORPCASHUB01\EWS (DEFAULT WEB SITE)" -EXTERNALURL
HTTPS://MAIL.CORP.EDU.KW/EWS/EXCHANGE.ASMX -BASICAUTHENTICATION:$TRUE
SET-WEBSERVICESVIRTUALDIRE
CTORY -IDENTITY CORPCASHUB02\EWS (DEFAULT WEB SITE)" -EXTERNALURL
HTTPS://MAIL.CORP.EDU.KW/EWS/EXCHANGE.ASMX -BASICAUTHENTICATION:$TRUE
==========================
==========
==========
==========
==========
==========
Set-OutlookProvider EXPR -Server 'mail.corp.edu.kw' -CertPrincipalName msstd:mail.corp.edu.kw
==========================
==========
==========
==========
==========
==========
[PS] C:\Documents and Settings\administrator.COR
P>Get-Exch
angeCertif
icate
Thumbprint Services Subject
---------- -------- -------
C916754A527F37CF48577FF814
4E35DCEB99
1958 I..WS CN=corp.edu.kw, O=United Education Corp K.S.C.(Closed), C=KW
206CC9C63997F9400A758DF89F
9F9676AB82
5713 ..... CN=corp.edu.kw, O=Corp, C=KW
707235FD5610DCCA900D428D0C
2C96EE7B90
854C ..... CN=corp.edu.kw, O=Entrust Inc., C=US
A38743F09862CCC43CF1C4F498
AB0ED917A2
29E3 ..... CN=corp.edu.kw, O=Entrust Inc., C=US
4AD96280E5A61612E47705EE92
50BCE61BAE
A44F .P... CN=dc1.corp.edu.kw
7248B01F7ED24462A79B4528FF
C61E965DB7
A450 ....S CN=corpcashub01
==========================
==========
==========
==========
==========
==========
[PS] C:\Documents and Settings\administrator.COR
P>Get-Exch
angeCertif
icate | fl
AccessRules : {System.Security.AccessCon
trol.Crypt
oKeyAccess
Rule, System.Security.AccessCont
rol.Crypto
KeyAccessR
ule, System.
Security.AccessControl.Cry
ptoKeyAcce
ssRule}
CertificateDomains : {corp.edu.kw, mail.corp.edu.kw, autodiscover.corp.edu.kw, corpcashub01.corp.edu.kw, corpcashub02.corp.edu.kw, autodis
cover, mail, mobile.corp.edu.kw, ssbapp.corp.edu.kw, mycorp.corp.edu.kw}
HasPrivateKey : True
IsSelfSigned : False
Issuer : CN=Entrust.net Secure Server Certification Authority, OU=(c) 1999 Entrust.net Limited, OU=
www.entrust.net/CPS incorp. by ref. (limits liab.), O=Entrust.net, C=US
NotAfter : 4/29/2010 1:02:35 AM
NotBefore : 4/29/2008 12:33:18 AM
PublicKeySize : 1024
RootCAType : ThirdParty
SerialNumber : 469D3FE8
Services : IMAP, IIS, SMTP
Status : Valid
Subject : CN=corp.edu.kw, O=United Education Corp K.S.C.(Closed), C=KW
Thumbprint : C916754A527F37CF48577FF814
4E35DCEB99
1958
AccessRules : {System.Security.AccessCon
trol.Crypt
oKeyAccess
Rule, System.Security.AccessCont
rol.Crypto
KeyAccessR
ule}
CertificateDomains : {corp.edu.kw}
HasPrivateKey : True
IsSelfSigned : True
Issuer : CN=corp.edu.kw, O=Corp, C=KW
NotAfter : 4/22/2009 5:29:26 AM
NotBefore : 4/21/2008 11:29:26 PM
PublicKeySize : 1024
RootCAType : Unknown
SerialNumber : 377BA319DF49129F4EA13590A8
76A7E8
Services : None
Status : Invalid
Subject : CN=corp.edu.kw, O=Corp, C=KW
Thumbprint : 206CC9C63997F9400A758DF89F
9F9676AB82
5713
AccessRules : {System.Security.AccessCon
trol.Crypt
oKeyAccess
Rule, System.Security.AccessCont
rol.Crypto
KeyAccessR
ule}
CertificateDomains : {corp.edu.kw}
HasPrivateKey : True
IsSelfSigned : True
Issuer : CN=corp.edu.kw, O=Entrust Inc., C=US
NotAfter : 4/20/2009 6:06:25 PM
NotBefore : 4/20/2008 12:06:25 PM
PublicKeySize : 2048
RootCAType : Unknown
SerialNumber : 5F1248E31D0C7CB04C1BA3729E
3B33A1
Services : None
Status : Invalid
Subject : CN=corp.edu.kw, O=Entrust Inc., C=US
Thumbprint : 707235FD5610DCCA900D428D0C
2C96EE7B90
854C
AccessRules : {System.Security.AccessCon
trol.Crypt
oKeyAccess
Rule, System.Security.AccessCont
rol.Crypto
KeyAccessR
ule}
CertificateDomains : {corp.edu.kw}
HasPrivateKey : True
IsSelfSigned : True
Issuer : CN=corp.edu.kw, O=Entrust Inc., C=US
NotAfter : 4/20/2009 6:01:13 PM
NotBefore : 4/20/2008 12:01:13 PM
PublicKeySize : 2048
RootCAType : Unknown
SerialNumber : 68F4ECA36C89218244357BA0D0
0E6C1A
Services : None
Status : Invalid
Subject : CN=corp.edu.kw, O=Entrust Inc., C=US
Thumbprint : A38743F09862CCC43CF1C4F498
AB0ED917A2
29E3
AccessRules : {System.Security.AccessCon
trol.Crypt
oKeyAccess
Rule, System.Security.AccessCont
rol.Crypto
KeyAccessR
ule}
CertificateDomains : {dc1.corp.edu.kw, corpcashub01.corp.edu.kw, corpcashub02.corp.edu.kw, corpcashub01, corpcashub02, mail.corp.edu.kw, ex
change1.corp.edu.kw}
HasPrivateKey : True
IsSelfSigned : False
Issuer : CN=Corp, DC=corp, DC=edu, DC=kw
NotAfter : 11/28/2009 2:16:45 PM
NotBefore : 11/28/2007 2:06:45 PM
PublicKeySize : 1024
RootCAType : Enterprise
SerialNumber : 57C32868000000000002
Services : POP
Status : Valid
Subject : CN=dc1.corp.edu.kw
Thumbprint : 4AD96280E5A61612E47705EE92
50BCE61BAE
A44F
AccessRules : {System.Security.AccessCon
trol.Crypt
oKeyAccess
Rule, System.Security.AccessCont
rol.Crypto
KeyAccessR
ule, System.
Security.AccessControl.Cry
ptoKeyAcce
ssRule}
CertificateDomains : {corpcashub01, corpcashub01.corp.edu.kw}
HasPrivateKey : True
IsSelfSigned : True
Issuer : CN=corpcashub01
NotAfter : 11/14/2008 3:55:17 PM
NotBefore : 11/14/2007 3:55:17 PM
PublicKeySize : 2048
RootCAType : None
SerialNumber : A28E59E180633FA44A7C7C0C8E
030E32
Services : SMTP
Status : Valid
Subject : CN=corpcashub01
Thumbprint : 7248B01F7ED24462A79B4528FF
C61E965DB7
A450
==========================
==========
==========
==========
==========
==========
--> the certificates are placed on Certificate (local computer)\Personal\Certifi
cate
==========================
==========
==========
==========
==========
==========
[PS] C:\>Test-OwaConnectivity -URL:
https://corpcashub01.corp.edu.kw/owa -MailboxCredential:(get-cr
edential corp\r.abughazaleh) | fl
AuthenticationMethod : FBA
ClientAccessServer :
Scenario : Logon
ScenarioDescription : Log on to Outlook Web Access and verify the response page.
PerformanceCounterName : Logon Latency
Result : Success
MailboxServer :
StartTime : 5/21/2008 10:33:13 AM
Latency : 00:00:00.0312508
SecureAccess : True
Error :
UserName : r.abughazaleh
VirtualDirectoryName :
Url :
https://corpcashub01.corp.edu.kw/owa/UrlType : Unknown
EventType : Success
Port : 0
ConnectionType : Plaintext
==========================
==========
==========
==========
==========
==========
[PS] C:\>Test-OwaConnectivity -URL:
https://corpcashub02.corp.edu.kw/owa -MailboxCredential:(get-cr
edential corp\r.abughazaleh) | fl
AuthenticationMethod : FBA
ClientAccessServer :
Scenario : Logon
ScenarioDescription : Log on to Outlook Web Access and verify the response page.
PerformanceCounterName : Logon Latency
Result : Success
MailboxServer :
StartTime : 5/21/2008 10:33:24 AM
Latency : 00:00:00.0312508
SecureAccess : True
Error :
UserName : r.abughazaleh
VirtualDirectoryName :
Url :
https://corpcashub02.corp.edu.kw/owa/UrlType : Unknown
EventType : Success
Port : 0
ConnectionType : Plaintext
==========================
==========
==========
==========
==========
==========
[PS] C:\>Test-OwaConnectivity -URL:
https://mail.corp.edu.kw/owa -MailboxCredential:(get-cr
edential corp\r.abughazaleh) | fl
AuthenticationMethod : FBA
ClientAccessServer :
Scenario : Logon
ScenarioDescription : Log on to Outlook Web Access and verify the response page.
PerformanceCounterName : Logon Latency
Result : Success
MailboxServer :
StartTime : 5/21/2008 10:33:39 AM
Latency : 00:00:00.0312508
SecureAccess : True
Error :
UserName : r.abughazaleh
VirtualDirectoryName :
Url :
https://mail.corp.edu.kw/owa/UrlType : Unknown
EventType : Success
Port : 0
ConnectionType : Plaintext
==========================
==========
==========
==========
==========
==========
[PS] C:\>Test-WebServicesConnec
tivity -MailboxCredential:(get-cr
edential corp\r.abughazaleh)
CasServer MailboxServer Scenario Result Latency(MS) Error
--------- ------------- -------- ------ ----------- -----
corpcashub0 GetFolder Success 31.25
1
corpcashub0 SyncFolderItems Success 15.63
1
corpcashub0 CreateItem Success 15.63
1
corpcashub0 SyncFolderItems Success 15.63
1
corpcashub0 DeleteItem Success 15.63
1
corpcashub0 SyncFolderItems Success 15.63
1
[PS] C:\>Test-WebServicesConnec
tivity -MailboxCredential:(get-cr
edential corp\r.abughazaleh) -UseAutodiscoverForClientA
ccessServe
r
CasServer MailboxServer Scenario Result Latency(MS) Error
--------- ------------- -------- ------ ----------- -----
corpcashub0 Autodiscover Cl Success 15.63
1 ient Access ser
ver
corp STAFF GetFolder Failure [System.Net.WebException
]: Unable to connect to
the remote server Inner
error [System.Net.Socket
s.SocketException]: A co
nnection attempt failed
because the connected pa
rty did not properly res
pond after a period of t
ime, or established conn
ection failed because co
nnected host has failed
to respond
==========================
==========
==========
==========
==========
==========
[PS] C:\>
Service Connection Point
>> Dn: CN=CORPCASHUB01,CN=Autodis
cover,CN=P
rotocols,C
N=CORPCASH
UB01,CN=Se
rvers,CN=E
xchange Administrative Group (FYDIBOHF23SPDLT),CN=Admin
istrative Groups,CN=CORP,CN=Microsof
t Exchange,CN=Services,CN=Co
nfiguratio
n,DC=corp,
DC=edu,DC=
kw
4> objectClass: top; leaf; connectionPoint; serviceConnectionPoint;
1> name: CORPCASHUB01;
1> serviceBindingInformation:
https://autodiscover.corp.edu.kw/autodiscover/autodiscover.xml;
>> Dn: CN=CORPCASHUB02,CN=Autodis
cover,CN=P
rotocols,C
N=CORPCASH
UB02,CN=Se
rvers,CN=E
xchange Administrative Group (FYDIBOHF23SPDLT),CN=Admin
istrative Groups,CN=CORP,CN=Microsof
t Exchange,CN=Services,CN=Co
nfiguratio
n,DC=corp,
DC=edu,DC=
kw
4> objectClass: top; leaf; connectionPoint; serviceConnectionPoint;
1> name: CORPCASHUB02;
1> serviceBindingInformation:
https://autodiscover.corp.edu.kw/autodiscover/autodiscover.xml;
==========================
==========
==========
==========
==========
==========
[PS] C:\>Get-ClientAccessServer
Name
----
CORPCASHUB01
CORPCASHUB02
==========================
==========
==========
==========
==========
==========
[PS] C:\>Get-ClientAccessServer
| fl
Name : CORPCASHUB01
OutlookAnywhereEnabled : True
AutoDiscoverServiceCN : corpcashub01
AutoDiscoverServiceClassNa
me : ms-Exchange-AutoDiscover-S
ervice
AutoDiscoverServiceInterna
lUri :
https://autodiscover.corp.edu.kw/autodiscover/autodiscover.xmlAutoDiscoverServiceGuid : 77378f46-2c66-4aa9-a6a6-3e
7a48b19596
AutoDiscoverSiteScope : {Default-First-Site-Name}
IsValid : True
OriginatingServer : DC1.corp.edu.kw
ExchangeVersion : 0.1 (8.0.535.0)
DistinguishedName : CN=CORPCASHUB01,CN=Servers
,CN=Exchan
ge Administrative Group (FYDIBOHF23SPDLT),CN=Admin
istrative Gro
ups,CN=CORP,CN=Microsoft Exchange,CN=Services,CN=Co
nfiguratio
n,DC=corp,
DC=edu,DC=
kw
Identity : CORPCASHUB01
Guid : 3abc4708-2570-4bee-92b5-9b
f439fdf4ab
ObjectCategory : corp.edu.kw/Configuration/
Schema/ms-
Exch-Excha
nge-Server
ObjectClass : {top, server, msExchExchangeServer}
WhenChanged : 5/19/2008 5:23:50 PM
WhenCreated : 11/14/2007 3:50:58 PM
Name : CORPCASHUB02
OutlookAnywhereEnabled : True
AutoDiscoverServiceCN : corpcashub02
AutoDiscoverServiceClassNa
me : ms-Exchange-AutoDiscover-S
ervice
AutoDiscoverServiceInterna
lUri :
https://autodiscover.corp.edu.kw/autodiscover/autodiscover.xmlAutoDiscoverServiceGuid : 77378f46-2c66-4aa9-a6a6-3e
7a48b19596
AutoDiscoverSiteScope : {Default-First-Site-Name}
IsValid : True
OriginatingServer : DC1.corp.edu.kw
ExchangeVersion : 0.1 (8.0.535.0)
DistinguishedName : CN=CORPCASHUB02,CN=Servers
,CN=Exchan
ge Administrative Group (FYDIBOHF23SPDLT),CN=Admin
istrative Gro
ups,CN=CORP,CN=Microsoft Exchange,CN=Services,CN=Co
nfiguratio
n,DC=corp,
DC=edu,DC=
kw
Identity : CORPCASHUB02
Guid : de2476d4-d739-482f-8898-8c
d97a919a98
ObjectCategory : corp.edu.kw/Configuration/
Schema/ms-
Exch-Excha
nge-Server
ObjectClass : {top, server, msExchExchangeServer}
WhenChanged : 5/19/2008 5:15:20 PM
WhenCreated : 11/14/2007 4:57:38 PM
==========================
==========
==========
==========
==========
==========
[PS] C:\>Test-OutlookWebService
s -Identity:r.abughazaleh@co
rp.edu.kw |fl
Id : 1003
Type : Information
Message : About to test AutoDiscover with the e-mail address r.abughazaleh@corp.edu.kw.
Id : 1006
Type : Information
Message : The Autodiscover service was contacted at
https://autodiscover.corp.edu.kw/autodiscover/autodiscover.xml.
Id : 1013
Type : Error
Message : When contacting
https://corp.edu.kw/EWS/Exchange.asmx received the error Unable to connect to the remote server
Id : 1013
Type : Error
Message : When contacting
https://corp.edu.kw/EWS/Exchange.asmx received the error A connection attempt failed because the connected
party did not properly respond after a period of time, or established connection failed because connected host has faile
d to respond
Id : 1016
Type : Error
Message : [EXCH]-Error when contacting the AS service at
https://corp.edu.kw/EWS/Exchange.asmx. The elapsed time was 969 millisecond
s.
Id : 1015
Type : Information
Message : [EXCH]-The OAB is not configured for this user.
Id : 1013
Type : Error
Message : When contacting
https://corpcashub01.corp.edu.kw/UnifiedMessaging/Service.asmx received the error The remote server returne
d an error: (404) Not Found.
Id : 1014
Type : Error
Message : [EXCH]-Error when contacting the UM service at
https://corpcashub01.corp.edu.kw/UnifiedMessaging/Service.asmx. The elapsed
time was 31 milliseconds.
Id : 1013
Type : Error
Message : When contacting
https://mail.corp.edu.kw/EWS/EXCHANGE.ASMX received the error The request failed with HTTP status 401: Una
uthorized.
Id : 1016
Type : Error
Message : [EXPR]-Error when contacting the AS service at
https://mail.corp.edu.kw/EWS/EXCHANGE.ASMX. The elapsed time was 171 millis
econds.
Id : 1015
Type : Information
Message : [EXPR]-The OAB is not configured for this user.
Id : 1014
Type : Success
Message : [EXPR]-Successfully contacted the UM service at
https://mail.corp.edu.kw/UnifiedMessaging/Service.asmx. The elapsed time w
as 109 milliseconds.
Id : 1017
Type : Success
Message : [EXPR]-Successfully contacted the RPC/HTTP service at
https://mail.corp.edu.kw/Rpc. The elapsed time was 0 milliseconds.
Id : 1006
Type : Success
Message : The Autodiscover service was tested successfully.
Id : 1021
Type : Information
Message : The following web services generated errors.
As,UM in EXCH
As in EXPR
Please use the prior output to diagnose and correct the errors.
[PS] C:\>
Start Free Trial