<?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>Matt Refghi&#039;s Blog &#187; reboot</title>
	<atom:link href="http://mattrefghi.com/blog/tag/reboot/feed/" rel="self" type="application/rss+xml" />
	<link>http://mattrefghi.com/blog</link>
	<description>Computer Science and other written works</description>
	<lastBuildDate>Sat, 10 Mar 2012 17:58:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Rebooting and Shutting Down via Command Prompt</title>
		<link>http://mattrefghi.com/blog/2010/11/rebooting-and-shutting-down-via-command-prompt/</link>
		<comments>http://mattrefghi.com/blog/2010/11/rebooting-and-shutting-down-via-command-prompt/#comments</comments>
		<pubDate>Sun, 28 Nov 2010 23:27:43 +0000</pubDate>
		<dc:creator>Matt Refghi</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[command prompt]]></category>
		<category><![CDATA[reboot]]></category>
		<category><![CDATA[remote desktop]]></category>
		<category><![CDATA[shutdown]]></category>

		<guid isPermaLink="false">http://mattrefghi.com/wordpress/?p=2187</guid>
		<description><![CDATA[When I originally found myself]]></description>
			<content:encoded><![CDATA[<p>When I originally found myself needing to reboot a machine via <a href="http://en.wikipedia.org/wiki/Remote_Desktop_Protocol" target="_blank">Remote Desktop</a>, I realized that the shut down option was removed from the Start menu. Instead, I had the option to end my Remote Desktop session, nothing else. <kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>DEL</kbd> understandably didn&#8217;t work, as my local machine interpreted the key combination, not the remote machine. Without an obvious solution at the time, I remembered that there was a command line executable that could be used to shut down. The executable worked so well that I put batch file shortcuts on the desktop of the machine, allowing me to either restart or shut down the machine with a simple double-click. Seeing as this proved useful to me, I thought I would share how to do it.</p>
<p>To reboot the remote machine, simply use the following command in its <a href="http://en.wikipedia.org/wiki/Command_Prompt" target="_blank">Command Prompt</a>.</p>
<blockquote><p>shutdown /r /t:1 /y</p></blockquote>
<p>There are three arguments being specified here: the first tells the shutdown executable that you want to reboot, not shut down. The second tells it to wait 1 second before shutting down, rather than the default 20 seconds. Finally, the third tells it to automatically answer &#8220;Yes&#8221; to any questions asked by the operating system when shutting down. The latter may speed up the operation, but you may lose any unsaved changes.</p>
<p>To shut down, simply use the following command:</p>
<blockquote><p>shutdown /t:1 /y</p></blockquote>
<p>That&#8217;s all there is to it. For more information about the shutdown comment, see <a href="http://support.microsoft.com/kb/317371" target="_blank">this Microsoft Support article</a>.</p>
<p>After using this approach for a month or so, I discovered that there was a way to use <kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>DEL</kbd> in Remote Desktop. Instead of <kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>DEL</kbd>, simply press <kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>END</kbd>, and the remote machine will behave as if it received a <kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>DEL</kbd> signal.</p>
<p><a class="a2a_button_digg" href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fmattrefghi.com%2Fblog%2F2010%2F11%2Frebooting-and-shutting-down-via-command-prompt%2F&amp;linkname=Rebooting%20and%20Shutting%20Down%20via%20Command%20Prompt" title="Digg" rel="nofollow" target="_blank"><img src="http://mattrefghi.com/blog/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a><a class="a2a_button_reddit" href="http://www.addtoany.com/add_to/reddit?linkurl=http%3A%2F%2Fmattrefghi.com%2Fblog%2F2010%2F11%2Frebooting-and-shutting-down-via-command-prompt%2F&amp;linkname=Rebooting%20and%20Shutting%20Down%20via%20Command%20Prompt" title="Reddit" rel="nofollow" target="_blank"><img src="http://mattrefghi.com/blog/wp-content/plugins/add-to-any/icons/reddit.png" width="16" height="16" alt="Reddit"/></a><a class="a2a_button_stumbleupon" href="http://www.addtoany.com/add_to/stumbleupon?linkurl=http%3A%2F%2Fmattrefghi.com%2Fblog%2F2010%2F11%2Frebooting-and-shutting-down-via-command-prompt%2F&amp;linkname=Rebooting%20and%20Shutting%20Down%20via%20Command%20Prompt" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://mattrefghi.com/blog/wp-content/plugins/add-to-any/icons/stumbleupon.png" width="16" height="16" alt="StumbleUpon"/></a><a class="a2a_button_slashdot" href="http://www.addtoany.com/add_to/slashdot?linkurl=http%3A%2F%2Fmattrefghi.com%2Fblog%2F2010%2F11%2Frebooting-and-shutting-down-via-command-prompt%2F&amp;linkname=Rebooting%20and%20Shutting%20Down%20via%20Command%20Prompt" title="Slashdot" rel="nofollow" target="_blank"><img src="http://mattrefghi.com/blog/wp-content/plugins/add-to-any/icons/slashdot.png" width="16" height="16" alt="Slashdot"/></a><a class="a2a_button_facebook_like addtoany_special_service" data-href="http://mattrefghi.com/blog/2010/11/rebooting-and-shutting-down-via-command-prompt/"></a><a class="a2a_button_twitter_tweet addtoany_special_service" data-count="horizontal" data-url="http://mattrefghi.com/blog/2010/11/rebooting-and-shutting-down-via-command-prompt/" data-text="Rebooting and Shutting Down via Command Prompt"></a><a class="a2a_button_google_plusone addtoany_special_service" data-href="http://mattrefghi.com/blog/2010/11/rebooting-and-shutting-down-via-command-prompt/"></a><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fmattrefghi.com%2Fblog%2F2010%2F11%2Frebooting-and-shutting-down-via-command-prompt%2F&amp;title=Rebooting%20and%20Shutting%20Down%20via%20Command%20Prompt" id="wpa2a_2"><img src="http://mattrefghi.com/blog/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://mattrefghi.com/blog/2010/11/rebooting-and-shutting-down-via-command-prompt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Ping to Monitor Reboots</title>
		<link>http://mattrefghi.com/blog/2009/01/using-ping-to-monitor-reboots/</link>
		<comments>http://mattrefghi.com/blog/2009/01/using-ping-to-monitor-reboots/#comments</comments>
		<pubDate>Sat, 24 Jan 2009 13:45:01 +0000</pubDate>
		<dc:creator>Matt Refghi</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[command prompt]]></category>
		<category><![CDATA[ping]]></category>
		<category><![CDATA[reboot]]></category>

		<guid isPermaLink="false">http://www.mattrefghi.com/wordpress/?p=137</guid>
		<description><![CDATA[When you`re rebooting a computer,]]></description>
			<content:encoded><![CDATA[<p>When you`re rebooting a computer, and you need to know exactly when it is back online, try using this command:</p>
<blockquote><p>ping -t &lt;target&gt;</p></blockquote>
<p>&lt;target&gt; can be an IP or domain name.</p>
<p>This command will keep pinging the machine endlessly, which can reveal exactly when the computer is back on the network. As long as you keep getting &#8220;Request time out&#8221;, the machine isn&#8217;t online yet. When you get a reply, as illustrated below, you know you can connect to the machine.</p>
<div id="attachment_3369" class="wp-caption aligncenter" style="width: 493px"><a href="http://mattrefghi.com/blog/wp-content/uploads/2009/01/pingt2.png" rel="lightbox[137]"><img class="size-full wp-image-3369 " src="http://mattrefghi.com/blog/wp-content/uploads/2009/01/pingt2.png" alt="Example output of ping -t shown in a Command Prompt window. " width="483" height="459" /></a><p class="wp-caption-text">Example output of ping -t</p></div>
<p>Personally, I tend to put this window on my secondary monitor, while I continue working on the primary monitor.  As soon as the machine is online, I close the window <em>or </em>press CTRL+C to prevent the ping from going on endlessly. Be careful how you use this &#8211; some hosts can interpret endless pinging as an attack.</p>
<p>Thanks to François Deschênes for originally showing me this trick.</p>
<p><a class="a2a_button_digg" href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fmattrefghi.com%2Fblog%2F2009%2F01%2Fusing-ping-to-monitor-reboots%2F&amp;linkname=Using%20Ping%20to%20Monitor%20Reboots" title="Digg" rel="nofollow" target="_blank"><img src="http://mattrefghi.com/blog/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a><a class="a2a_button_reddit" href="http://www.addtoany.com/add_to/reddit?linkurl=http%3A%2F%2Fmattrefghi.com%2Fblog%2F2009%2F01%2Fusing-ping-to-monitor-reboots%2F&amp;linkname=Using%20Ping%20to%20Monitor%20Reboots" title="Reddit" rel="nofollow" target="_blank"><img src="http://mattrefghi.com/blog/wp-content/plugins/add-to-any/icons/reddit.png" width="16" height="16" alt="Reddit"/></a><a class="a2a_button_stumbleupon" href="http://www.addtoany.com/add_to/stumbleupon?linkurl=http%3A%2F%2Fmattrefghi.com%2Fblog%2F2009%2F01%2Fusing-ping-to-monitor-reboots%2F&amp;linkname=Using%20Ping%20to%20Monitor%20Reboots" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://mattrefghi.com/blog/wp-content/plugins/add-to-any/icons/stumbleupon.png" width="16" height="16" alt="StumbleUpon"/></a><a class="a2a_button_slashdot" href="http://www.addtoany.com/add_to/slashdot?linkurl=http%3A%2F%2Fmattrefghi.com%2Fblog%2F2009%2F01%2Fusing-ping-to-monitor-reboots%2F&amp;linkname=Using%20Ping%20to%20Monitor%20Reboots" title="Slashdot" rel="nofollow" target="_blank"><img src="http://mattrefghi.com/blog/wp-content/plugins/add-to-any/icons/slashdot.png" width="16" height="16" alt="Slashdot"/></a><a class="a2a_button_facebook_like addtoany_special_service" data-href="http://mattrefghi.com/blog/2009/01/using-ping-to-monitor-reboots/"></a><a class="a2a_button_twitter_tweet addtoany_special_service" data-count="horizontal" data-url="http://mattrefghi.com/blog/2009/01/using-ping-to-monitor-reboots/" data-text="Using Ping to Monitor Reboots"></a><a class="a2a_button_google_plusone addtoany_special_service" data-href="http://mattrefghi.com/blog/2009/01/using-ping-to-monitor-reboots/"></a><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fmattrefghi.com%2Fblog%2F2009%2F01%2Fusing-ping-to-monitor-reboots%2F&amp;title=Using%20Ping%20to%20Monitor%20Reboots" id="wpa2a_4"><img src="http://mattrefghi.com/blog/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://mattrefghi.com/blog/2009/01/using-ping-to-monitor-reboots/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

