<?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>WillMAYS.com - Blog &#187; Windows Server 2003</title>
	<atom:link href="http://blog.willmays.com/category/windows-server-2003/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.willmays.com</link>
	<description></description>
	<lastBuildDate>Thu, 06 May 2010 14:30:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
		<item>
		<title>Scheduled Reboot task fails with error 0x4f7</title>
		<link>http://blog.willmays.com/2008/10/09/scheduled-reboot-task-fails-with-error-0x4f7/</link>
		<comments>http://blog.willmays.com/2008/10/09/scheduled-reboot-task-fails-with-error-0x4f7/#comments</comments>
		<pubDate>Thu, 09 Oct 2008 12:27:05 +0000</pubDate>
		<dc:creator>will</dc:creator>
				<category><![CDATA[Error]]></category>
		<category><![CDATA[Windows Server 2003]]></category>

		<guid isPermaLink="false">http://blog.willmays.com/2008/10/09/scheduled-reboot-task-fails-with-error-0x4f7/</guid>
		<description><![CDATA[On all the servers I am tasked with managing I define a scheduled task &#8211; allowing me to perform a timed unattended reboot of the system. Most of the time this works well &#8211; once in a blue moon it doesn&#8217;t reboot the server though! The command line for the task is: shutdown /r /t [...]]]></description>
			<content:encoded><![CDATA[<p>On all the servers I am tasked with managing I define a scheduled task &#8211; allowing me to perform a timed unattended reboot of the system. Most of the time this works well &#8211; once in a blue moon it doesn&#8217;t reboot the server though!</p>
<p>The command line for the task is:</p>
<p><code>shutdown /r /t 30 /c "Scheduled Reboot task" /d p:0:0</code></p>
<p>Occasionally the task fails with an error code of <code>0x4f7</code>. This means that the console session is logged on and in a locked state!</p>
<p>Long and the short of it &#8211; Make sure you completely log off any active administrative sessions on the server when you schedule the next run of the task!</p>
<p>Alternatively, modify the command to look like this:</p>
<p><code>shutdown /r /t 30 /c "Scheduled Reboot task" /d p:0:0 <strong>/f</strong></code></p>
<p>The <strong>/f</strong> on the end forces a restart &#8211; it also forcefully closes any running applications in any logged-on session.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.willmays.com/2008/10/09/scheduled-reboot-task-fails-with-error-0x4f7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

