<?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>Nefaria.com</title>
	<atom:link href="http://nefaria.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://nefaria.com</link>
	<description>☠ ☠ ☠ ☠ ☠ ☠</description>
	<lastBuildDate>Thu, 07 Jan 2010 23:50:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Configuring &#8220;Per User&#8221; licensing in Terminal Services, remotely *without* Remote Desktop access</title>
		<link>http://nefaria.com/2010/01/configuring-per-user-licensing-in-terminal-services-remotely-without-remote-desktop-access/</link>
		<comments>http://nefaria.com/2010/01/configuring-per-user-licensing-in-terminal-services-remotely-without-remote-desktop-access/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 23:48:00 +0000</pubDate>
		<dc:creator>musashi</dc:creator>
				<category><![CDATA[I.T.]]></category>
		<category><![CDATA[Terminal Services]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://nefaria.com/?p=796</guid>
		<description><![CDATA[So the other day I was trying to connect to one of the terminal servers that I manage (for the purpose of this post, we&#8217;ll call the server &#8216;TERMSVR01&#8242;) and I got the following error message and was promptly disconnected:

The remote session was disconnected because there are no Terminal Server client access licenses available for [...]]]></description>
			<content:encoded><![CDATA[<p>So the other day I was trying to connect to one of the terminal servers that I manage (for the purpose of this post, we&#8217;ll call the server &#8216;TERMSVR01&#8242;) and I got the following error message and was promptly disconnected:</p>
<div class="code_block">
The remote session was disconnected because there are no Terminal Server client access licenses available for this computer
</div>
<p>At first glance, this seems as though the server ran out of TS CALS (Terminal Server Client Access Licenses). I was pretty sure that the server was configured to use the &#8220;Per User&#8221; licensing mode. However, a Windows Server 2003 Terminal Server operating in the &#8220;Per User&#8221; licensing mode can&#8217;t run out of licenses to the extent that it prevents the user from connecting (and instead, giving them the aforementioned error message). To the best of my knowledge, it can <em>only</em> do this when it is operating in &#8220;Per Device&#8221; mode. So this was the assumption that I ran with &#8212; that somehow, this server was never configured for &#8220;Per User&#8221; -or- it was, but the setting was either changed, reset, or corrupted somehow.</p>
<p>So, even though I wasn&#8217;t able to connect to TERMSVR01 via Remote Desktop, I <em>was</em> able to &#8220;Manage&#8221; it remotely by doing the following:</p>
<ol>
<li>Open &#8220;Active Directory Users and Computers&#8221; on any Domain Controller</li>
<li>Expand the &#8220;Computers&#8221; node</li>
<li>Right-click TERMSVR01 and select &#8216;Manage&#8217;</li>
</ol>
<p>Now we can do a few things (not many) on the server. One thing I wanted was to have a look at the Event Viewer. There were a few error messages like the following:</p>
<div class="code_block">
Event Type: Information<br />
Event Source: TermService<br />
Event Category: None<br />
Event ID: 1004<br />
Date: 1/5/2010<br />
Time: 6:18:23 PM<br />
User: N/A<br />
Computer: TERMSVR01<br />
Description:<br />
The terminal server cannot issue a client license.  It was unable to issue the license due to a changed (mismatched) client license, insufficient memory, or an internal error. Further details for this problem may have been reported at the client&#8217;s computer.</p>
<p>For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
</p></div>
<p>The more of these I saw, the more confident I was that my assumption was correct &#8212; the server was operating in &#8220;Per Device&#8221; mode and it had finally run out of licenses. I had the following options:</p>
<ol>
<li>Wait for someone to go onsite and reconfigure the licensing mode (easy, but it would have to wait until tomorrow) or&#8230;</li>
<li>Attempt to reconfigure this setting <em>and</em> restart the service remotely (so that the setting takes takes effect) &#8230; all without having &#8220;Remote Desktop&#8221; access to the server.</li>
</ol>
<p>Care to guess which option I chose?  <img src='http://nefaria.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><strong>Step #1: Override the licensing mode setting using group policy</strong></p>
<ol>
<li>Click &#8216;Start&#8217;</li>
<li>Click &#8216;Run&#8217;</li>
<li>Type the following command:
<div class="code_block">
gpedit.msc /gpcomputer:TERMSVR01
</div>
</li>
<li>Click &#8216;OK&#8217;</li>
</ol>
<p>Those four steps open the group policy (remotely) for TERMSVR01. Next we need to actually change the setting:</p>
<ol>
<li>In the left-hand panel, expand &#8220;Administrative Templates&#8221;</li>
<li>Expand &#8220;Windows Components&#8221;</li>
<li>Click on &#8220;Terminal Services&#8221;</li>
<li>Locate the following setting in the right-hand panel:
<div class="code_block">
Set the Terminal Server licensing mode
</div>
</li>
<li>Double-click the aforementioned setting</li>
<li>Change the option (directly below the heading) to &#8220;Enabled&#8221;</li>
<li>Select &#8220;Per User&#8221; from the drop-down box (below the heading: &#8220;Specify the licensing mode for the terminal server&#8221;.)</li>
<li>Click &#8216;OK&#8217;</li>
<li>Close the &#8220;Group Policy Object Editor&#8221; window</li>
</ol>
<p>Great. The licensing mode has been changed but the setting won&#8217;t take effect until the service is restarted. We <em>could</em> open &#8217;services.msc&#8217; and connect to &#8216;TERMSVR01&#8242; by using the &#8216;Connect to another computer &#8230;&#8217; option in the &#8216;Action&#8217; menu. This will allow us to administer almost all running services on TERMSVR01 &#8230; almost all. You&#8217;ll notice immediately that you cannot start/stop the &#8216;Terminal Services&#8217; service from this management console, so we need to find another way to do it.</p>
<p>The easiest way I know to accomplish this task is to use the WMIC command from the command prompt.</p>
<p><strong>Step #2: Restart a remote service using WMIC</strong></p>
<ol>
<li>Open a command prompt</li>
<li>Type the following command (then hit enter) to stop the service:
<div class="code_block">
wmic /node:TERMSVR01 service where &#8220;caption=&#8217;Terminal Services&#8217;&#8221; call StopService
</div>
</li>
<li>Then, type the following command to start the service:
<div class="code_block">
wmic /node:TERMSVR01 service where &#8220;caption=&#8217;Terminal Services&#8217;&#8221; call StartService
</div>
</li>
<li>Close the command prompt</li>
</ol>
<p>If everything was successful (and my assumption about the nature of the problem was correct), then I should be able to connect to the server using the Remote Desktop client. I fired up the client and voilà! It worked perfectly.</p>
]]></content:encoded>
			<wfw:commentRss>http://nefaria.com/2010/01/configuring-per-user-licensing-in-terminal-services-remotely-without-remote-desktop-access/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Photography</title>
		<link>http://nefaria.com/2009/11/new-photography-2/</link>
		<comments>http://nefaria.com/2009/11/new-photography-2/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 19:03:08 +0000</pubDate>
		<dc:creator>musashi</dc:creator>
				<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://nefaria.com/?p=792</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[
<a href="http://nefaria.com/wp-content/gallery/photography/tulips_smallerfilesize.jpg" title="" class="shutterset_singlepic908" >
	<img class="ngg-singlepic ngg-center" src="http://nefaria.com/wp-content/gallery/cache/908__320x240_tulips_smallerfilesize.jpg" alt="tulips_smallerfilesize" title="tulips_smallerfilesize" />
</a>

]]></content:encoded>
			<wfw:commentRss>http://nefaria.com/2009/11/new-photography-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New old photography :-)</title>
		<link>http://nefaria.com/2009/11/new-old-photography/</link>
		<comments>http://nefaria.com/2009/11/new-old-photography/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 13:33:02 +0000</pubDate>
		<dc:creator>musashi</dc:creator>
				<category><![CDATA[Photography]]></category>
		<category><![CDATA[Outdoors]]></category>
		<category><![CDATA[Pictures]]></category>

		<guid isPermaLink="false">http://nefaria.com/?p=784</guid>
		<description><![CDATA[I&#8217;ve finally gotten around to adding some of my older stuff to the photography page. Here&#8217;s the first of more to come:
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve finally gotten around to adding some of my older stuff to the photography page. Here&#8217;s the first of more to come:</p>

<a href="http://nefaria.com/wp-content/gallery/photography/winter_tree_bw-smaller_filesize.jpg" title="" class="shutterset_singlepic907" >
	<img class="ngg-singlepic ngg-center" src="http://nefaria.com/wp-content/gallery/cache/907__320x240_winter_tree_bw-smaller_filesize.jpg" alt="winter_tree_bw-smaller_filesize" title="winter_tree_bw-smaller_filesize" />
</a>

]]></content:encoded>
			<wfw:commentRss>http://nefaria.com/2009/11/new-old-photography/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>New Photography</title>
		<link>http://nefaria.com/2009/10/new-photography/</link>
		<comments>http://nefaria.com/2009/10/new-photography/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 00:26:15 +0000</pubDate>
		<dc:creator>musashi</dc:creator>
				<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://nefaria.com/?p=781</guid>
		<description><![CDATA[Prints are also available from DeviantArt
]]></description>
			<content:encoded><![CDATA[
<a href="http://nefaria.com/wp-content/gallery/photography/leaves-on-bark-small.jpg" title="" class="shutterset_singlepic906" >
	<img class="ngg-singlepic ngg-center" src="http://nefaria.com/wp-content/gallery/cache/906__320x240_leaves-on-bark-small.jpg" alt="Vines on bark" title="Vines on bark" />
</a>

<p>Prints are also available from <a href="http://www.deviantart.com/print/8850840/?itemtypeids=">DeviantArt</a></p>
]]></content:encoded>
			<wfw:commentRss>http://nefaria.com/2009/10/new-photography/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Recipe for IPA v.2 posted</title>
		<link>http://nefaria.com/2009/10/recipe-for-ipa-v-2-posted/</link>
		<comments>http://nefaria.com/2009/10/recipe-for-ipa-v-2-posted/#comments</comments>
		<pubDate>Sat, 17 Oct 2009 15:36:02 +0000</pubDate>
		<dc:creator>musashi</dc:creator>
				<category><![CDATA[Home Brewing]]></category>
		<category><![CDATA[Homebrew]]></category>

		<guid isPermaLink="false">http://nefaria.com/?p=755</guid>
		<description><![CDATA[I&#8217;ve finally gotten around to posting a beer recipe (with the help of some prodding from a friend). You can find it under the &#8216;Homebrewing&#8217; section of the project index -or- alternatively, by clicking here. There&#8217;s only one recipe posted, but I&#8217;ll get around to posting some more later on.
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve finally gotten around to posting a beer recipe (with the help of some prodding from a friend). You can find it under the &#8216;Homebrewing&#8217; section of the project index -or- alternatively, by clicking <a href="http://nefaria.com/project_index/recipes/">here</a>. There&#8217;s only one recipe posted, but I&#8217;ll get around to posting some more later on.</p>
]]></content:encoded>
			<wfw:commentRss>http://nefaria.com/2009/10/recipe-for-ipa-v-2-posted/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
