<?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>Owen Consulting - IT &#38; Web support for Small Businesses &#187; Parameters</title>
	<atom:link href="http://www.owenwebs.com/index.php/tag/parameters/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.owenwebs.com</link>
	<description>Music, Technology, Rants and Funnies - Randomness at its best!</description>
	<lastBuildDate>Sun, 20 Jun 2010 02:58:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Remote Shutdown, Oh how I love thee&#8230;</title>
		<link>http://www.owenwebs.com/2009/06/17/remote-shutdown-oh-how-i-love-thee/</link>
		<comments>http://www.owenwebs.com/2009/06/17/remote-shutdown-oh-how-i-love-thee/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 20:20:57 +0000</pubDate>
		<dc:creator>Robert Owen</dc:creator>
				<category><![CDATA[MicroSoft]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Administrative Privileges]]></category>
		<category><![CDATA[Batch File]]></category>
		<category><![CDATA[Cancel]]></category>
		<category><![CDATA[Command Line Tool]]></category>
		<category><![CDATA[Computer C]]></category>
		<category><![CDATA[Computer Name]]></category>
		<category><![CDATA[Computer Support]]></category>
		<category><![CDATA[Graphic User]]></category>
		<category><![CDATA[Inteface]]></category>
		<category><![CDATA[Local Computer]]></category>
		<category><![CDATA[Love]]></category>
		<category><![CDATA[Love Exe]]></category>
		<category><![CDATA[Lowercase]]></category>
		<category><![CDATA[Maximum Number]]></category>
		<category><![CDATA[Parameters]]></category>
		<category><![CDATA[Queries]]></category>
		<category><![CDATA[Remote Computer]]></category>
		<category><![CDATA[Remote Desktop]]></category>
		<category><![CDATA[Remote Shutdown]]></category>
		<category><![CDATA[Running Programs]]></category>
		<category><![CDATA[Switch Windows]]></category>
		<category><![CDATA[Switches]]></category>
		<category><![CDATA[Syntax]]></category>
		<category><![CDATA[T 120]]></category>
		<category><![CDATA[Time Out]]></category>
		<category><![CDATA[Tool]]></category>
		<category><![CDATA[Two Minutes]]></category>
		<category><![CDATA[Two Ways]]></category>
		<category><![CDATA[Updating Software]]></category>
		<category><![CDATA[Vpn]]></category>
		<category><![CDATA[Windows Servers]]></category>

		<guid isPermaLink="false">http://www.owenwebs.com/?p=794</guid>
		<description><![CDATA[I manage a few Windows Servers across my VPN&#8230; Updating software, OS, and managing backups, etc. And, sometimes when you are installing an update that requires a reboot things can get a little complicated. Especially, if that server has a lot of services running and you are logged in via Remote Desktop. If there a [...]]]></description>
			<content:encoded><![CDATA[<!-- wp-jquery-lightbox, a WordPress plugin by ulfben --> <p>I manage a few Windows Servers across my <a href="http://http://en.wikipedia.org/wiki/Vpn" target="_blank">VPN</a>&#8230; Updating software, OS, and managing backups, etc. And, sometimes when you are installing an update that requires a reboot things can get a little complicated. Especially, if that server has a lot of services running and you are logged in via Remote Desktop. If there a lot of services that have to be shut down, sometimes the server can hang in the process&#8230; Cutting your remote session but not finishing the reboot process.</p>
<p>So&#8230; enter shutdown.exe. Shutdown.exe is a command line tool that can be used to shutdown and/or reboot local or remote servers. (Granted you have administrative privileges) You can use shutdown.exe two ways. By command line and the Graphic user inteface. If you want to try the command line approach, Shutdown.exe uses the following syntax:</p>
<div><strong>shutdown \\<var>computername</var> /l /a /r /t:<var>xx</var> &#8220;<var>msg</var>&#8221; /y /c</strong></div>
<div><strong>.<br />
</strong></div>
<div><img class="aligncenter size-full wp-image-804" title="command line activation" src="http://www.owenwebs.com/wp-content/uploads/2009/06/cmd1.png" alt="command line activation" width="550" height="277" /></div>
<div>You can use the following switches with Shutdown.exe:</div>
<ul>
<li><strong><var>\\computername</var></strong>: Use this switch to specify the remote computer to shut down. If you omit this parameter, the local computer name is used.</li>
<li><strong>/l</strong> (Note that this is a lowercase &#8220;L&#8221; character):  Use this switch to shut down the local computer</li>
<li><strong>/a</strong>: Use this switch to quit a shutdown operation. You can do this only during the time-out period. If you use this switch, all other parameters are ignored.</li>
<li><strong>/r</strong>: Use this switch to restart the computer instead of fully shutting it down.</li>
<li><strong>/t:<var>xx</var></strong>: Use this switch to specify the time (in seconds) after which the computer is shut down. The default is 20 seconds.</li>
<li><strong>&#8220;<var>msg</var>&#8220;</strong>: Use this switch to specify a message during the shutdown process. The maximum number of characters that the message can contain is 127.</li>
<li><strong>/y</strong>: Use this switch to force a &#8220;yes&#8221; answer to all queries from the computer.</li>
<li><strong>/c</strong>: Use this switch quit all running programs. If you use this switch, Windows forces all programs that are running to quit. The option to save any data that may have changed is ignored. This can result in data loss in any programs for which data is not previously saved.</li>
</ul>
<h3>Examples</h3>
<ul>
<li>To shut down the local computer in two minutes and display a &#8220;The computer is shutting down&#8221; message, use the following line in a batch file or type it at a command prompt, and then press ENTER:
<div><span>shutdown /l /t:120  &#8220;The computer is shutting down&#8221; /y /c</span></div>
<p>To cancel the shutdown process, type the following line at the command prompt, and then press ENTER:</p>
<div><span>shutdown /l /a /y</span></div>
</li>
<li>To shut down and restart a remote computer named &#8220;Support,&#8221; use the following line in a batch file or type it at a command prompt, and then press ENTER:
<div><span>shutdown \\support /r</span></div>
</li>
<li>To schedule the local computer to shutdown and restart at 10:00 P.M., type the following line at a command prompt, and then press ENTER:
<div><span>at 22:00 shutdown /l /r /y /c </span></div>
</li>
<li>To schedule the local computer to shutdown and restart at 6:00 P.M. every weekday, type the following line at a command prompt, and then press ENTER:
<div><span>at 18:00 /every:M,T,W,Th,F shutdown /l /r /y /c </span></div>
</li>
</ul>
<p>Now you can also do the same thing with the Graphic interface. To activate the GUI Open a command prompt and type: <strong>shutdown /i</strong> you will then be presented with a window that will look like this:</p>
<p><img class="aligncenter size-full wp-image-801" title="shutdown gui" src="http://www.owenwebs.com/wp-content/uploads/2009/06/shutdown.PNG" alt="shutdown gui" width="424" height="477" /></p>
<p>From the dropdown menus you can choose equivalent selection for the command line switches. Using this method to reboot the remote server takes the Remote Desktop out of the active services list and has been a great help in reliably rebooting the remote servers. This is a great help when you cannot get physically to the server Console and perform the reboot. This command line utility is present in Windows XP, Sever 2003, Windows Vista and Windows 7. I&#8217;ve not attempted this from a Server 2008 machine yet but, if it is not available there I will update you.</p>
<p style='text-align:left'>&copy; 2009, <a href='http://www.owenwebs.com'>Robert Owen</a>. All rights reserved. </p>

<p><strong>Possibly Related Posts:</strong></p>
<ul>
<li><a href="http://www.owenwebs.com/2010/06/19/create-a-shortcut-to-open-in-your-alternate-browser/">Create a Shortcut to open in your Alternate Browser</a></li>
<li><a href="http://www.owenwebs.com/2010/05/05/my-latest-upgrade/">My Latest Upgrade</a></li>
<li><a href="http://www.owenwebs.com/2009/12/07/windows-7-telnet-client/">Windows 7 Telnet Client</a></li>
<li><a href="http://www.owenwebs.com/2009/10/28/windows-7-error-86/">Windows 7 error 86</a></li>
<li><a href="http://www.owenwebs.com/2009/10/28/windows-7-clean-install-from-upgrade/">Windows 7 Clean Install from Upgrade</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://www.owenwebs.com/2009/06/17/remote-shutdown-oh-how-i-love-thee/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Remote Desktop</title>
		<link>http://www.owenwebs.com/2009/06/10/remote-desktop/</link>
		<comments>http://www.owenwebs.com/2009/06/10/remote-desktop/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 01:31:21 +0000</pubDate>
		<dc:creator>Robert Owen</dc:creator>
				<category><![CDATA[MicroSoft]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Butt]]></category>
		<category><![CDATA[Command Line Arguments]]></category>
		<category><![CDATA[Desktop Exe]]></category>
		<category><![CDATA[Desktop Icon]]></category>
		<category><![CDATA[Desktop Xp]]></category>
		<category><![CDATA[Fyi]]></category>
		<category><![CDATA[Gt Programs]]></category>
		<category><![CDATA[Mstsc Exe]]></category>
		<category><![CDATA[New Icon]]></category>
		<category><![CDATA[Parameters]]></category>
		<category><![CDATA[Remote Computer]]></category>
		<category><![CDATA[Remote Desktop Connection]]></category>
		<category><![CDATA[Select Properties]]></category>
		<category><![CDATA[Server 2000]]></category>
		<category><![CDATA[Servername]]></category>
		<category><![CDATA[Windows Xp]]></category>
		<category><![CDATA[Workstations]]></category>

		<guid isPermaLink="false">http://www.owenwebs.com/?p=702</guid>
		<description><![CDATA[Here is another Post that must have tasted good because, WordPress ate it when I converted. It should still be useful to someone out there&#8230; When Windows XP came out, we were introduced to the new and improved remote desktop. It&#8217;s Great! Believe me, I use it regularly. Well, when you use it to connect [...]]]></description>
			<content:encoded><![CDATA[<!-- wp-jquery-lightbox, a WordPress plugin by ulfben --> <p>Here is another Post that must have tasted good because, WordPress ate it when I converted. It should still be useful to someone out there&#8230;</p>
<p>When Windows XP came out, we were introduced to the new and improved remote desktop. It&#8217;s Great! Believe me, I use it regularly.</p>
<p>Well, when you use it to connect to XP workstations you get to connect to the console session. However, when trying to connect to a Server 2000 or Server 2003 machine you get connected to a &#8220;Remote Desktop&#8221; not ever to the console. Well, this really kind of bugged me but not enough to worry about. Until now. Now, I use a couple of programs that run as a service but only interact with the console session. So, when you log in remotely it trys to start another instance of the program causing errors. Well, I finally got off my butt and found a way to connect to the console session using Remote Desktop.<br />
<span id="more-702"></span><br />
Most everybody probably already knows this but I&#8217;m going to post this information anyway so that the challenged <a href="http://www.google.com">Googlererererers</a> like myself can have a reference.</p>
<p>The trick to this is to add the &#8221; /console argument &#8221; to the command line.<br />
First let&#8217;s make a Remote Desktop Icon Shortcut on the Desktop, go to:<br />
Start-&gt;Programs-&gt;Accessories-&gt;Communications-&gt;Remote Desktop Connection<br />
Right Click on the Icon<br />
Click Copy<br />
Right Click on the Desktop<br />
Click Paste<br />
or just right click on the Icon<br />
Drag and Drop<br />
Select create shortcut</p>
<p>Now on your new Icon just right click, select properties and edit the command line with the new argument:<br />
<img title="example pic" src="http://www.owenwebs.com/images/blog-images/rdesk2.gif" alt="" /></p>
<p>That&#8217;s it! Now when you use that shortcut, you will be able to connect to your server via the console session! Oh, and by the by, you must be an administrator on the server to which you are connecting to create a remote console connection.</p>
<p>As an FYI, Here are some other Command line arguments you can use with Remote Desktop:</p>
<ul>
<li>mstsc.exe {ConnectionFile | /v:ServerName[:Port]} [/console] [/f] [/w:Width /h:Height]</li>
<li>mstsc.exe /edit&#8221;ConnectionFile&#8221;</li>
<li>mstsc.exe /migrate<br />
Parameters</li>
<li>ConnectionFile<br />
Specifies the name of an .rdp file for the connection.</li>
<li> /v:ServerName[:Port]<br />
Specifies the remote computer and, optionally, the port number to which you<br />
want to connect.</li>
<li> /console<br />
Connects to the console session of the specified Windows Server 2003 family<br />
operating system.</li>
<li> /f<br />
Starts Remote Desktop connection in full-screen mode.</li>
<li> /w:Width /h:Height<br />
Specifies the dimensions of the Remote Desktop screen.</li>
<li> /edit&#8221;ConnectionFile&#8221;<br />
Opens the specified .rdp file for editing.</li>
<li> /migrate<br />
Migrates legacy connection files that were created with Client Connection<br />
Manager to new .rdp connection files.</li>
</ul>
<p style='text-align:left'>&copy; 2009, <a href='http://www.owenwebs.com'>Robert Owen</a>. All rights reserved. </p>

<p><strong>Possibly Related Posts:</strong></p>
<ul>
<li><a href="http://www.owenwebs.com/2010/06/19/create-a-shortcut-to-open-in-your-alternate-browser/">Create a Shortcut to open in your Alternate Browser</a></li>
<li><a href="http://www.owenwebs.com/2010/05/05/my-latest-upgrade/">My Latest Upgrade</a></li>
<li><a href="http://www.owenwebs.com/2009/12/07/windows-7-telnet-client/">Windows 7 Telnet Client</a></li>
<li><a href="http://www.owenwebs.com/2009/10/28/windows-7-error-86/">Windows 7 error 86</a></li>
<li><a href="http://www.owenwebs.com/2009/10/28/windows-7-clean-install-from-upgrade/">Windows 7 Clean Install from Upgrade</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://www.owenwebs.com/2009/06/10/remote-desktop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
