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
--
Problem reports: https://cygwin.com/problems.html
FAQ: https://cygwin.com/faq/
Documentation: https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple