<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The UC Corner &#187; OCS</title>
	<atom:link href="http://www.uccorner.com/category/ocs/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.uccorner.com</link>
	<description>Unified Communications: Sharepoint, OCS, mobile communications and collaboration.</description>
	<lastBuildDate>Fri, 15 Jul 2011 09:31:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Populate contacts list in Communicator with LCSAddContacts.WSF</title>
		<link>http://www.uccorner.com/126/ocs/populate-contacts-list-in-communicator-with-lcsaddcontacts-wsf/</link>
		<comments>http://www.uccorner.com/126/ocs/populate-contacts-list-in-communicator-with-lcsaddcontacts-wsf/#comments</comments>
		<pubDate>Fri, 04 Jun 2010 12:33:27 +0000</pubDate>
		<dc:creator>Audun M. Solheim</dc:creator>
				<category><![CDATA[OCS]]></category>
		<category><![CDATA[OCS 2007 R2]]></category>
		<category><![CDATA[Office Communicator]]></category>
		<category><![CDATA[contacts]]></category>
		<category><![CDATA[groups]]></category>
		<category><![CDATA[MOC]]></category>
		<category><![CDATA[populate]]></category>
		<category><![CDATA[reskit]]></category>

		<guid isPermaLink="false">http://www.uccorner.com/?p=126</guid>
		<description><![CDATA[<p>Often, it can be a good idea to pre-populate Communicator (MOC) in an Office Communications Server 2007 R2 before end users start to use MOC. That way they&#8217;ll not be met with an &#8220;empty&#8221; contact list when they log on to MOC. For example, you might want to populate a user&#8217;s contact list with a [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.uccorner.com/wp-content/uploads/2010/06/contacts.png"></a>Often, it can be a good idea to pre-populate Communicator (MOC) in an Office Communications Server 2007 R2 before end users start to use MOC. That way they&#8217;ll not be met with an &#8220;empty&#8221; contact list when they log on to MOC. For example, you might want to populate a user&#8217;s contact list with a group containing the members of the department the user belongs to. It&#8217;s rather easy to use LCSAddContacts.WSF to accomplish this, but I wanted to automate the process based on AD security groups, not only which OU the users/contacts belong to. I am doing all these commands from C:\Program Files\Microsoft Office Communications Server 2007 R2\ResKit\WMI Samples for simplicity.</p>
<ol>
<li>First, I need to list all the users in the AD Group containing the contacts, using the DN (Distinguished Name) of the group:<br />
<strong>dsget group &#8220;CN=SomeGroup,OU=SomeOuAlso,OU=SomeOU,DC=domain,DC=com&#8221; -members -expand &gt; members.txt<br />
</strong></li>
<li>Then, I need to get the msRTCSIP-PrimaryUserAddress for these contacts:<br />
<strong>for /F &#8220;delims=&#8221; %x in (&#8216;type members.txt&#8217;) do (dsquery * %x –l -attr msRTCSIP -PrimaryUserAddress &gt;&gt; contacts.txt)<br />
</strong>Now I have a list over the contacts that should be populated into the contact list in MOC. The delims= is necessary to read the full lines also if there are spaces. The -l attribute is needed to get only the attribute, not also the name of the attribute for each line. If contacts.txt exists, make sure it&#8217;s empty at the script does not overwrite the file, but only appends new lines.</li>
<li>Now I need to get the users that should get these contacts:<br />
<strong>dsget group &#8220;CN=SomeOtherGroup,OU=SomeOtherOU,OU=SomeOU,DC=domain,DC=com&#8221; -members -expand &gt; userlist.txt<br />
</strong></li>
<li>Then, I need to get the msRTCSIP-PrimaryUserAddress for these users:<br />
<strong>for /F &#8220;delims=&#8221; %x in (&#8216;type userlist.txt&#8217;) do (dsquery * %x -l -attr msRTCSIP-PrimaryUserAddress &gt;&gt; users.txt)<br />
</strong></li>
<li>Let the magic happen:<br />
<strong>cscript LCSAddContacts.WSF /usersfile:users.txt /contactsfile:contacts.txt /contactsgroup:&#8221;My group&#8221;</strong></li>
</ol>
<p>This would be a lot easier if the users and/or the contacts could be picked from a OU (or even manually enter the sip adresseses to users.txt or contacts.txt), but in a real-world scenario you might want to create MOC Contact groups based on AD groups.</p>
<p>Result:</p>
<p><a href="http://www.uccorner.com/wp-content/uploads/2010/06/contacts.png"><img title="contacts in MOC Communicator" src="http://www.uccorner.com/wp-content/uploads/2010/06/contacts.png" alt="" width="364" height="423" /></a></p>
<p>P.S. Existing groups with the same same will not be overwritten, nor will existing contacts in that group. Only new contacts will be added.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.uccorner.com/126/ocs/populate-contacts-list-in-communicator-with-lcsaddcontacts-wsf/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>OCS 2007 R2 now supports Server 2008 R2</title>
		<link>http://www.uccorner.com/107/ocs/ocs-2007-r2-now-supports-server-2008-r2/</link>
		<comments>http://www.uccorner.com/107/ocs/ocs-2007-r2-now-supports-server-2008-r2/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 14:24:39 +0000</pubDate>
		<dc:creator>Audun M. Solheim</dc:creator>
				<category><![CDATA[OCS]]></category>
		<category><![CDATA[OCS 2007 R2]]></category>
		<category><![CDATA[r2]]></category>

		<guid isPermaLink="false">http://www.uccorner.com/?p=107</guid>
		<description><![CDATA[<p>Previously, installing OCS 2007 R2 roles on a server with Windows Server 2008 R2 operating system was not supported. Microsoft has now announced that OCS 2007 R2 finally supports 2008 R2 OS.  It&#8217;s worth to note that the Group Chat Server role still does not support 2008 R2. Upgrading an existing installation to Server 2008 [...]]]></description>
			<content:encoded><![CDATA[<p>Previously, installing OCS 2007 R2 roles on a server with Windows Server 2008 R2 operating system was not supported. Microsoft has now announced that OCS 2007 R2 finally supports 2008 R2 OS.  It&#8217;s worth to note that the Group Chat Server role still does not support 2008 R2. Upgrading an existing installation to Server 2008 R2 is not supported either, so it looks like this support only applies to new OCS 2007 R2 installations.</p>
<p>More info here: <a href="http://support.microsoft.com/default.aspx/kb/982021?p=1">http://support.microsoft.com/default.aspx/kb/982021?p=1</a></p>
<p>It&#8217;s also also worth to note that Server 2008 R2 domain also is supported. If you introduce 2008 R2 domain controllers to an existing domain, you&#8217;ll have to run forest prep again.</p>
<p>More info here: <a href="http://support.microsoft.com/kb/982020">http://support.microsoft.com/kb/982020</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.uccorner.com/107/ocs/ocs-2007-r2-now-supports-server-2008-r2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OCS 2007 R2 Create pool error: Unable to access database file location</title>
		<link>http://www.uccorner.com/50/ocs/ocs-2007-r2-create-pool-error-unable-to-access-database-file-location/</link>
		<comments>http://www.uccorner.com/50/ocs/ocs-2007-r2-create-pool-error-unable-to-access-database-file-location/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 21:10:42 +0000</pubDate>
		<dc:creator>Audun M. Solheim</dc:creator>
				<category><![CDATA[OCS]]></category>
		<category><![CDATA[OCS 2007 R2]]></category>
		<category><![CDATA[cluster]]></category>
		<category><![CDATA[create pool]]></category>
		<category><![CDATA[database file location]]></category>
		<category><![CDATA[r2]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.uccorner.com/?p=50</guid>
		<description><![CDATA[<p>I was setting up a OCS R2 installation when I got this message when creating the pool:</p> <p></p> <p>&#8220;Unable to access database file location&#8221;. Hmm. The disk and folder I specified was there, no doubt about it. The back-end server and the Front End was on different subnets, so at first I thought this was [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.uccorner.com/wp-content/uploads/2010/01/browse.png"></a>I was setting up a OCS R2 installation when I got this message when creating the pool:</p>
<p><a href="http://www.uccorner.com/wp-content/uploads/2010/01/Capture.png"><img class="alignnone size-full wp-image-51" title="Unable to access database file location" src="http://www.uccorner.com/wp-content/uploads/2010/01/Capture.png" alt="" width="391" height="254" /></a></p>
<p>&#8220;Unable to access database file location&#8221;. Hmm. The disk and folder I specified was there, no doubt about it. The back-end server and the Front End was on different subnets, so at first I thought this was a firewall problem. The next step was to check if this was a permissions problem &#8211; gave my user full access on the SQL server, full control on the database file folders, set my user as local admin, gave the SQL Server service account full control one the catalogs &#8211; but no change, still the same error.<span id="more-50"></span></p>
<p>To narrow down the issue I tried to create the database with the dbsetup.wsf. This went without problems, but the database and log files were now on the default partition for SQL Server, and not on the desired partition. Therefore I ran the script specifying the file locations:</p>
<blockquote><p>cscript dbsetup.wsf /sqlserver:SQLSERVER<br />
 /dbpath:f:\rtcdata /logpath:f:\rtclog /dyndbpath:f:\rtcdata /dynlogpath:fx:\rtclog /role:ee<br />
Microsoft (R) Windows Script Host Version 5.6<br />
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.</p>
<p>Connecting to SQL Server on trdbsql2k5adp05<br />
(Database rtcdyn doesn&#8217;t exist.)<br />
Creating database rtcdyn<br />
Failed to create database rtcdyn<br />
Error (<br />
  name:        Error<br />
  description:<br />
  number:      -2147216320<br />
  message:<br />
)</p></blockquote>
<p> Error: Error. Well, not the most describing error message..</p>
<p>Next step was to create a database in SQL Management Studio instead. There I found the cause of the problem: I could not browse and choose my F:-disk as file location. (It was actually possible to specify the F:-disk by just typing it, as there was already some databases created on F:). The reason for this was that this was a SQL Cluster, and the F:-disk was not properly set up for use with the cluster. Now I could successfully create the pool using the default file locations and skipping the F:-disk.</p>
<p>I would have discovered this right away if not the &#8220;Browse&#8221;-button in the Create Pool wizard had been greyed out:</p>
<p> <a href="http://www.uccorner.com/wp-content/uploads/2010/01/browse.png"><img title="browse to file location create pool" src="http://www.uccorner.com/wp-content/uploads/2010/01/browse-300x233.png" alt="" width="300" height="233" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.uccorner.com/50/ocs/ocs-2007-r2-create-pool-error-unable-to-access-database-file-location/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

