Script: Integrating OCS and OWA in Exchange Server 2010

Share this:

Hi folks,

I’m working on an integration article between OCS and OWA and during my time writing all those process I realized that a script may be handy for some administrators.

The idea is really simple, the administrator will run the script (I named it as IMEXIntegration.ps1) and the script will list and ask you about the proper OCS Front End/Pool and that’s it. In the background the script will perform all those tasks.

The script in action can be seen in the figure below. The only information required is the OCS Front End/Pool name, and all changes that will be performed on your web.config will be listed as well.

So, I started to create a script for the Exchange side and in the current stage we have the following features:

  • A backup of the current web.config is created (Yes, you will be covered if something goes wrong)
  • The attributes IMCertificateIssuer and IMCertificateSerialNumber will be filled out automatically based on the certificate that you have on your CAS Server
  • A list of all OCS Front End and Pool servers will be listed and you just need to type in the correct pool
  • OWA Virtual Directory is configured automatically
  • IISreset is done at the end (by the way I’m not using /noforce in that script)
  • A folder IMBackup will be created underneath OWA folder and it will contain any changes made by the script on the web.config

What I’m still working on is.. enabling the firewall rules and download and install the Web Service Provider Installer Package and its additional tools.

If you want to help me on this one, please drop me a line and as soon as we have more improvements I will be updating this post.

The script can be found at this address:


Anderson Patricio

Twitter: @apatricio

Technorati : , , , : , , ,
Zooomr : , , ,
Flickr : , , ,

Written by Anderson Patricio

Anderson Patricio

Anderson Patricio is a Canadian MVP in Cloud and Datacenter Management, and Office Server and Services, besides the Microsoft Award he also holds a Solutions Master (MCSM) in Exchange and several other certifications. Anderson has been contributing to the Microsoft Community with articles, tutorials, blog posts, twitter, forums and book reviews. He is a regular contributor here at,, and Anderson (Portuguese).