Sunday, January 11, 2015

Porting OCS contacts over to Jabber

We are moving from Microsoft Office Communicator 2007 R2 to Cisco Jabber.  The bad news is that we were told that contacts in our OCS will not be migrated to Jabber.  We were asked to re-create our contacts in Jabber.  With 100 over contacts to recreate, I started to look for solution which I can do it at the client’s side but without any luck.

But I do notice that Jabber has the function to import contacts from a XML format specified by Jabber.  Below is the XML format.  More information about the XML structure is explained in

<?xml version="1.0" encoding="utf-8"?>
<gname>Group Name</gname>
<uname>IM Address</uname>
<fname>Display Name</fname>

This gives me the idea to create a simple tool to generate the XML file.  Now the next question is how to export the OCS contacts from the client’s side.  After searching for a while, I find that the easiest way is to do a copy on the OCS group which will copy all the contacts under that group then paste them into notepad and save it as a text file.  I can then use the text file to generate the XML file.

So I created a tool which I named it MigOCS2Jabber.exe.  It will require .Net Framework 3.5 to run which comes with Windows 7. 

You can download a copy of it from  You will need to unzip the executable file before you can use it.

Here is a quick example on how to use the tool.

Right click on the group containing the contacts you want to port over and click on “Copy” from the context menu.


Paste the copied contacts into notepad and save it as a text file.  It is recommended to use the group name as the file name.  This is because the tool will by default use the file name to create the group in Jabber.  Anyway, you can change it in the tool if you want to rename the group name.


Double click on MigOCS2Jabber.exe to start it.


Click on the Browse button, navigate to the folder where you saved the text file and open it.


Click on the Load button to load the contacts into the list box.  By default, the Contacts Group Name will use the file name without the file extension.  You can change the group name if you want to.


Click on the Create button to generate the XML file.  The XML File Location will show the location of the XML file.  It will be in the same folder as the text file.


Start the Jabber client, click on the File menu and click on Import contacts.


Navigate to the folder containing the XML file, select it and click Open.


The contacts in the XML file will be imported into the Jabber client.



I could have just recreate the 100 over contacts and get it done.  But I just enjoy writing this simple tool to make the “recreation” less painful.

1 comment:

Unknown said...

Hi. I imported my contacts from Office Comm but I am not able to chat with any of them. Did I miss a step?