public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Mark Geisert <mark@maxrnd.com>
To: cygwin@cygwin.com
Subject: Re: Remotely restart a windows machine
Date: Sun, 27 Sep 2020 21:47:01 -0700	[thread overview]
Message-ID: <c0e07bca-38a5-d4fa-a255-916030c1883e@maxrnd.com> (raw)
In-Reply-To: <95279279-9fab-cc6c-1cad-6cba48c95eff@cs.umass.edu>

Eliot Moss wrote:
> On 9/27/2020 5:45 PM, Andrey Repin wrote:
>> Greetings, Eliot Moss!
>>
>>> On 9/25/2020 10:36 AM, john doe wrote:
>>>> On 9/25/2020 4:28 PM, Peter J. Krum via Cygwin wrote:
>>>>> The syntax of this command is:
>>>>>
>>>>> NET
>>>>>       [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP |
>>>>>         HELPMSG | LOCALGROUP | PAUSE | SESSION | SHARE | START |
>>>>>         STATISTICS | STOP | TIME | USE | USER | VIEW ]
>>>>>
>>>>
>>>> This is a Windows command, I would look at 'shutdown.exe' or whatever
>>>> tools is using rpc to restart windows remotely.
>>
>>> shutdown is the program that the OP desires to run remotely.  The question 
>>> boils down to: How, using
>>> Cygwin, can I send a remote command to another computer on the network?
>>
>> Unsurprisingly, it's `shutdown`…
>> But you must be an admin on the remote system.
> 
> Yes, I've used that program.  I think the question is how to invoke it remotely.  
> Tips about how to do that?  :-)

It's in the part of Andrey's reply you didn't quote :-)

Usage: C:\Windows\System32\shutdown.exe [/i | /l | /s | /r | /g | /a | /p | /h | 
/e] [/f]
     [/m \\computer][/t xxx][/d [p|u:]xx:yy [/c "comment"]]
...
     /m \\computer   Specify the target computer.

..mark

  reply	other threads:[~2020-09-28  4:47 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-25 13:32 Peter J. Krum
2020-09-25 14:23 ` john doe
2020-09-25 14:28 ` Peter J. Krum
2020-09-25 14:36   ` john doe
2020-09-25 14:57     ` Eliot Moss
2020-09-27 21:45       ` Andrey Repin
2020-09-27 23:24         ` Eliot Moss
2020-09-28  4:47           ` Mark Geisert [this message]
2020-09-29 15:56             ` Stephen Carrier
2020-09-25 17:45   ` Peter J. Krum
2020-09-25 17:49     ` Eliot Moss

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c0e07bca-38a5-d4fa-a255-916030c1883e@maxrnd.com \
    --to=mark@maxrnd.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).