One of the questions I get asked most frequently about Lync Server 2013 is how to configure the integration with Exchange 2010 OWA so users can use the Outlook Web App for IM because most of the material out there on the web were written for Lync Server 2010 and Exchange Server 2010. The short answer is that nothing has really changed so the instructions provided for Lync Server 2010 would actually work for Lync Server 2013 but since I’ve had to walk through a lot of people on the process, I thought I’d write a blog post to demonstrate it.
Step #1 – Download Microsoft Office Communications Server 2007 R2 Web Service Provider onto CAS Server or Servers
Begin by downloading the following bundle:
Microsoft Office Communications Server 2007 R2 Web Service Provider
https://www.microsoft.com/en-us/download/details.aspx?id=2310
The downloaded file should be named CWAOWASSPMain.msi with a size of 10,642KB:
Step #2 – Download Patches (UcmaRedist.msp and CWAOWASSP.msp)
Next, download the following patch:
Unified Communications Managed API 2.0 Redist (64 Bit) Hotfix KB 2647091
http://www.microsoft.com/en-us/download/details.aspx?id=7557
The downloaded file should be named UcmaRedist.msp with a size of 4,132KB:
Download the following patch:
OCS 2007 R2 Web Service Provider Hotfix KB 981256
http://www.microsoft.com/en-us/download/details.aspx?id=797
The downloaded file should be named CWAOWASSP.msp with a size of 136KB:
Step #3 – Run CWAOWASSPMain.msi
Proceed by running the CWAOWASSPMain.msi file:
Once completed, you will notice the following line item in the Programs and Features:
Step #4 – Run CWAOWASSP.msi, dotnetfx35setup.exe, UcmaRedist.msi, and vcredist_x64x.exe installed by CWAOWASSPMain.msi
What the CWAOWASSPMain.msi file does is actually place 4 files into the folder specified during the wizard so continue by browsing to that folder:
… then install the following:
vcredist_x64.exe
Note the following item in the Programs and Features:
Microsoft Visual C++ 2008 Redistributable – x64 9.0.21022
Depending on whether .NET 3.5 is already installed on the server, you may not need to install the following:
donetfx35setup.exe
Next, install the following:
UcmaRedist.msi
Note that this is a silent install so you won’t see any prompts.
Once completed, you should see the following line item in the Programs and Features:
Microsoft Office Communications Server 2007 R2, Microsoft Unified Communications Managed API 2.0 Core Redist 64-bit
Finally, install the last msi:
CWAOWASSP.msi
Note that this is also a silent install:
If you forgot to run UCMARedist.msi first then you would receive the following message:
Microsoft Office Communicaions Server 2007 R2. Web Service Provider installation requires that Microsoft Unified Communications Managed API 2.0 Core Redist 64-bit is already installed. Either use Setup.exe for installation or run UCMARedist.msi included with the product to install the redistributable.
The following line item will be displayed in the Programs and Features once the install has completed:
Microsoft Office Communications Server 2007 R2, Web Service Provider
Step #5 – Patch the components install in Step #4
Proceed by navigating back to the packages downloaded in Step #2 and patch UcmaRedist.msi from 3.5.6907.0 to Microsoft Office Communciations Server 2007 R2, Microsoft Unified Communications Managed API 2.0 Core Redist 64-bit from 3.5.6907.0 to 3.5.6907.244:
Note the version change to 3.5.6907.244:
Continue by patching CWAOWASSP.msp from 3.5.6907.57 to Microsoft Office Communications Server 2007 R2, Web Service Provider 3.5.6907.202:
Note the version change to 3.5.6907.202:
Step #6 – Configuring the Exchange 2010 CAS Server
With the components installed onto your CAS server or servers, proceed by launching the Exchange Management Shell and identify the certificate that is currently assigned to the IIS server. Run the following cmdlet to get the list of certificates currently used by the Exchange CAS server:
Get-ExchangeCertificate|fl Services,Thumbprint
Note that the Exchange CAS server used in this example actually has multiple certificates for different services but the one we are interested in is the one used for the IIS service:
Copy the Thumprint of the certificate to Notepad.
There will be environments when multiple OWA Virtual Directories are configured on the the Exchange Server so to check simply execute the Get-OWaVirtualDirectory cmdlet and verify that the only returned result is owa (Default Web site):
Get-OWAVirtualDirectory
Another cmdlet we can execute to display the virtual directory mapped to OWA is the following:
Get-OwaVirtualDirectory | Where-Object {$_.ExternalUrl -eq https://webmail.domain.com/owa}
Note that we only have one single OWA Virtual Directory in the example above so we won’t have to specifically target the virtual directory with the -identity switch but I like to be safe so I use the Where-Object {$_.ExternalUrl -eq https://webmail.domain.com/owa} anyways. Continue by executing the following to configure the InstantMessaging parameters of the virtual directory:
Get-OwaVirtualDirectory | Where-Object {$_.ExternalUrl -eq "https://webmail.domain.com/owa"} | Set-OwaVirtualDirectory -InstantMessagingType OCS -InstantMessagingEnabled:$true -InstantMessagingCertificateThumbprint A5202F5ED7E8DC2B294FE41EAF9FECC2DCFBB2E3 -InstantMessagingServerName <FQDNofLyncSTDserverOrPool>
Note that when you execute the following cmdlet, you will see the parameters assigned:
Get-OwaVirtualDirectory | Where-Object {$_.ExternalUrl -eq "https://webmail.domain.com/owa"} | FL Server,Instant*
Step #7 – Configure the Trusted Application Pool
Launch the Lync Server 2013 Topology Builder tool, navigate to Lync Server > Datacenter > Lync Server 2013 > Trusted application servers then right click on the node and create a New Trusted Application Pool…:
The Exchange topology in this example contains 2 CAS servers so I’ll be using the Multiple computer pool option with the webmail URL as the pool FQDN matching the certificate name:
Add the individual CAS server names into the Define the computers in this pool step:
Associate the next hop server as the front end server:
Publish the topology:
Next, verify that the changes are in place by launching the Lync Server Management Shell and executing the following cmdlet:
Get-CsTrustedApplicationPool
Execute the follow cmdlet to verify the computers defined in the pool:
Get-CsTrustedApplicationComputer
With the configuration settings verified, proceed by using the cmdlet New-CsTrustedApplication cmdlet to define a trusted application and associate it to the new trusted application pool.
A free port will need to be identified and then used to assign as the listening port on the Lync server. Jeff Schertz’s Lync 2010 with Exchange 2010 integration (http://blog.schertz.name/2010/11/lync-and-exchange-im-integration/) provides an easy way to determine whether a port is free and that is to use the command:
netstat -a | findstr <port #>
We can use either 5059 as Jeff demonstrates or another one that is free. For the purpose of this example, we’ll use 5059:
With the port identified, execute the following cmdlet to create the new trusted application and associate the CAS array to it:
New-CsTrustedApplication -ApplicationId ExchangeOWA -TrustedApplicationPoolFqdn <casArrayFQDN> -Port 5059
Enable the topology with the following cmdlet:
Enable-CsTopology -v
Once the publishing completes, you can review the logs to ensure there are no unexpected warnings or errors:
That’s it. You should be able to log into Outlook Web App and see your Lync presence at the top right hand corner and your contact list on the left hand pane.
2 comments:
Hello
Do you have any tips for OWA integration when you introduce Exchange 2013 OWA?
2013 will take over webmail and proxy the users to 2010 until the mailboxes are moved.
Should I just add 2013 to the trusted application? Or should I create a legacy url for the 2010 servers and create a second trusted application.
Thank you.
Brian
Hello,
Have you somewhere the source file for the webservice provider KB981256?
The link http://www.microsoft.com/en-us/download/details.aspx?id=797 that you provide does not work any more.
I tried to get it with Microsoft, but impossible.
It would be appreciated if I could download it from your source.
Roberto
Post a Comment