Integrate Lync 2010 With Exchange 2010 OWA

I am sure that there are a number of articles explaining the process of integrating Lync 2010 with Exchange 2010 OWA, as Lync has been around for a while. I have started playing with Lync only very recently and hence this is more of a bookmark for me when I am at a customer site….

I am sure that there are a number of articles explaining the process of integrating Lync 2010 with Exchange 2010 OWA, as Lync has been around for a while. I have started playing with Lync only very recently and hence this is more of a bookmark for me when I am at a customer site.

There are a number of steps to be done, in the proper order to make the integration a success.

Step 1 is to install few files on the Exchange 2010 CAS server.

If you have more than one CAS, it has to be installed on all of them.

Download OCS 2007 R2 Web Service Provider from here, extract it to C:\Web Service Provider Installer Package. It will have four files.

Extracted Web Services Provider Files

Download OCS 2007 R2 WSP Hotfix from here and save in the same folder.

Download UC Managed API 2.0 Redist (64bit) from here and save in the same folder.

If the CAS server is running on 2008 R2, download OCS 2007 R2 Hotfix (UcmaRedist.msp) from here and save in the same folder. The downloaded file will have the same name as one of the previously downloaded file (UcmaRedist.msp) and hence rename it, say UcmaRedist2008R2Hotfix.

Now that the required files are available locally, install them one by one in the following order.

  1. vcredist_x64.exe
  2. UcmaRedist.msi
  3. UcmaRedist.msp
  4. UcmaRedist2008R2Hotfix.msp, if your CAS is running on 2008 R2
  5. CWAOWASSP.msi
  6. CWAOWASSP.msp
  7. The .Net framework will be installed on a CAS server and hence can be ignored.

The installation will be quick and there won’t be any confirmation window or “finish” button. No server restart is required in between or at the end.

Step 2 is to configure OWA virtual directory for integration.

Run the following commands in the Exchange Shell on the CAS.

$cert = (Get-ExchangeCertificate | where-object {$_.services –like “*iis*” }).Thumbprint

Get Exch 2010 cert thumbprint

Get-OWAVirtualDirectory | Set-OWAVirtualDirectory -InstantMessagingType OCS -InstantMessagingEnabled:$true -InstantMessagingCertificateThumbprint $cert –InstantMessagingServerName lync.exchangemaster.me

Configure owa vdir for integration

Restart IIS by running iisreset /noforce

Step 3 is to configure Lync Server with a new trusted application & pool.

Run the following commands to create a new application pool. You can also use the Lync Topology Builder to create a new app pool.

$siteid = (Get-CsSite).SiteId

New-CsTrustedApplicationPool -Identity mail.exchangemaster.me –Registrar lync.exchangemaster.me –Site $siteid -RequiresReplication $false, where identity has the OwaPoolfqdn (same as what is used in SN of cert), registrar has the lync pool fqdn.



If you use CAS array (as I have done), you will get a warning about missing computer and it can be safely ignored.



Create new trusted app pool for OWA


Run the following command to create a new trusted application.



New-CsTrustedApplication -ApplicationId ExchOWA -TrustedApplicationPoolFqdn mail.exchangemaster.me -Port 5555, where TrustedApplicationPoolFqdn is the fqdn of OWA server and port takes any un-used port.



Enable-CsTopology



New trusted app


That’s it. Login to OWA and you should have IM & presence.

24 Comments

  1. Saththiyan says:

    “Instant Messaging isn’t available right now. the Contact List will appear when the service becomes available”…

    Is Lync IM/Presence working outside OWA? yes its working

  2. Hello, Are these directions the same for Exchange 2010 SP3? Also for my certificate I have read that you need the server FQDN listed in the SAN cert. Is this correct? Also some of your screenshots are not loading.

    1. Rajith Jose Enchiparambil says:

      Hi Alex,

      Steps are same for 2010 SP3. Not sure why the screenshots are not loading. WHether you need server name in cert depends on your setup.

  3. I have installed all components, verified commands, but when i sign into owa, it all looks the same, no im at all

    1. Rajith Jose Enchiparambil says:

      Hi Anand,

      Have you made the changes on both Lync & Exchange?
      You can use snooper to see where the problem is.

      THanks.

  4. If you scroll down the link given by Rajith. You will find what others are downloading you can find the remaining downloads there

    What others are downloading
    OCS 2007 R2 Web Service Provider Hotfix KB 981256› Unified Communications Managed API 2.0 Redist (64 Bit) Hotfix KB 2647091› Microsoft Office Communications Server 2007 R2 Hotfix KB 968802› Unified Communications Managed API 2.0, Core Runtime (64-bit)› Microsoft Lync Server 2010 Mobility Service and Microsoft Lync Server 2010 Autodiscover Service› Office Communications Server 2007 R2 Resource Kit Tools›

    1. Rajith Enchiparambil says:

      Thanks Amit.

  5. “Instant Messaging isn’t available right now. the Contact List will appear when the service becomes available”…

    Im getting the above error when I login to OWA. Have analysed the logs using the Lync Logging tool and it appears my problem may be certificate related.

    please suggest.

    1. Rajith Enchiparambil says:

      Hi Jack,

      Is Lync IM/Presence working outside OWA?

  6. hi,

    Even I am facing the issue which is mentioned above. I am getting only 1 file and no extract file:(. Plz do help me.

    1. Rajith Enchiparambil says:

      Hi Sony,

      I am not sure what you are doing wrong. I have done this a number of times and everything worked perfectly.

  7. Hi Rajith,

    I have downloaded OCS 2007 r2 WEB SERVICE PROVIDER from the link you provided, but I am unable to download all the four files. I got CWAOWASSPMain (10,642 kB)alone.

    Please help in this issue.

    1. Rajith Enchiparambil says:

      Extract that file and you should get four files.

  8. Hi,
    The files that are not installing are
    *Hotfix for the OCS 2007 R2 Web Service Provider:

    *Update Unified Communications Managed API 2.0 Redist (64 Bit) Hotfix KB 2282949:

    It reads

    the upgrade patch cannot be installed by the windows installer service because the program to upgraded may be missing, or the upgrade patch may update a different version of the program. Verify that the program to be upgraded exists on your computer and that you have the correct upgrade patch

  9. Hi Rajith,
    All 3 roles ie mailbox,hub and CAS roles are installed on the same server. and I have added the exchange server to the Lync Trusted Apllication pool also. The files that are not installing are
    *Hotfix for the OCS 2007 R2 Web Service Provider:

    *Update Unified Communications Managed API 2.0 Redist (64 Bit) Hotfix KB 2282949:

    It reads

    the upgrade patch cannot be installed by the windows installer service because the program to upgraded may be missing, or the upgrade patch may update a different version of the program. Verify that the program to be upgraded exists on your computer and that you have the correct upgrade patch

    1. Rajith Enchiparambil says:

      Hi Sweta,

      I can’t find a hotfix with the KB you mentioned, that needs to be installed. The hotfix you need is OCS 2007 R2 Web Service Provider Hotfix KB 981256.
      Check the links in my article.

      Paste the hotfix link you are trying to install.

      Thanks.

  10. To see the presence in OWA we need to install those files right? but I am unable to install those files.

    1. Rajith Enchiparambil says:

      Yes, to configure the presense, those files need to be installed on the CAS and we need a trusted pool and app in Lync.

      Which is the file that is failing to install?

  11. hi Rajith,
    Ya I am running it on the CAS server itself and its 2008 r2 also.
    Thanks for reply.

    1. Rajith Enchiparambil says:

      That is strange.

      Is the issue that you can’t install the files or the presence is not visible in OWA?

  12. I am not able to see presence information in OWA. I am running Exchange server 2010 SP1. while running the

    •Hotfix for the OCS 2007 R2 Web Service Provider:

    •Update Unified Communications Managed API 2.0 Redist (64 Bit) Hotfix KB 2282949:

    i am getting error.It reads

    the upgrade patch cannot be installed by the windows installer service because the program to upgraded may be missing, or the upgrade patch may update a different version of the program. Verify that the program to be upgraded exists on your computer and that you have the correct upgrade patch

    1. Rajith Enchiparambil says:

      Hi Sweta,

      I am assuming that you are running the hotfix on the CAS server? Is the CAS running 2008 or R2?
      I have done this a number of times and never had an issue!

      Thanks.

  13. Very cool! Thanks for that useful info =)

    1. Rajith Enchiparambil says:

      No problem Jakob.

Leave a Reply

Your email address will not be published. Required fields are marked *