{"id":643,"date":"2013-09-03T18:35:32","date_gmt":"2013-09-04T02:35:32","guid":{"rendered":"http:\/\/systemsolver.com\/StatlerBlog\/?p=643"},"modified":"2013-09-03T18:35:32","modified_gmt":"2013-09-04T02:35:32","slug":"remote-shutdown","status":"publish","type":"post","link":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/2013\/09\/03\/remote-shutdown\/","title":{"rendered":"Remote shutdown"},"content":{"rendered":"<p>The basic command with psshutdown (a part of <a href=\"http:\/\/technet.microsoft.com\/en-us\/sysinternals\/bb896649.aspx\">PSTools Suite<\/a> via Microsoft)\u00a0 is:<\/p>\n<p style=\"padding-left: 30px;\">psshutdown -c -f -r -u ComputerName\\UserName -p Password \\\\ComputerName<br \/>\n-c is for allowing the remote user to cancel the shutdown (20 seconds default)<br \/>\n-f is for force applications to close<\/p>\n<p>The advantage of using psshutdwon as opposed to simple shutdown is that it allows username\/password.<\/p>\n<p>I had difficulty using either psshutdown or simply shutdown to restart a remote machine. Turns out simple file sharing needed to be turned off.<\/p>\n<p>Open Explorer<br \/>\nGo to Tools<br \/>\nSelect the View tab<br \/>\nUncheck &#8220;Simple File Sharing (recommended)&#8221;<\/p>\n<p>If that doesn&#8217;t do the trick then try these other two actions:<\/p>\n<p>Make sure the policies allow remote shutdown (template or not)<\/p>\n<ol>\n<li>Here are the steps to make the template:<\/li>\n<li>Use an admin account and run MMC.<br \/>\n(If you do NOT want to mess with creating a template and just want to enable remote shutdown on one machine, use secpol.msc instead. Gpedit.msc will also work)<\/li>\n<li>Right click on the directory and create a new template. Name it whatever you want (I called it &#8220;RemoteShutdown&#8221;. Skip this if you are using secpol or gpedit)<\/li>\n<li>Expand &#8220;Local Policies&#8221;, and expand &#8220;User Rights Assignment&#8221;<\/li>\n<li>Find &#8220;Force shutdown from a remote system&#8221; and double-click on it.<\/li>\n<li>Here it varies, if you want only specific users, add them here in the box. However,\u00a0 If you want groups, including built-in groups like &#8220;administrators&#8221; &#8220;users&#8221; and &#8220;interactive&#8221;, you MUST click on &#8220;browse&#8221; and then click on object types, and check the checkbox for groups. Then enter the group name and click the &#8220;check names&#8221; button. You must go through this for each group or for some reason it might not work. I&#8217;ve tested and confirmed that it doesn&#8217;t always recognize the &#8220;users&#8221; group unless you go through those extra steps. It&#8217;s why I had so much trouble.<\/li>\n<li>Next repeat steps 5 and 6 using the &#8220;Shut down the system&#8221; policy. Adding the &#8220;interactive&#8221; group here might also be a good idea. It is very important that any user or group you entered in step 6 also be entered here.<\/li>\n<li>Save the template. Install and apply the template to all computers on the network you want to be able to shut down remotely.<\/li>\n<\/ol>\n<p>For Win7 or Vista (maybe Win8)<\/p>\n<ul>\n<li>Type regedit in the Run box<\/li>\n<li>Go to\u00a0HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem<\/li>\n<li>Check the right side of the window to see if you have an entry for\u00a0LocalAccountTokenFilterPolicy. If you do change its value to 1<\/li>\n<li>If the entry does not exist, right click, select New &gt; DWORD (32-bit) Value and name it LocalAccountTokenFilterPolicy. Then double click the new entry and change its value to 1<\/li>\n<li>Reboot your machine<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The basic command with psshutdown (a part of PSTools Suite via Microsoft)\u00a0 is: psshutdown -c -f -r -u ComputerName\\UserName -p Password \\\\ComputerName -c is for allowing the remote user to cancel the shutdown (20 seconds default) -f is for force applications to close The advantage of using psshutdwon as opposed to simple shutdown is that [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-643","post","type-post","status-publish","format-standard","hentry","category-general"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/posts\/643","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/comments?post=643"}],"version-history":[{"count":0,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/posts\/643\/revisions"}],"wp:attachment":[{"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/media?parent=643"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/categories?post=643"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/tags?post=643"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}