<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; CMD/BAT: завершение сеансов RDP]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=5101&amp;type=atom" />
	<updated>2010-10-28T10:11:20Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=5101</id>
		<entry>
			<title type="html"><![CDATA[Re: CMD/BAT: завершение сеансов RDP]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=40998#p40998" />
			<content type="html"><![CDATA[<p>опять не там разместил, заранее прошу прошения</p>]]></content>
			<author>
				<name><![CDATA[fate]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24880</uri>
			</author>
			<updated>2010-10-28T10:11:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=40998#p40998</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[CMD/BAT: завершение сеансов RDP]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=40997#p40997" />
			<content type="html"><![CDATA[<p>нашел такой код по завершению сесий на терминальном серваке<br />в нем выполняются такие команды<br /></p><div class="codebox"><pre><code>%comspec% /u /c chcp 1251 &amp; for /f &quot;&quot;eol=; tokens=1 skip=2&quot;&quot; %i in (&#039;quser&#039;) do qprocess %i 
%comspec% /u /c chcp 1251 &amp; for /f &quot;&quot;eol=; tokens=2 skip=1&quot;&quot; %i in (&#039;quser&#039;) do if /i not &quot;&quot;%i&quot;&quot;==&quot;&quot;console&quot;&quot; logoff %i /v</code></pre></div><p>можно разобрать эти команды?<br />знаю команда <br /><strong>%comspec% /u /c chcp 1251 &amp; quser</strong> выводит список текущих пользователей<br />а те что в примере не пойму (</p>]]></content>
			<author>
				<name><![CDATA[fate]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24880</uri>
			</author>
			<updated>2010-10-28T09:58:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=40997#p40997</id>
		</entry>
</feed>
