Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

8
  • Thanks, this looks promising. So I went to a target machine and in its registry I created the DWORD HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\LocalAccountTokenFilterPolicy with a value of 1. That's what was required as per your first paragraph, right? Not sure about the following paragraph, though. Simply using net use \\MachineName\IPC$ does not suffice, obviously. As you indicate in the last paragraph, the target computer's credentials need to be supplied, but how, and what do you mean by "the target user may not even exist locally".
    – Herb
    Commented May 7, 2017 at 5:43
  • Okay, I got it. The user: argument required the addition of the workgroup in order to function. Now the desired machines shut down as desired. Thank you!
    – Herb
    Commented May 7, 2017 at 6:12
  • 1
    The target user does not have to exist locally. Thats what I meant. You want to connect to the target computer, so you must use the user accounts of that computer. Any users on your local PC are not needed for the remote shutdown. You even don't need local admin rights. You only need sufficient rights on the target. Commented May 7, 2017 at 6:44
  • Additionally I should remark, that on the target machine also the Remote Registry Service needs to be enabled (Ctrl+R, services.msc, right-click Remote Registry, Properties, change Manual to Automatic), and you also need to allow WMI to get past the firewall (Windows Firewall, Allow a program, Change settings, Windows Management Instrumentation (WMI), check Home/Work). When done, restart the target.
    – Herb
    Commented May 9, 2017 at 12:41
  • @Herb: that was not necessary on my computers. Commented May 9, 2017 at 12:55