<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Workaround for Shutdown.exe LUA bug</title><link>http://blogs.msdn.com/b/aaron_margosis/archive/2006/01/27/518214.aspx</link><description>Give non-admins the ability to use shutdown.exe to shut down or restart the computer.</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Workaround for Shutdown.exe LUA bug</title><link>http://blogs.msdn.com/b/aaron_margosis/archive/2006/01/27/518214.aspx#10165098</link><pubDate>Mon, 16 May 2011 21:47:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10165098</guid><dc:creator>Jim Hughes</dc:creator><description>&lt;p&gt;Thank you for telling me about the &amp;quot;Force shutdown...&amp;quot; user rights assignment. I knew there had to be a simple solution to the &amp;quot;Access Denied&amp;quot; error message, but I read 26 articles before finding this one with the right answer!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10165098" width="1" height="1"&gt;</description></item><item><title>re: Workaround for Shutdown.exe LUA bug</title><link>http://blogs.msdn.com/b/aaron_margosis/archive/2006/01/27/518214.aspx#10125827</link><pubDate>Mon, 07 Feb 2011 19:20:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10125827</guid><dc:creator>Reg Merritt</dc:creator><description>&lt;p&gt;Thanks for the info. However, in my case after pulling my hair out i finally realised that the server using the user &amp;quot;Administrator&amp;quot; had a different password to the user &amp;quot;Administrator&amp;quot; on the workstations.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10125827" width="1" height="1"&gt;</description></item><item><title>re: Workaround for Shutdown.exe LUA bug</title><link>http://blogs.msdn.com/b/aaron_margosis/archive/2006/01/27/518214.aspx#10052698</link><pubDate>Sat, 21 Aug 2010 03:18:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10052698</guid><dc:creator>pavan</dc:creator><description>&lt;p&gt;Thank You. &lt;/p&gt;
&lt;p&gt;Joe Smith&lt;/p&gt;
&lt;p&gt;You know.. making sure that the Simple File Sharing was unchecked allowed me to accomplish the remote shutdown from a different computer on the same LAN. &amp;nbsp;I tried all sorts of other stuff to get the remote shutdown to work with shutdown.exe but in the end all I had to do is uncheck the use Simple File Sharing option in Folder Options\View\Adavnced Settings window.&lt;/p&gt;
&lt;p&gt;It worked&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10052698" width="1" height="1"&gt;</description></item><item><title>re: Workaround for Shutdown.exe LUA bug</title><link>http://blogs.msdn.com/b/aaron_margosis/archive/2006/01/27/518214.aspx#9885216</link><pubDate>Wed, 26 Aug 2009 15:34:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9885216</guid><dc:creator>Joe Benton</dc:creator><description>&lt;P&gt;The local policy setting works fine for me. Is there a corresponding Active Directory setting that does the same thing? I have 500 or so computers I need to modify and it would be a shame to have to touch all those computers when I could just make a change in Active Directory that does the same thing.&lt;/P&gt;
&lt;DIV class=ajmReply&gt;
&lt;P&gt;&lt;EM&gt;[Aaron Margosis]&amp;nbsp; Can't you make the same change in the same place in domain policy that you do in local policy?&lt;/EM&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9885216" width="1" height="1"&gt;</description></item><item><title>re: Workaround for Shutdown.exe LUA bug</title><link>http://blogs.msdn.com/b/aaron_margosis/archive/2006/01/27/518214.aspx#9308804</link><pubDate>Mon, 12 Jan 2009 21:33:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9308804</guid><dc:creator>Clemens Li</dc:creator><description>&lt;p&gt;I'd like to know how to run shutdown -s on my own computer in a network without any admin rights. It's just when I leave my workplace, I want to double-click an icon not to do it the hard windows way via a couple of strokes.&lt;/p&gt;
&lt;p&gt;Any idea?&lt;/p&gt;
&lt;p&gt;TIA,&lt;/p&gt;
&lt;p&gt;Clemens&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9308804" width="1" height="1"&gt;</description></item><item><title>re: Workaround for Shutdown.exe LUA bug</title><link>http://blogs.msdn.com/b/aaron_margosis/archive/2006/01/27/518214.aspx#9248033</link><pubDate>Mon, 22 Dec 2008 23:19:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9248033</guid><dc:creator>kroyce</dc:creator><description>&lt;p&gt;Here's an odd situation for you. I open a vpn session from home to work. I then remote desktop in to my workstation at work. From the remote desktop session to my workstation I am trying to use a batch file to reboot (or shutdown) my laptop that is also running at work. Both computers are running Windows XP SP3 and I belong to the Administrators group on each one.&lt;/p&gt;
&lt;p&gt;I have explicitly granted &amp;quot;Allow logon through Terminal Services&amp;quot; AND &amp;quot;Force shutdown from a remote system&amp;quot; rights to myself, Remote Interactive Logon, Terminal Server User, Network Service, and Interactive. My login credentials come from Active Directory while the other accounts are local.&lt;/p&gt;
&lt;p&gt;When I run the batch file via a command line I get the infamous error message:&lt;/p&gt;
&lt;p&gt;Error opening Terminal server kroycelt.&lt;/p&gt;
&lt;p&gt;Error [5]:Access is denied.&lt;/p&gt;
&lt;p&gt;However, if I look at the security event logs it shows I logged in successfully but the laptop does not reboot.&lt;/p&gt;
&lt;p&gt;When I remote desktop directly into the laptop I have no problem rebooting it.&lt;/p&gt;
&lt;p&gt;I am using the tsshutdn utility in the batch file:&lt;/p&gt;
&lt;p&gt;&amp;lt;CODE&amp;gt; &lt;/p&gt;
&lt;p&gt;@echo off&lt;/p&gt;
&lt;p&gt;echo - Setup Log File date /T -&amp;gt; c:\tsclean.log&lt;/p&gt;
&lt;p&gt;echo - New Run &amp;gt;&amp;gt; c:\tsclean.log&lt;/p&gt;
&lt;p&gt;echo - Rebooting %msgto% &amp;gt;&amp;gt; c:\tsclean.log&lt;/p&gt;
&lt;p&gt;set diagMessage = tsshutdn 0 /server:&amp;lt;my laptop name&amp;gt; /v /reboot &amp;gt;&amp;gt; c:\tsclean.log&lt;/p&gt;
&lt;p&gt;diagMessage &amp;gt;&amp;gt; c:\tsclean.log&lt;/p&gt;
&lt;p&gt;&amp;lt;/CODE&amp;gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9248033" width="1" height="1"&gt;</description></item><item><title>re: Workaround for Shutdown.exe LUA bug</title><link>http://blogs.msdn.com/b/aaron_margosis/archive/2006/01/27/518214.aspx#9175202</link><pubDate>Thu, 04 Dec 2008 17:01:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9175202</guid><dc:creator>Dilandau</dc:creator><description>&lt;P&gt;Instead of using NtRights for granting the Guest account the privilege to access the shutdown, one can simply add Guest account to the Administrators group. That would solve the problem with remote shutdown easily&lt;/P&gt;
&lt;DIV class=ajmReply&gt;
&lt;P&gt;&lt;EM&gt;[Aaron Margosis]&amp;nbsp; You forgot the emoticon to tell people, "Of course I'm joking."&lt;/EM&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9175202" width="1" height="1"&gt;</description></item><item><title>re: Workaround for Shutdown.exe LUA bug</title><link>http://blogs.msdn.com/b/aaron_margosis/archive/2006/01/27/518214.aspx#8929843</link><pubDate>Sun, 07 Sep 2008 07:08:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8929843</guid><dc:creator>Jeremy Tarpley</dc:creator><description>&lt;p&gt;Aaron,&lt;/p&gt;
&lt;p&gt;I never would have figured that out - thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8929843" width="1" height="1"&gt;</description></item><item><title>re: Workaround for Shutdown.exe LUA bug</title><link>http://blogs.msdn.com/b/aaron_margosis/archive/2006/01/27/518214.aspx#8389149</link><pubDate>Mon, 14 Apr 2008 02:30:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8389149</guid><dc:creator>Alvin</dc:creator><description>&lt;P&gt;How am I supposed to copy the NtRights.exe program to Windows\system32?&lt;/P&gt;
&lt;DIV class=ajmReply&gt;
&lt;P&gt;&lt;EM&gt;[Aaron Margosis]&amp;nbsp; You need to be running as admin to do that.&lt;/EM&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8389149" width="1" height="1"&gt;</description></item><item><title>re: Workaround for Shutdown.exe LUA bug</title><link>http://blogs.msdn.com/b/aaron_margosis/archive/2006/01/27/518214.aspx#8181782</link><pubDate>Thu, 13 Mar 2008 19:34:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8181782</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;Further to Aaron's comment that Remote Shutdown of a XP Home PC is not possible because connecting remotely uses the rights of the Guest account - this is correct.&lt;/p&gt;
&lt;p&gt;What is not correct however is the statement that remote shutdown is not possible. The solution lies in granting the Guest account the privilege to access the shutdown. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;To do this you need to use the NtRights.exe file found in the XP Resource Kit, here &lt;a rel="nofollow" target="_new" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=9D467A69-57FF-4AE7-96EE-B18C4790CFFD&amp;amp;displaylang=en"&gt;http://www.microsoft.com/downloads/details.aspx?FamilyID=9D467A69-57FF-4AE7-96EE-B18C4790CFFD&amp;amp;displaylang=en&lt;/a&gt; &amp;nbsp;You need to download the kit from Microsoft. Copy the NtRights.exe program to Windows\system32. Next log-in as an administrator on the box top be shutdown remotely and perform the following commands from a command window:&lt;/p&gt;
&lt;p&gt;NtRights –u Guest +r SeRemoteShutdownPrivilege&lt;/p&gt;
&lt;p&gt;NtRights –u Guest +r SeShutdownPrivilege&lt;/p&gt;
&lt;p&gt;Be careful about the spelling – note there is no ‘t’ in the priv name where you would expect it to read SetRemoteShutdownPrivilege &amp;nbsp;&lt;/p&gt;
&lt;p&gt;See here for a full description of the NtRights.exe program &lt;a rel="nofollow" target="_new" href="http://support.microsoft.com/kb/279664"&gt;http://support.microsoft.com/kb/279664&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;Now you should be able to use the shutdown.exe programs from a remote computer. When you do the shutdown message on your XP Home machine will read ‘Shutdown initiated by \\&amp;lt;pc name&amp;gt;Guest’&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8181782" width="1" height="1"&gt;</description></item></channel></rss>