Configure EWS, Autodiscover, OWA, OAB, ECP on Exchange Server 2010

 

http://www.mynetworks.me/2010/07/03/configure-ews-autodiscover-owa-oab-ecp-on-exchange-server-2010/

Configure EWS, Autodiscover, OWA, OAB, ECP on Exchange Server 2010

  As you all know that the service connectivity for a mail server is the  main concern to all of us. In Exchange server 2010, the connectivity is as same as Exchange server 2007. Once you migrate or install the new version, this should be tested with the proper credentials and certificate..or else, you will end up with your mail server IP going to the blacklist, because of the wrong pointers and configurations. First of all, do the internal test. Go to your computer start bar, right side where Date and time is showing, you will find the Outlook icon, hold Ctrl + right click on the outlook icon and click “Test Email Auto Configuration…”    Select the “Use AutoDiscover” and click Test..  Above one is a success one..If failed, do the below. The Exchange Web Service (EWS) is the web service that allows access to the Out of Office service. If either the internal or external URL for the EWS is missing or incorrect, OOF will fail and other services may not work as expected. Using Exchange Management Shell, check the URLs assigned to the web service virtual directory using the Get-WebServicesVirtualDirectory command  First goto CAS server  Type the following Power Shell command for EWS (Exchange Web Service)  Copy code Get-WebServicesVirtualDirectory |fl identity,internalurl,externalurl  You will get the result like below Identity    : ECAS1EWS (Default Web Site) InternalUrl : https://mailv.domain.com/EWS/Exchange.asmx ExternalUrl : https://mailv.domain.com/ews/exchange.asmx  Identity    : ECAS2EWS (Default Web Site) InternalUrl : https://mailv.domain.com/EWS/Exchange.asmx ExternalUrl : https://mailv.domain.com/ews/exchange.asmx  If this is not correct, you need to fix it.. This has to be done on Powershell command on the CAS server.  To do that…Copy code  [PS]C:Windowssystem32>Set-WebServicesVirtualDirectory -Identity “ECAS1EWS (Default Web Site)” -InternalUrl https://mail.domain.com/EWS/Exchange.asmx -BasicAuthentication:$true  [PS]C:Windowssystem32>Set-WebServicesVirtualDirectory -Identity “ECAS2EWS (Default Web Site)” -InternalUrl https://mail.domain.com/EWS/Exchange.asmx -BasicAuthentication:$true  [PS] C:Windowssystem32>Get-WebServicesVirtualDirectory |fl identity,internalurl,externalurl Identity    : ECAS1EWS (Default Web Site) InternalUrl : https://mail.domain.com/EWS/Exchange.asmx ExternalUrl : https://mail.domain.com/ews/exchange.asmx Identity    : ECAS2EWS (Default Web Site) InternalUrl : https://mail.domain.com/EWS/Exchange.asmx ExternalUrl : https://mail.domain.com/ews/exchange.asmx Now you can see that the URL has been fixed. This is for Web Services.  Now for Autodiscovery….  [PS] C:Windowssystem32>Get-AutodiscoverVirtualDirectory  To see the settings  [PS] C:Windowssystem32>Get-ClientAccessServer |fl identity,autodiscoverserviceinternaluri  RESULT  [PS] C:Windowssystem32>Get-ClientAccessServer |fl identity,autodiscoverserviceinternaluri Identity                       : ECAS1 AutoDiscoverServiceInternalUri : https://mailv.domain.com/Autodiscover/Autodiscover.xml Identity                       : ECAS2 AutoDiscoverServiceInternalUri : https://mailv.domain.com/Autodiscover/Autodiscover.xml To FIX it.. [PS] C:Windowssystem32>Set-ClientAccessServer -Identity ECAS1 -AutoDiscoverServiceInternalUri https://mail.domain.com/Autodiscover/Autodiscover.xml [PS] C:Windowssystem32>Set-ClientAccessServer -Identity ECAS2 -AutoDiscoverServiceInternalUri https://mail.domain.com/Autodiscover/Autodiscover.xml   Now for the Outlook Web Apps, Exchange Control Panel, Exchange ActiveSync, Offline Address book…you have to go to Exchange Management Console (EMC) Goto one of the CAS server

  1. Open EMC
  2. Goto Server Configuration
  3. Select Client Access
  4. On the Middle top pannel, you can see the CAS server listed.
  5. Select one, on the bottom pannel, you will see like below.

  Select each tab and then right click on the object and change the path as required. Once you done with the first CAS servr, do the same for the second as well. Thats it…you are good to go for production.


Error:

Out of Office doesn’t work. When you try to open it, it returns an error “Your Out of Office settings cannot be displayed, because the server is currently unavailable. try again later.”

When I attempt to download the offline address book, I get a synchronization error: “Task ‘username@domain.com’ reported error (0x8004010f) : ‘The operation failed. An object cannot be found.’ A server (URL) could not be located.”

I’m not sure if its related, but setting up new profiles in Outlook often results in “The connection to Microsoft Exchange is unavailable. Outlook must be online or connected to complete this action.

The Exchange Web Service (EWS) is the web service that allows access to the Out of Office service. If either the internal or external URL for the EWS is missing or incorrect, OOF will fail and other services may not work as expected.

Using Exchange Management Shell, check the URLs assigned to the web service virtual directory using the Get-WebServicesVirtualDirectory command. If either the internal or external URL is missing or incorrect, set them using the Set-WebServicesVirtualDirectory command.

 Get-WebServicesVirtualDirectory

Type or paste this line into Exchange Management Shell to check the EWS URLs

Get-webservicesvirtualdirectory | fl identity,internalurl,externalurl

If the server is configured correctly, the command returns results similar to the following, with URLs in both the InternalUrl and ExternalUrl fields.

Identity : Server_name\EWS (Default Web Site)
InternalUrl :
ExternalUrl :

Set-WebServicesVirtualDirectory cmdlet

If the external URL is missing, set it using the Set-WebServicesVirtualDirectory command:

Set-WebServicesVirtualDirectory -Identity "Server\EWS (Default Web Site)" -InternalURL -ExternalURL -BasicAuthentication:$true

Verify the server names are correct by running the following code again:

Get-WebServicesVirtualDirectory | fl identity,internalurl,externalurl

(Remember to replace the server names in the Set-WebServicesVirtualDirectory command with the correct server names for your organization.).

No Comments

Geef een reactie

Het e-mailadres wordt niet gepubliceerd. Vereiste velden zijn gemarkeerd met *