Welcome to Community Server Sign in | Join | Help

Updated - PowerShell Script for Retrieving IM from Archiving Database

Following the release of Office Communications Server 2007 Sasa Juratovic posted a PowerShell script  to retrieve user IM conversations form the archiving database.  (http://communicationsserverteam.com/archive/2008/01/14/69.aspx)

With the release of Office Communications Server 2007 R2 there were changes in the archiving database schema allowing the text/html content type for storage of user instant messages.  This schema change caused the previous script to only report the first message in a conversation when reporting against an OCS R2 archiving database.  An updated script that will account for this additional content type that works for retrieving instant messages from both the OCS 2007 and OCS 2007 R2 archiving database schemas has been posted.

The updated script can be found at: http://communicationsserverteam.com/files/555/download.aspx

--Nick Smith

MCS Senior Consultant

Published Monday, September 28, 2009 8:42 AM by ocsteam
Filed Under: ,

Comments

 

gallwapa said:

This script doesn't work properly for me - it has an error parsing the results due to some   in the log.

At least it grabs the raw xml, but the report should be nice :-)
September 30, 2009 11:02 AM
 

pulberg said:

I added a where clause to the sql to search a specific date range, it work but errors out when it runs into a " ", any idea about how to work around this?
November 17, 2009 2:19 PM
 

DScott93111 said:

This is fantastic, what a time saver. If someone could write something that allowed for "between this date and this date" that would really help too.
December 22, 2009 12:46 PM
 

starpc said:

Has anyone gotten this to work on Windows 7 with Powershell 2.0?  It successfully pulls all the data to im.xml, however upon parsing I get a error: it has an error parsing the results due to some  
February 18, 2010 12:02 PM
Anonymous comments are disabled
Powered by Community Server, by Telligent Systems