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” http://www.microsoft.com/downloads/details.aspx?familyid=CA107AB1-63C8-4C6A-816D-17961393D2B8&displaylang=en


 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” http://www.microsoft.com/download/en/details.aspx?id=7557

…and "OCS 2007 R2 Web Service Provider Hotfix KB 981256" http://www.microsoft.com/download/en/details.aspx?id=797

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 fe.lynclog.com -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 “fe1.lynclog.com” 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 ex.lynclog.com -Registrar fe1.lynclog.com -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 ex.lynclog.com -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:



4 comments:

Anonymous said...

Hi,

Can this work with a wildcard certificate?

Thanks

Mark.

JuMz said...

I have the Unified Messaging role installed on the same server as the CAS. Turns out I cannot install the UCMARedist because a newer version is installed.

Is there a way around this and is that specific version required?

Victor said...

Take advice that you need Exchame UM thumbprint when you have enabled UM services. Otherwise, OWA will show "connecting to your contacts list" but never shows. In many cases UM and IIS exchange services are in the same certificate but only when you use UM thumbprint it works, almost works for me :)
Regards

Anonymous said...

If you have 2 CAS with HLB and use the VIP name 4example: owa.contoso.com

The TrustedAppPool must be this name ?
The TrustedApplications are the phisical names of the CAS boxes ?