Saturday, September 10, 2011

Lync – Exchange 2010 SP1 OWA integration

I just realized I am missing something from my Lync lab deployment: Lync – Exchange 2010 SP1 OWA integration. I will begin by installing the required prerequisites on my Client Access server.
First, I will download and install “OCS 2007 R2 Web Service Provider”

 The files will be unpacked here:

Let’s now install the files in the required order:
  1. vcredist_x64.exe
  2. UcmaRedist.msi
  3. CWAOWASSP.msi
Time for “Unified Communications Managed API 2.0 Redist (64 Bit) Hotfix KB 2282949”

…and "OCS 2007 R2 Web Service Provider Hotfix KB 981256"

At this point, just to be sure I have not missed anything, I will run Windows Updates before proceed further. But of course – Visual C++ update…

Now I can proceed with configuration of OWA virtual directory integration. First I need to obtain the thumbprint of my Exchange certificate by running “Get-ExchangeCertificate | fl” form Exchange Management Shell:

I will get the Identity of my OWA with the command"Get-OwaVirtualDirectory | fl"

…and use it to construct my command:

Set-OwaVirtualDirectory -Identity "EX\owa (Default Web Site)" -InstantMessagingCertificateThumbprint 8F9D12B0B143689DD34D55B04CB063A418124FA3 -InstantMessagingServerName -InstantMessagingType OCS -InstantMessagingEnabled $True"

Where “EX\owa (Default Web Site)” is the Identity I obtained from the previous command, the Thumbprint is from “Get-ExchangeCertificate | fl” and “” is my Lync Standard Edition Server.

Lastly, I will restart the IIS with “iisreset” command.

Now, when I run “Get-OwaVirtualDirectory | fl”, the required parameters are set:

Time for Lync Server configuration.  From Lync Management Shell let’s get the SiteId:

…and construct my command to create Trusted Application Pool – “New-CsTrustedApplicationPool -Identity -Registrar -Site 1 -RequiresReplication $False”

As instructed, I will run “Enable-CsTopology”

Next step – to create New trusted Application. The command will be “New-CsTrustedApplication -ApplicationId ExOwaAccess -TrustedApplicationPoolFqdn -Port 3800” where ApplicationId is a just a name, TrustedApplicationPoolFqdn is the FQDN of the CAS server and Port – an unused port. Lastly, “Enable-CsTopology” as required.

…and test our setup: