<?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>ben.hamilton.id.au &#187; Terminal Server</title>
	<atom:link href="http://ben.hamilton.id.au/tag/terminal-server/feed" rel="self" type="application/rss+xml" />
	<link>http://ben.hamilton.id.au</link>
	<description>what I find interesting in tech and CRM</description>
	<lastBuildDate>Sun, 13 Nov 2011 21:37:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Command line terminal server</title>
		<link>http://ben.hamilton.id.au/general/command-line-terminal-server?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=command-line-terminal-server</link>
		<comments>http://ben.hamilton.id.au/general/command-line-terminal-server#comments</comments>
		<pubDate>Mon, 12 Oct 2009 01:32:36 +0000</pubDate>
		<dc:creator>Ben Hamilton</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[RDP]]></category>
		<category><![CDATA[Terminal Server]]></category>

		<guid isPermaLink="false">http://ben.hamilton.id.au/?p=185</guid>
		<description><![CDATA[I&#8217;ve just come across a terminal server that wouldn&#8217;t let me log on. Turns out the maximum number of users the terminal server is licensed for has been exceeded. # Thusly, from another machine on the network, we open a &#8230; <a href="http://ben.hamilton.id.au/general/command-line-terminal-server">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p class="winerlinks-enabled"><a name="p0"></a>I&#8217;ve just come across a terminal server that wouldn&#8217;t let me log on. Turns out the maximum number of users the terminal server is licensed for has been exceeded. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/general/command-line-terminal-server#p0">#</a><p class="winerlinks-enabled"><a name="p1"></a>
Thusly, from another machine on the network, we open a command prompt and type<br />
<code>qwinsta /server:&lt;servername&gt;</code> <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/general/command-line-terminal-server#p1">#</a><p class="winerlinks-enabled"><a name="p2"></a>
This will give a list of the terminal server sessions on that server, note the ID number (aka sessionid) as we use them in the following commands. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/general/command-line-terminal-server#p2">#</a><p class="winerlinks-enabled"><a name="p3"></a>
We can reset a session by using<br />
<code>rwinsta &lt;sessionid&gt; /server:&lt;servername&gt;</code> <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/general/command-line-terminal-server#p3">#</a><p class="winerlinks-enabled"><a name="p4"></a>
or we can disconnect the session with<br />
<code>tsdiscon &lt;sessionid&gt; /server:&lt;servername&gt;</code> <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/general/command-line-terminal-server#p4">#</a><p class="winerlinks-enabled"><a name="p5"></a>
or we can logoff a session with<br />
<code>logoff &lt;sessionid&gt; /server:&lt;servername&gt;</code> <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/general/command-line-terminal-server#p5">#</a><p class="winerlinks-enabled"><a name="p6"></a>
<a href="http://www.danrigsby.com/blog/?p=378">Dan Rigsby has more info</a> as does <a href="http://weblogs.asp.net/owscott/archive/2003/12/30/46776.aspx">Scott Forsyth</a>. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/general/command-line-terminal-server#p6">#</a>]]></content:encoded>
			<wfw:commentRss>http://ben.hamilton.id.au/general/command-line-terminal-server/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

