<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>GotSpeechGuy &#187; Speech Connection</title>
	<atom:link href="http://gotspeechguy.com/tag/speech-connection/feed/" rel="self" type="application/rss+xml" />
	<link>http://gotspeechguy.com</link>
	<description>Marshall Harrison&#039;s Lync and WP7 Developer blog</description>
	<lastBuildDate>Sun, 03 Jun 2012 02:45:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='gotspeechguy.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>GotSpeechGuy &#187; Speech Connection</title>
		<link>http://gotspeechguy.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://gotspeechguy.com/osd.xml" title="GotSpeechGuy" />
	<atom:link rel='hub' href='http://gotspeechguy.com/?pushpress=hub'/>
		<item>
		<title>Day to Day Tasks #2</title>
		<link>http://gotspeechguy.com/2012/05/08/day-to-day-tasks-2/</link>
		<comments>http://gotspeechguy.com/2012/05/08/day-to-day-tasks-2/#comments</comments>
		<pubDate>Tue, 08 May 2012 15:01:16 +0000</pubDate>
		<dc:creator>marshallharrison</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Hosting]]></category>
		<category><![CDATA[NextUC]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Speech Connection]]></category>

		<guid isPermaLink="false">https://gotspeechguy.wordpress.com/?p=110</guid>
		<description><![CDATA[As I’ve mentioned before NextUC hosts Lync. Of course after the 60 day free trial we charge for the service. Sometimes we have a need to put a customer on probation by suspending Enterprise Voice (per to peer voice and &#8230; <a href="http://gotspeechguy.com/2012/05/08/day-to-day-tasks-2/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gotspeechguy.com&#038;blog=26914050&#038;post=110&#038;subd=gotspeechguy&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As I’ve mentioned before <a href="http://www.nextuc.com/">NextUC</a> hosts Lync. Of course after the 60 day free trial we charge for the service. Sometimes we have a need to put a customer on probation by suspending Enterprise Voice (per to peer voice and IM still work)&nbsp; or suspended (noting works anymore) a customer.</p>
<p>So I came up with a quick and easy low impact way to suspend a Lync user so that I can lock a user out of Enterprise Voice without changing any dial plans or DIDs on the user. $UPN is the userPrincipalName (i.e. <a href="mailto:mharrison@nextuc.com">mharrison@nextuc.com</a>) of the user. </p>
<p><em>Set-CsUser -DomainController $fqdDomainController -Identity $UPN -AudioVideoDisabled <font>$True</font> -EnterpriseVoiceEnabled <font>$False</font></em> </p>
<p>Then to re-enable the user we just do the opposite </p>
<p><em>Set-CsUser -DomainController $fqdDomainController -Identity $UPN -AudioVideoDisabled <font>$False</font> -EnterpriseVoiceEnabled <font>$True</font> </em></p>
<p>If you need to suspend a whole company (i.e. OU) so that the users can’t login to Lync you can use this command where $distinguisedName is the full LDAP path to the OU:</p>
<p><em>Get-AdUser -Server $fqdDomainController -Filter * -SearchBase $distinguishedName -SearchScope OneLevel | Disable-ADAccount</em></p>
<p>To turn a company back on you use:</p>
<p><em>Get-AdUser -Server $fqdDomainController -Filter * -SearchBase $distinguishedName -SearchScope OneLevel | Enable-ADAccount</em></p>
<p>These two commands basically get all the users (-Filter *) in an OU and pipes it to Enable-ADAccount or Disable-ADAccount. </p>
<p>I hope these tips help and let me know if you have questions or any tips of your own to share.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gotspeechguy.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gotspeechguy.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gotspeechguy.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gotspeechguy.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gotspeechguy.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gotspeechguy.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gotspeechguy.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gotspeechguy.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gotspeechguy.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gotspeechguy.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gotspeechguy.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gotspeechguy.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gotspeechguy.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gotspeechguy.wordpress.com/110/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gotspeechguy.com&#038;blog=26914050&#038;post=110&#038;subd=gotspeechguy&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gotspeechguy.com/2012/05/08/day-to-day-tasks-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/db74a288f716103799d64a0c5cb47b88?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">marshallharrison</media:title>
		</media:content>
	</item>
		<item>
		<title>Problems with Get-ADUser?</title>
		<link>http://gotspeechguy.com/2012/04/11/problems-with-get-aduser/</link>
		<comments>http://gotspeechguy.com/2012/04/11/problems-with-get-aduser/#comments</comments>
		<pubDate>Wed, 11 Apr 2012 15:21:14 +0000</pubDate>
		<dc:creator>marshallharrison</dc:creator>
				<category><![CDATA[Lync]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Speech Connection]]></category>

		<guid isPermaLink="false">https://gotspeechguy.wordpress.com/?p=103</guid>
		<description><![CDATA[Background: I work for a company that hosts Lync. We have a web based portal that allows clients to setup their Lync accounts (creates OU and users, enables for conferencing and enterprise voice etc.). The portal calls a web service &#8230; <a href="http://gotspeechguy.com/2012/04/11/problems-with-get-aduser/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gotspeechguy.com&#038;blog=26914050&#038;post=103&#038;subd=gotspeechguy&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Background:</strong></p>
<p>I work for a company that hosts Lync. We have a web based portal that allows clients to setup their Lync accounts (creates OU and users, enables for conferencing and enterprise voice etc.). The portal calls a web service which then calls a PowerShell script that has functions for dealing with the AD and with Lync.</p>
<p><strong>The Problem:</strong></p>
<p>The portal sometimes kicks off simultaneous calls to the web service that end up running the same backend PowerShell scripts. I make extensive use of logging in the web service for debugging purposes. From the log fragment below you can see that two simultaneous calls were made on separate threads ( [5] &amp; [6] ). The lines in bold are the command lines sent to the PowerShell script and are written out in the line of code that immediately precedes the line to execute the PowerShell script. If you follow the threads you can see that thread [6] returned nothing meaning that the user didn’t exist (problem occurs regardless of if the users exist or not). But thread [5] fails with the “invalid enumeration context” message. If you try to rerun the command line that failed it will work. The problem only occurs with simultaneous calls to the Get-CTUser function. Basically Get-CTUser is a wrapper for the AD PowerShell Get-ADUSer cmdlet.</p>
<p>2012-03-23 13:11:55,404 [5] DEBUG &#8211; Begin GetCTUser<br />
2012-03-23 13:11:55,404 [6] DEBUG &#8211; Begin GetCTUser<br />
2012-03-23 13:11:55,435 [5] INFO  &#8211; Getting user willy@uc.com<br />
2012-03-23 13:11:55,435 [6] INFO  &#8211; Getting user admin@uc.com<br />
2012-03-23 13:11:55,451 [5] DEBUG &#8211; Begin RunScript<br />
2012-03-23 13:11:55,451 [6] DEBUG &#8211; Begin RunScript<br />
2012-03-23 13:12:08,338 [5] DEBUG &#8211; <strong>Get-CTUser -container &#8216;geeks&#8217; -UPN &#8216;willy@uc.com&#8217;</strong><br />
2012-03-23 13:12:08,354 [6] DEBUG &#8211; <strong>Get-CTUser -container &#8216;geeks&#8217; -UPN &#8216;admins@uc.com&#8217;</strong><br />
2012-03-23 13:12:08,479 [6] DEBUG -<br />
2012-03-23 13:12:08,479 [6] DEBUG &#8211; End RunScript<br />
2012-03-23 13:12:08,479 [6] DEBUG &#8211; End GetCTUser<br />
2012-03-23 13:12:08,588 [5] ERROR &#8211; GetCTUser The server has returned the following error: invalid enumeration context.</p>
<p>Some searching of the Internet for “<strong><em>invalid enumeration context</em></strong>” showed up several references to the problem. Most of the references I found were from people that were doing things like porting users so they were dealing with large results sets with hundreds or thousands of users and most of the solutions involved setting a page size but that didn’t always work. In my case I’m only after one user but still the problem seems the same. I can’t verify that it is a bug or not but either way I can’t have my PowerShell scripts sending errors back to the portal.</p>
<p>So after some research I decided to use DirectorySearcher to get the user and this approach seems to be working fine in my testing. The DirectorySearcher is really quite easy to use. Basically all you need to do is setup the LDAP path, tell it how deep to search, add which properties to return then tell it what to search for.</p>
<pre class="csharpcode">function Get-CTUser(
[Parameter(Mandatory = $<span class="kwrd">true</span>)][<span class="kwrd">string</span>]$container,
[Parameter(Mandatory = $<span class="kwrd">true</span>)][<span class="kwrd">string</span>]$upn
)
{
    <span class="kwrd">try</span>
    {
        $Domain = New-Object System.DirectoryServices.DirectoryEntry(<span class="str">"LDAP://ou="</span> + $container + <span class="str">","</span> +  $defaultHostingPath)
        $Searcher = New-Object System.DirectoryServices.DirectorySearcher($Domain)
        $Searcher.PageSize = 200
        $Searcher.SearchScope = <span class="str">"subtree"</span>

        # Setup the filter to only find the one user
        $Searcher.Filter = <span class="str">"(userPrincipalName="</span> + $upn + <span class="str">")"</span>
        # Setup which fields we want to <span class="kwrd">return</span>
        $Attributes = @(<span class="str">"distinguishedName"</span>, <span class="str">"GivenName"</span>, <span class="str">"lastLogon"</span>, <span class="str">"mail"</span>, <span class="str">"Name"</span>, <span class="str">"SamAccountName"</span>, <span class="str">"sn"</span>, <span class="str">"telephoneNumber"</span>, <span class="str">"userAccountControl"</span>, <span class="str">"UserPrincipalName"</span>)
        # Load the fields inthe properties array
        ForEach($Attribute In $Attributes)
        {
            $Searcher.PropertiesToLoad.Add($Attribute) &gt; $Null
        }
        # Execute the search
        $Results = $Searcher.FindAll()
        # Build the reyrn <span class="kwrd">string</span>
        ForEach ($Result <span class="kwrd">in</span> $Results)
        {
            $ret = $ret + <span class="str">"`nDistinguishedName`t:"</span> + $Result.Properties.Item(<span class="str">"distinguishedName"</span>)+ <span class="str">"`n"</span>
            $ret = $ret + <span class="str">"GivenName`t`t:"</span> + $Result.Properties.Item(<span class="str">"GivenName"</span>)+ <span class="str">"`n"</span>
            $ret = $ret + <span class="str">"lastLogon`t`t:"</span> + $Result.Properties.Item(<span class="str">"lastLogon"</span>)+ <span class="str">"`n"</span>
            $ret = $ret + <span class="str">"mail`t`t`t:"</span> + $Result.Properties.Item(<span class="str">"mail"</span>)+ <span class="str">"`n"</span>
            $ret = $ret + <span class="str">"Name`t`t`t:"</span> + $Result.Properties.Item(<span class="str">"Name"</span>)+ <span class="str">"`n"</span>
            $ret = $ret + <span class="str">"SamAccountName`t`t:"</span> + $Result.Properties.Item(<span class="str">"SamAccountName"</span>)+ <span class="str">"`n"</span>
            $ret = $ret + <span class="str">"Surname`t`t`t:"</span> + $Result.Properties.Item(<span class="str">"sn"</span>)+ <span class="str">"`n"</span>
            $ret = $ret + <span class="str">"telephoneNumber`t`t:"</span> + $Result.Properties.Item(<span class="str">"telephoneNumber"</span>)+ <span class="str">"`n"</span>
            $ret = $ret + <span class="str">"userAccountControl`t:"</span> + $Result.Properties.Item(<span class="str">"userAccountControl"</span>)+ <span class="str">"`n"</span>
            $ret = $ret + <span class="str">"UserPrincipalName`t:"</span> + $Result.Properties.Item(<span class="str">"UserPrincipalName"</span>)+ <span class="str">"`n"</span>
        }

        <span class="kwrd">return</span> $ret
    }
    <span class="kwrd">catch</span>
    {
        Throw (<span class="kwrd">new</span>-<span class="kwrd">object</span> Exception(<span class="str">"Exception Get-CTUser: $_"</span>))
    }

}</pre>
<p>The lines of script were I’m building the $ret string is done that way so that I could mimic as close as possible the way that Get-ADUser returns its results. I didn’t want to break anything upstream that parsed the result values.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gotspeechguy.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gotspeechguy.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gotspeechguy.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gotspeechguy.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gotspeechguy.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gotspeechguy.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gotspeechguy.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gotspeechguy.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gotspeechguy.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gotspeechguy.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gotspeechguy.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gotspeechguy.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gotspeechguy.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gotspeechguy.wordpress.com/103/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gotspeechguy.com&#038;blog=26914050&#038;post=103&#038;subd=gotspeechguy&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gotspeechguy.com/2012/04/11/problems-with-get-aduser/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/db74a288f716103799d64a0c5cb47b88?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">marshallharrison</media:title>
		</media:content>
	</item>
		<item>
		<title>Two New Microsoft Lync Server 2010 Jump Starts</title>
		<link>http://gotspeechguy.com/2012/04/10/two-new-microsoft-lync-server-2010-jump-starts/</link>
		<comments>http://gotspeechguy.com/2012/04/10/two-new-microsoft-lync-server-2010-jump-starts/#comments</comments>
		<pubDate>Tue, 10 Apr 2012 15:41:57 +0000</pubDate>
		<dc:creator>marshallharrison</dc:creator>
				<category><![CDATA[Announcements]]></category>
		<category><![CDATA[Lync]]></category>
		<category><![CDATA[Training]]></category>
		<category><![CDATA[Speech Connection]]></category>

		<guid isPermaLink="false">https://gotspeechguy.wordpress.com/?p=100</guid>
		<description><![CDATA[Yep, there are two new Jump Starts for April. 1. Deploying, Configuring and Administering Microsoft Lync Server 2010 Jump Start 2. Planning and Designing a Microsoft Lync Server 2010&#160; Solution Enjoy.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gotspeechguy.com&#038;blog=26914050&#038;post=100&#038;subd=gotspeechguy&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Yep, there are two new Jump Starts for April.</p>
<p>1. <a href="http://mctreadiness.com/MicrosoftCareerConferenceRegistration.aspx?pid=316">Deploying, Configuring and Administering Microsoft Lync Server 2010 Jump Start</a></p>
<p>2. <a href="http://mctreadiness.com/MicrosoftCareerConferenceRegistration.aspx?pid=320">Planning and Designing a Microsoft Lync Server 2010&nbsp; Solution</a></p>
<p>Enjoy.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gotspeechguy.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gotspeechguy.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gotspeechguy.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gotspeechguy.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gotspeechguy.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gotspeechguy.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gotspeechguy.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gotspeechguy.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gotspeechguy.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gotspeechguy.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gotspeechguy.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gotspeechguy.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gotspeechguy.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gotspeechguy.wordpress.com/100/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gotspeechguy.com&#038;blog=26914050&#038;post=100&#038;subd=gotspeechguy&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gotspeechguy.com/2012/04/10/two-new-microsoft-lync-server-2010-jump-starts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/db74a288f716103799d64a0c5cb47b88?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">marshallharrison</media:title>
		</media:content>
	</item>
		<item>
		<title>Speaking at Orlando Code Camp on March 31st</title>
		<link>http://gotspeechguy.com/2012/03/26/speaking-at-orlando-code-camp-on-march-31st/</link>
		<comments>http://gotspeechguy.com/2012/03/26/speaking-at-orlando-code-camp-on-march-31st/#comments</comments>
		<pubDate>Mon, 26 Mar 2012 14:21:26 +0000</pubDate>
		<dc:creator>marshallharrison</dc:creator>
				<category><![CDATA[Code Camp]]></category>
		<category><![CDATA[Lync]]></category>
		<category><![CDATA[Me]]></category>
		<category><![CDATA[OneTug]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Speech Connection]]></category>

		<guid isPermaLink="false">https://gotspeechguy.wordpress.com/?p=97</guid>
		<description><![CDATA[Come out ant hear the &#8220;GotSpeech Guy&#8221; talk about developing speech applications using Windows Workflow. It&#8217;s March again and that means that it is time for the Orlando Code Camp. Every year about this time the Orlando .Net User Group &#8230; <a href="http://gotspeechguy.com/2012/03/26/speaking-at-orlando-code-camp-on-march-31st/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gotspeechguy.com&#038;blog=26914050&#038;post=97&#038;subd=gotspeechguy&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Come out ant hear the &#8220;GotSpeech Guy&#8221; talk about developing speech applications using Windows Workflow.
<p>It&#8217;s March again and that means that it is time for the <a href="http://orlandocodecamp.com/">Orlando Code Camp</a>. Every year about this time the <a href="http://www.onetug.org/Home.aspx">Orlando .Net User Group</a> hosts a code camp. Don&#8217;t know what a code camp is? Well, it&#8217;s a free one day learning event for programing professionals. The code camp focuses on .Net technologies and all of the sessions are presented by members of the development community. Real every day working developers sharing their expertise.
<p>I&#8217;ll be there giving a presentation entitled <strong><em><a href="http://orlandocodecamp.com/Session/Details/132">Administering Lync Using PowerShell</a>. </em></strong>So if you are in the Florida area then register at the link above and come on by.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gotspeechguy.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gotspeechguy.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gotspeechguy.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gotspeechguy.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gotspeechguy.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gotspeechguy.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gotspeechguy.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gotspeechguy.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gotspeechguy.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gotspeechguy.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gotspeechguy.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gotspeechguy.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gotspeechguy.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gotspeechguy.wordpress.com/97/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gotspeechguy.com&#038;blog=26914050&#038;post=97&#038;subd=gotspeechguy&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gotspeechguy.com/2012/03/26/speaking-at-orlando-code-camp-on-march-31st/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/db74a288f716103799d64a0c5cb47b88?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">marshallharrison</media:title>
		</media:content>
	</item>
		<item>
		<title>Off to the Microsoft 2012 Global MVP Summit</title>
		<link>http://gotspeechguy.com/2012/02/25/off-to-the-microsoft-2012-global-mvp-summit/</link>
		<comments>http://gotspeechguy.com/2012/02/25/off-to-the-microsoft-2012-global-mvp-summit/#comments</comments>
		<pubDate>Sat, 25 Feb 2012 14:48:55 +0000</pubDate>
		<dc:creator>marshallharrison</dc:creator>
				<category><![CDATA[Me]]></category>
		<category><![CDATA[MVP]]></category>
		<category><![CDATA[Speech Connection]]></category>

		<guid isPermaLink="false">https://gotspeechguy.wordpress.com/?p=94</guid>
		<description><![CDATA[I leave early tomorrow (2/26) for a week in Bellevue WA. I’ll be attending the Microsoft 2012 MVP Global Summit. A week with my fellow MPVs and the Lync product group. This will be my 6th Summit and it is &#8230; <a href="http://gotspeechguy.com/2012/02/25/off-to-the-microsoft-2012-global-mvp-summit/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gotspeechguy.com&#038;blog=26914050&#038;post=94&#038;subd=gotspeechguy&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I leave early tomorrow (2/26) for a week in Bellevue WA. I’ll be attending the <a href="http://www.2012mvpsummit.com/">Microsoft 2012 MVP Global Summit</a>. A week with my fellow MPVs and the Lync product group. This will be my 6th Summit and it is something that I look forward too each year. Lots of learning and chances to interact with other technologies.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gotspeechguy.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gotspeechguy.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gotspeechguy.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gotspeechguy.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gotspeechguy.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gotspeechguy.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gotspeechguy.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gotspeechguy.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gotspeechguy.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gotspeechguy.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gotspeechguy.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gotspeechguy.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gotspeechguy.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gotspeechguy.wordpress.com/94/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gotspeechguy.com&#038;blog=26914050&#038;post=94&#038;subd=gotspeechguy&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gotspeechguy.com/2012/02/25/off-to-the-microsoft-2012-global-mvp-summit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/db74a288f716103799d64a0c5cb47b88?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">marshallharrison</media:title>
		</media:content>
	</item>
		<item>
		<title>Day to Day Tasks #1</title>
		<link>http://gotspeechguy.com/2012/02/16/day-to-day-tasks-1/</link>
		<comments>http://gotspeechguy.com/2012/02/16/day-to-day-tasks-1/#comments</comments>
		<pubDate>Thu, 16 Feb 2012 18:59:26 +0000</pubDate>
		<dc:creator>marshallharrison</dc:creator>
				<category><![CDATA[Lync]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Speech Connection]]></category>

		<guid isPermaLink="false">https://gotspeechguy.wordpress.com/?p=91</guid>
		<description><![CDATA[I have noticed that there are a lot of PowerShell and Lync tasks that I end up doing quite often in my day to day activities. So I decided to do a blog series on common tasks and this is &#8230; <a href="http://gotspeechguy.com/2012/02/16/day-to-day-tasks-1/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gotspeechguy.com&#038;blog=26914050&#038;post=91&#038;subd=gotspeechguy&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have noticed that there are a lot of PowerShell and Lync tasks that I end up doing quite often in my day to day activities. So I decided to do a blog series on common tasks and this is the first post in the series.</p>
<p>When enabling a user for enterprise voice you need to assign a DID to the user and you don’t want to use one that is already in use. Bit how do you get a list of DIDs in use? Turns out it can be quite easy.&nbsp; The following PowerShell command will give you a list of AD users and their phone numbers.</p>
<p>Get-AdUser -Filter * -Properties OfficePhone | FT UserPrincipalName, OfficePhone </p>
<p>If you want to write this to a file then you can just pipe the output to Out-File like this.</p>
<p>Get-AdUser -Filter * -Properties OfficePhone | FT UserPrincipalName, OfficePhone | <font>Out-File c:\hosting\ListDIDs.txt</font></p>
<p><font>Since</font> this relies on Get-AdUser you will need to make sure the cmdlet is available. You can do that by importing the AD libraries like this:</p>
<p>Import-Module “ActiveDirectory”</p>
<p>As always I hope this helps and please leave me comments if you have any tips of your own.</p>
<p>&nbsp;</p>
<p><font></font></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gotspeechguy.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gotspeechguy.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gotspeechguy.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gotspeechguy.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gotspeechguy.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gotspeechguy.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gotspeechguy.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gotspeechguy.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gotspeechguy.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gotspeechguy.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gotspeechguy.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gotspeechguy.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gotspeechguy.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gotspeechguy.wordpress.com/91/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gotspeechguy.com&#038;blog=26914050&#038;post=91&#038;subd=gotspeechguy&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gotspeechguy.com/2012/02/16/day-to-day-tasks-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/db74a288f716103799d64a0c5cb47b88?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">marshallharrison</media:title>
		</media:content>
	</item>
		<item>
		<title>NextUC Now Integrating With Office 365 UM</title>
		<link>http://gotspeechguy.com/2012/01/27/nextuc-now-integration-with-office-365-um/</link>
		<comments>http://gotspeechguy.com/2012/01/27/nextuc-now-integration-with-office-365-um/#comments</comments>
		<pubDate>Fri, 27 Jan 2012 17:14:05 +0000</pubDate>
		<dc:creator>marshallharrison</dc:creator>
				<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Hosting]]></category>
		<category><![CDATA[NextUC]]></category>
		<category><![CDATA[UM]]></category>
		<category><![CDATA[Speech Connection]]></category>

		<guid isPermaLink="false">https://gotspeechguy.wordpress.com/?p=87</guid>
		<description><![CDATA[As I alluded to in an earlier post, NextUC is now integrating with Office 365 for Exchange and Unified Messaging.  This is a new feature that just went live today though I have been using if for a couple of &#8230; <a href="http://gotspeechguy.com/2012/01/27/nextuc-now-integration-with-office-365-um/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gotspeechguy.com&#038;blog=26914050&#038;post=87&#038;subd=gotspeechguy&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As I alluded to in an <a href="http://gotspeechguy.com/2012/01/24/lync-nextuc-and-office-365/" target="_blank">earlier post</a>, <a href="http://www.nextuc.com/" target="_blank">NextUC</a> is now integrating with <a href="http://www.microsoft.com/en-us/office365/online-software.aspx#fbid=GellgKeRwG2" target="_blank">Office 365</a> for Exchange and Unified Messaging.  This is a new feature that just went live today though I have been using if for a couple of weeks and its been working great. I really believe in the concept of hosting Lync and what it can do to empower small to medium size companies. Its more cost effective than an on premise <a href="http://office.microsoft.com/en-us/communicator-help/video-what-is-lync-2010-VA102056728.aspx">Lync</a> installation and you don’t need a huge support staff to administer <a href="http://office.microsoft.com/en-us/communicator-help/video-what-is-lync-2010-VA102056728.aspx">Lync</a> and support it. Head on over for a free trial.</p>
<p><a href="http://www.nextuc.com/"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="NextUC" src="http://gotspeechguy.files.wordpress.com/2012/01/nextuc.jpg?w=638&h=334" alt="NextUC" width="638" height="334" border="0" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gotspeechguy.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gotspeechguy.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gotspeechguy.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gotspeechguy.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gotspeechguy.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gotspeechguy.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gotspeechguy.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gotspeechguy.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gotspeechguy.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gotspeechguy.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gotspeechguy.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gotspeechguy.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gotspeechguy.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gotspeechguy.wordpress.com/87/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gotspeechguy.com&#038;blog=26914050&#038;post=87&#038;subd=gotspeechguy&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gotspeechguy.com/2012/01/27/nextuc-now-integration-with-office-365-um/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/db74a288f716103799d64a0c5cb47b88?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">marshallharrison</media:title>
		</media:content>

		<media:content url="http://gotspeechguy.files.wordpress.com/2012/01/nextuc.jpg" medium="image">
			<media:title type="html">NextUC</media:title>
		</media:content>
	</item>
		<item>
		<title>Some Video from the 2011 Jacksonville Code Camp</title>
		<link>http://gotspeechguy.com/2012/01/25/some-video-from-the-2011-jacksonville-code-camp/</link>
		<comments>http://gotspeechguy.com/2012/01/25/some-video-from-the-2011-jacksonville-code-camp/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 19:42:28 +0000</pubDate>
		<dc:creator>marshallharrison</dc:creator>
				<category><![CDATA[Code Camp]]></category>
		<category><![CDATA[JaxDug]]></category>
		<category><![CDATA[Me]]></category>
		<category><![CDATA[OneTug]]></category>
		<category><![CDATA[Speech Connection]]></category>

		<guid isPermaLink="false">https://gotspeechguy.wordpress.com/?p=80</guid>
		<description><![CDATA[My friend Russ Fustino did some video recording at the JaxDug 2011 Code Camp last August and just posted the second part of the video which has the GotSpeechGuy included. You can read more about it at Russell’s Blog. &#160; &#8230; <a href="http://gotspeechguy.com/2012/01/25/some-video-from-the-2011-jacksonville-code-camp/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gotspeechguy.com&#038;blog=26914050&#038;post=80&#038;subd=gotspeechguy&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>My friend Russ Fustino did some video recording at the <a href="http://www.linkedin.com/groups/JaxDug-4087355?gid=4087355" target="_blank">JaxDug</a> <a href="http://www.jaxcodecamp.com/" target="_blank">2011 Code Camp</a> last August and just posted the second part of the video which has the <a href="http://gotspeechguy.com/" target="_blank">GotSpeechGuy</a> included. You can read more about it at <a href="http://www.clubfarpoint.com/Forums/blogs/russells_blog/archive/2012/01/25/grapecity-russ-cam-tv-episode-33-jacksonville-code-camp-part-2.aspx" target="_blank">Russell’s Blog</a>.</p>
<p>&nbsp;</p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:1e6f1592-99fc-44ca-a07e-4db2795a56fe" class="wlWriterEditableSmartContent">
<div><span style="text-align:center; display: block;"><a href="http://gotspeechguy.com/2012/01/25/some-video-from-the-2011-jacksonville-code-camp/"><img src="http://img.youtube.com/vi/ZIWF5p6c6cE/2.jpg" alt="" /></a></span></div>
<div style="width:448px;clear:both;font-size:.8em;">Jacksonville Code Camp</div>
</div>
<p>&nbsp;</p>
<p>That’s <a href="http://www.devfish.net/" target="_blank">Joe Healy</a> in the orange shirt and he is probably the greatest Microsoft Developer Evangelist that ever lived. Joe has really grown the Florida developer community and is the main reason we have 5 or 6 code camps every year as well as several SQL Saturdays. Thanks Joe.</p>
<p>The <a href="http://orlandocodecamp.com/" target="_blank">Orlando .NET Code Camp</a> is scheduled for march 31st and I have submitted a session ( Administering Lync Server 2010 using PowerShell) for that. I’ve spoken at the Orlando event several times and they always put on a great event. If you are in or going to be anywhere near to Orlando at the end of March you should add it to your calendar. I’ll provide more details later.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gotspeechguy.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gotspeechguy.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gotspeechguy.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gotspeechguy.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gotspeechguy.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gotspeechguy.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gotspeechguy.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gotspeechguy.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gotspeechguy.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gotspeechguy.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gotspeechguy.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gotspeechguy.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gotspeechguy.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gotspeechguy.wordpress.com/80/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gotspeechguy.com&#038;blog=26914050&#038;post=80&#038;subd=gotspeechguy&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gotspeechguy.com/2012/01/25/some-video-from-the-2011-jacksonville-code-camp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/db74a288f716103799d64a0c5cb47b88?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">marshallharrison</media:title>
		</media:content>
	</item>
		<item>
		<title>Lync, NextUC and Office 365</title>
		<link>http://gotspeechguy.com/2012/01/24/lync-nextuc-and-office-365/</link>
		<comments>http://gotspeechguy.com/2012/01/24/lync-nextuc-and-office-365/#comments</comments>
		<pubDate>Tue, 24 Jan 2012 17:21:25 +0000</pubDate>
		<dc:creator>marshallharrison</dc:creator>
				<category><![CDATA[Hosting]]></category>
		<category><![CDATA[Lync]]></category>
		<category><![CDATA[Me]]></category>
		<category><![CDATA[NectUC]]></category>
		<category><![CDATA[Speech Connection]]></category>

		<guid isPermaLink="false">https://gotspeechguy.wordpress.com/?p=75</guid>
		<description><![CDATA[I’ve now got my NextUC account linked up with Office 365 for Exchange and UM. This is awesome and I really like the way my voice mail is presented in Outlook. I’ve been using this for about 2 weeks now &#8230; <a href="http://gotspeechguy.com/2012/01/24/lync-nextuc-and-office-365/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gotspeechguy.com&#038;blog=26914050&#038;post=75&#038;subd=gotspeechguy&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I’ve now got my <a href="http://www.nextuc.com/" target="_blank">NextUC</a> account linked up with <a href="http://www.microsoft.com/en-us/office365/online-software.aspx#fbid=GellgKeRwG2" target="_blank">Office 365</a> for Exchange and UM. This is awesome and I really like the way my voice mail is presented in Outlook.</p>
<p><a href="http://gotspeechguy.files.wordpress.com/2012/01/nextuc-um.jpg"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="NextUC UM" border="0" alt="NextUC UM" src="http://gotspeechguy.files.wordpress.com/2012/01/nextuc-um_thumb.jpg?w=469&h=246" width="469" height="246"></a></p>
<p>I’ve been using this for about 2 weeks now with no real problems. I’m finding that <a href="http://www.nextuc.com/" target="_blank">NextUC</a> when integrated with <a href="http://www.microsoft.com/en-us/office365/online-software.aspx#fbid=GellgKeRwG2" target="_blank">Office 365</a> handles all of my collaboration needs. I worked on the backend for this integration which was a great learning experience for me as I got familiar with the <a href="http://office.microsoft.com/en-us/communicator-help/video-what-is-lync-2010-VA102056728.aspx" target="_blank">Lync</a> PowerShell cmdlets needed to configure the integration. The more I mess around with <a href="http://office.microsoft.com/en-us/communicator-help/video-what-is-lync-2010-VA102056728.aspx" target="_blank">Lync</a> PowerShell the more I appreciate the effort that Microsoft has put into it. I do almost as much development in PowerShell these days as I do in C# or java.</p>
<p>Since I now have the <a href="http://lync.microsoft.com/en-us/Product/UserInterfaces/Pages/lync-2010-mobile.aspx" target="_blank">Lync Mobile Client</a> on my <a href="http://www.microsoft.com/windowsphone/en-us/features/default.aspx" target="_blank">Windows Phone</a> I have IM and collaboration whereever I go. I love being able to stay in contact and join conferences when I am on the go. If you haven’t downloaded a client for your mobile device (I also have it on my Ipad) then what are you waiting for?</p>
<p>Anyway, this feature should be coming soon for all <a href="http://www.nextuc.com/" target="_blank">NextUC</a> users</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gotspeechguy.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gotspeechguy.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gotspeechguy.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gotspeechguy.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gotspeechguy.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gotspeechguy.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gotspeechguy.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gotspeechguy.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gotspeechguy.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gotspeechguy.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gotspeechguy.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gotspeechguy.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gotspeechguy.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gotspeechguy.wordpress.com/75/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gotspeechguy.com&#038;blog=26914050&#038;post=75&#038;subd=gotspeechguy&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gotspeechguy.com/2012/01/24/lync-nextuc-and-office-365/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/db74a288f716103799d64a0c5cb47b88?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">marshallharrison</media:title>
		</media:content>

		<media:content url="http://gotspeechguy.files.wordpress.com/2012/01/nextuc-um_thumb.jpg" medium="image">
			<media:title type="html">NextUC UM</media:title>
		</media:content>
	</item>
		<item>
		<title>Remote PowerShell and Lync</title>
		<link>http://gotspeechguy.com/2012/01/05/remote-powershell-and-lync/</link>
		<comments>http://gotspeechguy.com/2012/01/05/remote-powershell-and-lync/#comments</comments>
		<pubDate>Thu, 05 Jan 2012 17:10:23 +0000</pubDate>
		<dc:creator>marshallharrison</dc:creator>
				<category><![CDATA[Lync]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Speech Connection]]></category>

		<guid isPermaLink="false">https://gotspeechguy.wordpress.com/?p=67</guid>
		<description><![CDATA[Recently I had a problem with some of my PowerShell functions that call Enable-CsComputer in that things didn’t get enabled as we expected them to. I’m not sure if it was a timing issue or a replication problem but it &#8230; <a href="http://gotspeechguy.com/2012/01/05/remote-powershell-and-lync/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gotspeechguy.com&#038;blog=26914050&#038;post=67&#038;subd=gotspeechguy&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently I had a problem with some of my PowerShell functions that call <a href="http://technet.microsoft.com/en-us/library/gg412815.aspx" target="_blank">Enable-CsComputer</a> in that things didn’t get enabled as we expected them to. I’m not sure if it was a timing issue or a replication problem but it showed up when a client tried to add a custom domain. My PowerShell script run on the Lync SQL Server so the network administrator decided that since he could manually fix the problem by running <a href="http://technet.microsoft.com/en-us/library/gg412815.aspx" target="_blank">Enable-CsComputer</a> on the Front End server that my scripts needed to do the same thing.</p>
<p>So I set about figuring out how to remotely execute something on the FE. As it turns out there are a few ways of doing this but I quickly ran into problems. First I tried using <a href="http://technet.microsoft.com/en-us/library/dd347668.aspx" target="_blank">New-PSSession</a> and <a href="http://technet.microsoft.com/en-us/library/dd347584.aspx" target="_blank">Get-PSSession</a> to open up a remote session on the FE but that ran into some credential issues – it would popup a login window. That approach wouldn’t work as you can’t have login windows when the function is called from a web service like I need to do. It also had a problems in that when you import the Lync module for the remote session not all of the Lync cmdlets are exposed. In fact it turned out to be a very small subset and <a href="http://technet.microsoft.com/en-us/library/gg412815.aspx" target="_blank">Enable-CsComputer</a> wasn’t one of the cmdlets.</p>
<p>I was told that that was to be expected as <a href="http://technet.microsoft.com/en-us/library/gg412815.aspx" target="_blank">Enable-CsComputer</a> isn’t supposed to be run remotely. It is a local command only. Ok, what does that mean to me? It meant that I somehow had to find a way to run it as a local command on the FE. So it was back to the drawing board. I ended up solving my problem using <a href="http://technet.microsoft.com/en-us/library/dd347578.aspx" target="_blank">Invoke-Command</a> though even that had a few hurdles that I had to get over. I still had the credentials issue but that was easily fixed (or so I thought) as shown in the code below. I’ll get back the the credentials stuff in a moment but first this is the code I ended up with.</p>
<p># Remoting variables<br />
$remoteUserName = &#8220;GotSpeechGuy\Administrator&#8221;<br />
$remotePassword = &#8220;P@ssw0rd&#8221;<br />
$remoteFE = &#8220;GotSpeechGuyFE01&#8243;</p>
<p>$pass = ConvertTo-SecureString $remotePassword -AsPlainText -Force<br />
$cred = new-object System.Management.Automation.PSCredential($remoteUserName, $pass)</p>
<p>Invoke-Command -ComputerName $remoteFE -Authentication CredSSP -Credential $cred -ScriptBlock { C:\hosting\EnableComputer.ps1 }</p>
<p>All the EnableComputer.ps1 did was load the Lync module then call <a href="http://technet.microsoft.com/en-us/library/gg412815.aspx" target="_blank">Enable-CsComputer</a>. Loading the Lync module is easy done like this -</p>
<p>Import-Module &#8216;C:\Program Files\Common Files\Microsoft Lync Server 2010\Modules\Lync\Lync.psd1&#8242; </p>
<p>During testing I put a Get-CsSipDomain in the script and that worked fine returning a list of the Sip domains. I thought “Cool this is going to work”. But when I put the <a href="http://technet.microsoft.com/en-us/library/gg412815.aspx" target="_blank">Enable-CsComputer</a>in the script and tried to invoke it I got this error:</p>
<p><span style="color:#ff0000;">WARNING: Enable-CsComputer failed.</span></p>
<p><span style="color:#ff0000;">WARNING: Detailed results can be found at</span></p>
<p><span style="color:#ff0000;">&#8220;C:\Users\Administrator.UBERUSEE\AppData\Local\Temp\Enable-CsComputer-8d3bf7e0-9b09-4989-a656-334a9485543c.html&#8221;.</span></p>
<p><span style="color:#ff0000;">Command execution failed: An error occurred when add &#8220;RTCUniversalServerAdmins&#8221; to &#8220;RTC Local Administrators&#8221;.</span> <span style="color:#ff0000;">   + CategoryInfo          : InvalidOperation: (:) [Enable-CsComputer], DeploymentException</span><span style="color:#ff0000;">    + FullyQualifiedErrorId : ProcessingFailed,Microsoft.Rtc.Management.Deployment.ActivateMachineCmdlet</span></p>
<p>Checking the .html error page showed me this:</p>
<p><span style="color:#ff0000;">Error: Active Directory error &#8220;-2147016672&#8243; occurred while searching for domain controllers in domain &#8220;GotSpeechGuy.com&#8221;: &#8220;An operations error occurred. &#8220;</span></p>
<p>More research showed that when running the cmdlets remotely you only get the local admin context on the remote computer. A lot of the Lync cmdlets access AD or another computer and when that happens you get the <a href="http://blogs.msdn.com/b/powershell/archive/2008/06/05/credssp-for-second-hop-remoting-part-i-domain-account.aspx" target="_blank">dreaded 2-hop authentication problem</a>.</p>
<p>Luckily for me <a href="http://technet.microsoft.com/en-us/library/dd347578.aspx" target="_blank">Invoke-Command</a>has an –Authentication  parameter which I set to CredSSP but that left a few more steps to complete the process as I still needed to enable CredSSP on the servers. That was pretty straight forward as all it took was to delegate the users credentials from the client to the server.</p>
<p>On the FE I ran these commands:</p>
<p>Enable-WsManCredSSP –Role Server</p>
<p>Enable-WsManCredSSP –Role Server </p>
<p>Enable-WsManCredSSP –DelegateComputer * -Role Client</p>
<p>Then on the SQL Server where the PowerShell scripts reside I ran this:</p>
<p>Enable-WsManCredSSP –Role Client –DelgateComputer *</p>
<p>After going through the steps to enable CredSSP everything started working as it should and we haven’t encountered the problems with <a href="http://technet.microsoft.com/en-us/library/gg412815.aspx" target="_blank">Enable-CsComputer</a>since.</p>
<p>I would like to publicly think the guys at Microsoft and my fellow Lync MVPs who helped me sort al this out. It was a long difficult process bringing all of the pieces together but with their help I got it working.</p>
<p>If you have any questions please feel free to ping me.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gotspeechguy.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gotspeechguy.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gotspeechguy.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gotspeechguy.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gotspeechguy.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gotspeechguy.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gotspeechguy.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gotspeechguy.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gotspeechguy.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gotspeechguy.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gotspeechguy.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gotspeechguy.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gotspeechguy.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gotspeechguy.wordpress.com/67/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gotspeechguy.com&#038;blog=26914050&#038;post=67&#038;subd=gotspeechguy&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gotspeechguy.com/2012/01/05/remote-powershell-and-lync/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/db74a288f716103799d64a0c5cb47b88?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">marshallharrison</media:title>
		</media:content>
	</item>
	</channel>
</rss>
