Showing posts with label OCS. Show all posts
Showing posts with label OCS. Show all posts

Thursday, July 28, 2011

Get OCS Client Version Script

This script uses the OCS 2007 R2 Resource Kit (didn't test with OCS 2007) to query its database and check the user’s version of the client they are using to connect to OCS.

The script reads a list of users to query from the UsersList.csv file and then queries one by one using the DBAnalyze tool from the Resource Kit (please update the path accordingly).



$users = Get-Content D:\UsersList.csv
cd "C:\Program Files\Microsoft Office Communications Server 2007 R2\ResKit"

ForEach ($user in $users)
{
  $strCmd = ".\DBAnalyze.exe"
  $strParams = "/Report:user /User:$user > D:\OCSUserReport.txt"
  $strExec = "$strCmd $strParams"
  Invoke-Expression $strExec

  # Get the user's version
  $strVersion = Select-String -Path D:\OCSUserReport.txt -Pattern "Client version"

  # Print the user's client version
  If ($strVersion -ne $NULL)
  {
    Write-Host "$user $strVersion"
  }
}

cd D:\
Remove-Item D:\OCSUserReport.txt

Friday, May 22, 2009

Office Communicator 2007 R2 Integration Error With Outlook

Two weeks ago, I completely rebuild the Office Communications Server (OCS) 2007 to the R2 version. Since it was only being used as a pilot for 150 users, I deleted everything and started from scratch.

Everything went ok (except for some minor problems with the certificates) except two users that were getting the following error on communicator:



There was a problem connecting to Microsoft Office Outlook. Your Outlook profile is not configured correctly. Contact your system administrator with this information.




Everything was working fine, video conferencing, global address list lookup, everything! Except for this error that just wouldn’t disappear…

On one of the users, the error disappeared a couple hours after he deleted and recreated his Outlook profile. Fair enough since it’s an integration issue with the Outlook profile and we are running on Offline Mode. But I wanted to see if there was another way of getting rid of the error.

So, I went to my HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles and I had a REG_SZ called DefaulProfile with the value Outlook, my default profile.
I went to the user’s machine and she didn’t have such a key! Like me, she only had one Outlook profile, so I don’t understand why she didn’t have that key.

Bottom line, I created that key with her default Outlook profile name and it’s working perfectly now!

Some people also suggest running fixmapi but I never tried so don’t know if that would also fix the problem.


Hope this helps!