Memorise

Setup Exchange Outlook anywhere or RPC/HTTP S

30% off your entire order at GoDaddy.com!

To use the Exchange Management Shell to configure an external host name for Outlook Anywhere
set-OutlookAnywhere -Server:’CAS01′ -ExternalHostName:’site.contoso.com’
Procedure
Exchange 2007 SP1
To use the Exchange Management Shell to configure the authentication method to be the same for both the /rpc virtual directory in IIS and Outlook 2007
Set-OutlookAnywhere -Name Server01 -DefaultAuthenticationMethod <Basic or NTLM>

 

To use the Exchange Management Shell to configure authentication for Outlook Anywhere
Set-OutlookAnywhere -Name Server01 -ClientAuthenticationMethod Basic
To use the Exchange Management Shell to create a certificate request file
New-ExchangeCertificate -generaterequest -subjectname “dc=com,dc=yourdomain,dc=webmail,o=En Route Solutions Ltd,cn=webmail.yourdomain.com” -domainname webmail.yourdomain.com, yourexchange,yourexchange.yourdoamin.com, autodiscover.yourdomain.com -PrivateKeyExportable $true -path c:certrequest_exch003.txt
use https://192.168.10.200/certsrv
selecet – request new certificate
select – advance then open c:certrequest_exch003.txt using notepad copy the content and past and download the certificate.
To use the Exchange Management Shell to import a certificate
Import-ExchangeCertificate -path New-exchangecert01.cer -friendlyname “webmail YourExchange”
Import-ExchangeCertificate -path C:Usersadministrator.OFFICEDesktopcertificatecert-exchange061108.cer -friendlyname “webmail yourexchange”
To use the Exchange Management Shell to determine the thumbprint of your certificate
Get-ExchangeCertificate -DomainName “yourexchange”
This command will return multiple certificates if there are several certificates that match the host name that you specified. Therefore, make sure that you select the thumbprint of the correct certificate for your request.
9081AB3A19DF3F8511E80A9053D882944CA2AE2F
9AC212D376333E33232A240907878BA06A037D35  …..      DC=it, DC=yourdomain, DC=w…
To use the Exchange Management Shell to assign the certificate to IIS, POP3, and IMAP4
Enable-ExchangeCertificate -thumbprint <certificate-thumbprint> -services “IIS,POP,IMAP”
Enable-ExchangeCertificate -thumbprint 9081AB3A19DF3F8511E80A9053D882944CA2AE2F -services “IIS,POP,IMAP”
Import-ExchangeCertificate -path <certificate file name> -friendlyname “Contoso CAS01” | enable-exchangecertificate -services “IIS,POP,IMAP”
NOTE: troubleshooting from outlook, control+right click on outlook icon on system tray, and run the test email autoconfiguration, and click the log
good Site for testing the connectivity https://www.testexchangeconnectivity.com/
RPCPING – should show the following.
C:Usersadministrator.OFFICE>rpcping -t ncacn_http -s yourexchange.yourdomain.com -o RpcProxy=webmail.yourdomain.com -P “shiraj,yourdomain,*” -H Basic -u NTLM -a connect -F 3

 

when works it shoud say:
Completed 1 calls in 60 ms
16 T/S or 60.000 ms/T The RPC Ping Utility test succeeded.
OR you get error like:
Enter password for RPC/HTTP proxy:
Exception 1722 (0x000006BA)
Number of records is: 2
ProcessID is 6656
System Time is: 11/7/2008 7:38:57:753
Generating component is 14
Status is 0x6BA, 1722
Detection location is 1398
Flags is 0
NumberOfParameters is 2
Long val: 0x4
Long val: 0x6ba
ProcessID is 6656
System Time is: 11/7/2008 7:38:57:753
Generating component is 13
Status is 0x6BA, 1722
Detection location is 1418
Flags is 0
NumberOfParameters is 0
C:Usersadministrator.yourdomain>
How to Use Basic Authentication and SSL to Connect to the Store’s Port
Syntax:
RpcPing –t ncacn_http –s ExchangeMBXServer -o RpcProxy=RpcProxyServer -P “user,domain,password” -I “user,domain,password” -H 1 –F 3 –a connect –u 10 –v 3 –e 6001
How to Use Basic Authentication, SSL, and Mutual Authentication to Connect to the Store’s Port
Syntax:
RpcPing –t ncacn_http –s ExchangeMBXServer -o RpcProxy=RpcProxyServer -P “user,domain,password” -I “user,domain,password” -H 1 –F 3 –a connect –u 10 –v 3 –e 6001 –B msstd:server_certificate_subject
How to use NTLM Authentication and Non-SSL to Connect to DsProxy Service
Syntax :
RpcPing –t ncacn_http –s ExchangeMBXServer -o RpcProxy=RpcProxyServer -P “user,domain,password” -I “user,domain,password” -H 2 –F 2 –a connect –u 10 –v 3 –e 6004
when works it shoud say:
Completed 1 calls in 60 ms
16 T/S or 60.000 ms/T The RPC Ping Utility test succeeded.
If its not working it will give the error and each error means:
Exception 1722 (0x000006BA)
RPC Server is unavailable The RPC service cannot be contacted. You may receive this response because there are problems with the RPC Proxy server (if this is the case, you can use the –E argument to verify that the RPC Proxy server is available), because the service stopped on Exchange 2003 backend server (for example store), because the Exchange 2003 backend server is down, because the ValidPorts registry key does not permit access to this server, because the ValidPorts registry key does not permit this port, because you tried to to access the EMP when it was not published (neither the –e switch or port 593 were available), or because you tried to access UUID when EMP was not published (for example, you used the –a switch without port 593 being available.).
Exception 5 (0x00000005)
Access denied. You receive this response when you have incorrect –P credentials, you have incorrect –I credentials, if the user account is disabled, or if the Mutual Authorization failed. For more details about this response, use the –E argument.

To verify that the CA certificate is published correctly in Active Directory, run the following command

c:>certutil -viewstore “ldap:///CN=RootCA,CN=Certification Authorities,CN=Public Key Services,CN=Services,CN=Configuration,DC=officer,DC=enrout,DC=com?cACertificate?base?objectClass=certificationAuthority”

 

http://msexchangeteam.com/archive/2008/06/20/449053.aspx

[PS] C:WindowsSystem32>

rpcping -t ncacn_http -s yourexchange -o RpcProxy=mail.yourdomain.co.uk -P “Administrator,YourDomain,*” -I “Administrator,YourDomain,*” -H 1 -F 3 -a connect -u 10 -v 3 -e 6004
RpcPing –t ncacn_http –s yourexchange -o RpcProxy=mail.yourdomain.co.uk -P “Administrator,yourdomain,password” -I “Administrator,Wilks-headyourdomainpassword” -H 1 –F 3 –a connect –u 10 –v 3 –B msstd:mail.yourdomain.co.uk
C:UsersAdministrator.yourdomain>rpcping -t ncacn_http -s exchange -o RpcProxy=mail.yourdomain.co.uk -P “Administrator,yourdomain,*” -I “Administrator,yourdomain,*” -H 1 -F 3 -a connect -u 10 -v 3 -e 6004
[PS] C:WindowsSystem32>

[PS] C:WindowsSystem32>Set-OABVirtualDirectory -identity “ExchangeOAB (Default Web Site)” -externalurl https://mail.yourdomain.co.uk/OAB -RequireSSL:$true

[PS] C:WindowsSystem32>

[PS] C:WindowsSystem32>Set-WebServicesVirtualDirectory -identity “EXCHANGEEWS (Default Web Site)” -externalurl https://mail.yourdomain.co.uk/EWS/Exchange.asmx -BasicAuthentication:$True

OutlookAnywhere work internally but don’t work from Externally, this could be problem with IPv6 and DNS. On testing of Outlook connection internally directory services are using TCP/IP and rest using HTTPS. by applying the fix below resolved the problem.

[PS] C:WindowsSystem32>

I fixed the problem by editing the host file in c:windowssystem32driversetc on the 2008 server hosting Exchange:

127.0.0.1           localhost
#::1                 localhost
10.0.x.x             yourexchange
10.0.x.x             yourexchange.internal.FQDN

Notice the hash mark in front of the IPV6 address for the local host and added two entries, the netbios name and the FQDN of the exchange server and its internal IP addresss.
– In IIS changed the Autodiscover folder authentication to Windows Authentication
– Tested the Autodiscover using Test-OutlookWebservices.
[PS] C:WindowsSystem32>Test-OutlookWebServices -Identity Administrator | format-list

– changed OAB settings in Exchange to point to external url.

 

OutlookAnywhere work internally but don’t work from Externally, this could be problem with IPv6 and DNS. On testing of Outlook connection internally directory services are using TCP/IP and rest using HTTPS. by applying the fix below resolved the problem.
[PS] C:WindowsSystem32>
I fixed the problem by editing the host file in c:windowssystem32driversetc on the 2008 server hosting Exchange:
127.0.0.1           localhost
#::1                 localhost
10.0.x.x             ummexc01
10.0.x.x             ummexc01.ummnorva.local
Notice the hash mark in front of the IPV6 address for the local host and added two entries, the netbios name and the FQDN of the exchange server and its internal IP addresss.

OutlookAnywhere work internally but don’t work from Externally, this could be problem with IPv6 and DNS. On testing of Outlook connection internally directory services are using TCP/IP and rest using HTTPS. by applying the fix below resolved the problem.
[PS] C:WindowsSystem32>
I fixed the problem by editing the host file in c:windowssystem32driversetc on the 2008 server hosting Exchange:
127.0.0.1           localhost#::1                 localhost10.0.x.x             ummexc0110.0.x.x             ummexc01.ummnorva.local

Notice the hash mark in front of the IPV6 address for the local host and added two entries, the netbios name and the FQDN of the exchange server and its internal IP addresss.


Categorised as: Microsoft, Networking


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.