<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: How to shutdown or restart a remote machine?</title>
	<atom:link href="http://weseetips.com/2008/06/10/how-to-shutdown-or-restart-a-remote-machine/feed/" rel="self" type="application/rss+xml" />
	<link>http://weseetips.com/2008/06/10/how-to-shutdown-or-restart-a-remote-machine/</link>
	<description>Gold mine of Visual C++ tricks!</description>
	<lastBuildDate>Wed, 14 Mar 2012 05:55:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Jijo.Raj</title>
		<link>http://weseetips.com/2008/06/10/how-to-shutdown-or-restart-a-remote-machine/comment-page-1/#comment-149</link>
		<dc:creator>Jijo.Raj</dc:creator>
		<pubDate>Fri, 12 Dec 2008 18:38:34 +0000</pubDate>
		<guid isPermaLink="false">http://weseetips.wordpress.com/?p=165#comment-149</guid>
		<description>Well Summey, are you trying to make an application - which can install patch or service pack to all machines in your network and can restart the machine after installation?

Well, in that case i can recommend you anther cool idea. You can execute an application in a remote machine without installing any agent in that machine. Check out this article - http://www.codeguru.com/Cpp/I-N/network/remoteinvocation/article.php/c5433

All Microsoft patches supports the command line - /forcerestart and /norestart. If you have multiple patches to be installed to a machine, then execute all the patches in remote machine by passing /norestart and the last one with /forcerestart. So that after installing all patch the machine will restart itself.

Is this what you&#039;re looking for? Or something else? Feel free to ask.

Regards,
Jijo.</description>
		<content:encoded><![CDATA[<p>Well Summey, are you trying to make an application &#8211; which can install patch or service pack to all machines in your network and can restart the machine after installation?</p>
<p>Well, in that case i can recommend you anther cool idea. You can execute an application in a remote machine without installing any agent in that machine. Check out this article &#8211; <a href="http://www.codeguru.com/Cpp/I-N/network/remoteinvocation/article.php/c5433" rel="nofollow">http://www.codeguru.com/Cpp/I-N/network/remoteinvocation/article.php/c5433</a></p>
<p>All Microsoft patches supports the command line &#8211; /forcerestart and /norestart. If you have multiple patches to be installed to a machine, then execute all the patches in remote machine by passing /norestart and the last one with /forcerestart. So that after installing all patch the machine will restart itself.</p>
<p>Is this what you&#8217;re looking for? Or something else? Feel free to ask.</p>
<p>Regards,<br />
Jijo.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: summey</title>
		<link>http://weseetips.com/2008/06/10/how-to-shutdown-or-restart-a-remote-machine/comment-page-1/#comment-148</link>
		<dc:creator>summey</dc:creator>
		<pubDate>Fri, 12 Dec 2008 00:07:39 +0000</pubDate>
		<guid isPermaLink="false">http://weseetips.wordpress.com/?p=165#comment-148</guid>
		<description>Im a network admin and i want to write a c++ program that scans the network for machines needing to be restarted. For example when updates are applied and and it pompts to restart i want my program to be able to pick up on that and inform me that machine is in-need of a restart.

Thank you for your time
ryan.summey@jacob-holm.com</description>
		<content:encoded><![CDATA[<p>Im a network admin and i want to write a c++ program that scans the network for machines needing to be restarted. For example when updates are applied and and it pompts to restart i want my program to be able to pick up on that and inform me that machine is in-need of a restart.</p>
<p>Thank you for your time<br />
<a href="mailto:ryan.summey@jacob-holm.com">ryan.summey@jacob-holm.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jijo.Raj</title>
		<link>http://weseetips.com/2008/06/10/how-to-shutdown-or-restart-a-remote-machine/comment-page-1/#comment-147</link>
		<dc:creator>Jijo.Raj</dc:creator>
		<pubDate>Tue, 18 Nov 2008 07:56:21 +0000</pubDate>
		<guid isPermaLink="false">http://weseetips.wordpress.com/?p=165#comment-147</guid>
		<description>Hi Rajeev,

You should have admin privilege in the remote machine or atleast SE_SHUTDOWN_NAME privilege. Check out this link - &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/aa376874(VS.85).aspx&quot; rel=&quot;nofollow&quot;&gt;. See the remarks section for more possible errors.

Regards,
Jijo.</description>
		<content:encoded><![CDATA[<p>Hi Rajeev,</p>
<p>You should have admin privilege in the remote machine or atleast SE_SHUTDOWN_NAME privilege. Check out this link &#8211; <a href="http://msdn.microsoft.com/en-us/library/aa376874(VS.85).aspx" rel="nofollow">. See the remarks section for more possible errors.</p>
<p>Regards,<br />
Jijo.</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajeev</title>
		<link>http://weseetips.com/2008/06/10/how-to-shutdown-or-restart-a-remote-machine/comment-page-1/#comment-146</link>
		<dc:creator>Rajeev</dc:creator>
		<pubDate>Tue, 18 Nov 2008 02:43:09 +0000</pubDate>
		<guid isPermaLink="false">http://weseetips.wordpress.com/?p=165#comment-146</guid>
		<description>InitiateSystemShutdown( _T(&quot;RemotePC01&quot;), // Machine Name.
                        _T(&quot;You are going to be restarted&quot;),
                        5000, // timeout
                        TRUE, // Forcefully close applications.
                        TRUE ); // Restart the PC

This is not working from my system.Should i have to do settings before doing this from VC++</description>
		<content:encoded><![CDATA[<p>InitiateSystemShutdown( _T(&#8220;RemotePC01&#8243;), // Machine Name.<br />
                        _T(&#8220;You are going to be restarted&#8221;),<br />
                        5000, // timeout<br />
                        TRUE, // Forcefully close applications.<br />
                        TRUE ); // Restart the PC</p>
<p>This is not working from my system.Should i have to do settings before doing this from VC++</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jijo.Raj</title>
		<link>http://weseetips.com/2008/06/10/how-to-shutdown-or-restart-a-remote-machine/comment-page-1/#comment-145</link>
		<dc:creator>Jijo.Raj</dc:creator>
		<pubDate>Mon, 16 Jun 2008 18:32:15 +0000</pubDate>
		<guid isPermaLink="false">http://weseetips.wordpress.com/?p=165#comment-145</guid>
		<description>Hello Guru,

Indeed. Everything is possible. Have a look at &quot;Wake on lan&quot;. Check here for how to configure it - http://www.annoyances.org/exec/show/article04-101

THen you&#039;ve to broadcast a Magic packet to start your remote pc. For Magic packet syntax check here - http://en.wikipedia.org/wiki/Wake-on-LAN#Magic_Packet

Unfortunately there isn&#039;t any single windows api call for the same. But i managed to find a C# sample - http://community.bartdesmet.net/blogs/bart/archive/2006/04/02/3858.aspx . I hope this helps or atleast shows some light. :)

Regards,
Jijo.</description>
		<content:encoded><![CDATA[<p>Hello Guru,</p>
<p>Indeed. Everything is possible. Have a look at &#8220;Wake on lan&#8221;. Check here for how to configure it &#8211; <a href="http://www.annoyances.org/exec/show/article04-101" rel="nofollow">http://www.annoyances.org/exec/show/article04-101</a></p>
<p>THen you&#8217;ve to broadcast a Magic packet to start your remote pc. For Magic packet syntax check here &#8211; <a href="http://en.wikipedia.org/wiki/Wake-on-LAN#Magic_Packet" rel="nofollow">http://en.wikipedia.org/wiki/Wake-on-LAN#Magic_Packet</a></p>
<p>Unfortunately there isn&#8217;t any single windows api call for the same. But i managed to find a C# sample &#8211; <a href="http://community.bartdesmet.net/blogs/bart/archive/2006/04/02/3858.aspx" rel="nofollow">http://community.bartdesmet.net/blogs/bart/archive/2006/04/02/3858.aspx</a> . I hope this helps or atleast shows some light. <img src='http://weseetips.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Regards,<br />
Jijo.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: VCGuru</title>
		<link>http://weseetips.com/2008/06/10/how-to-shutdown-or-restart-a-remote-machine/comment-page-1/#comment-144</link>
		<dc:creator>VCGuru</dc:creator>
		<pubDate>Mon, 16 Jun 2008 18:21:42 +0000</pubDate>
		<guid isPermaLink="false">http://weseetips.wordpress.com/?p=165#comment-144</guid>
		<description>Jijo, Is there any way to start(switch-on) a PC from remote machine through VC++ APIs?

Additional Information on this querry
Power is already cycled.
Windows XP , SP1
VS not installed</description>
		<content:encoded><![CDATA[<p>Jijo, Is there any way to start(switch-on) a PC from remote machine through VC++ APIs?</p>
<p>Additional Information on this querry<br />
Power is already cycled.<br />
Windows XP , SP1<br />
VS not installed</p>
]]></content:encoded>
	</item>
</channel>
</rss>

