Another possibility.
https://learn.microsoft.com/en-us/sysinternals/downloads/psshutdown
--please don't forget to Accept as answer if the reply is helpful--
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have a simple WPF app that controls and monitors a few Windows 10 machines on an internal network- All it does is Ping and Shutdown. I'm creating batch files on the fly and calling them using Process.Start(..).
I can successfully remote shutdown a machine using:
shutdown /s /f /t 30 /m \\MYMACHINE_NAME
I'm trying to add an Abort button to a command already sent. I thought this would do it:
shutdown /s /a /m \\MYMACHINE_NAME
But it doesn't work.
I know that on the remote machine itself I can call Shutdown /a and it'll abort the existing shutdown for that box, but I'm trying to Abort remotely.
Possible?
Another possibility.
https://learn.microsoft.com/en-us/sysinternals/downloads/psshutdown
--please don't forget to Accept as answer if the reply is helpful--
Also it works fine here using;
shutdown /s /f /t 60 /m \\win10x64ftv
shutdown /a /m \\win10x64ftv
--please don't forget to Accept as answer
if the reply is helpful--
From the link above;
You can use PsShutdown to initiate a shutdown of the local or a remote computer, logoff a user, lock a system, or to abort an imminent shutdown.
--please don't forget to Accept as answer
if the reply is helpful--
Hi,
When using PsShutdown, there is limitation that aborts a shutdown (only possible while a countdown is in progress).
https://learn.microsoft.com/en-us/sysinternals/downloads/psshutdown
Moreover, here is command to abort the shutdown process on remote machines using a csv file of server names, you could modify based on your request and have a try.
https://community.spiceworks.com/topic/1998972-abort-shutdown-remotely
Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.
----------
Hope this helps and please help to accept as Answer if the response is useful.
Thanks,
Jenny