Remotely shutting down Windows 7 causes restart using RDC

2

I connect to a desktop machine on my LAN using RDC and use shutdown.exe -f to force a shutdown. For some reason, the machine almost always restarts instead. I have also tried shutdown.exe - s but with the same result.

The machine in question is running Windows 7 (64 Bit) with all Windows Updates applied.

Am I missing something and is there an alternative way to shut down?

Raheel Khan

Posted 2012-07-17T05:39:49.710

Reputation: 251

What happens when you use Windows Security from the Start Menu and choose the Shut Down option there? – None – 2012-07-17T06:08:46.623

What if open command prompt and type shutdown -s -f -t 10 Where s = shutdown, f = force and t = time and the numbers is seconds (I put this for clarity for everyone to read, I'm sure you know this already) – Dave – 2012-07-17T07:40:47.107

Actually I have not tried -s and -f together, although the command prompt documentation for -s clearly states shutdown. Will give this a try and revert back. – Raheel Khan – 2012-07-17T13:15:02.153

The -i option also seems worth a try. – Raheel Khan – 2012-07-17T13:17:29.310

It appears that the problem had nothing to do with RDC. The machine in question does the same sometimes when shutdown from the start menu without remoting. – Raheel Khan – 2012-07-31T00:35:32.140

Answers

1

Do this:

shutdown /f /s /t 0

/f (force) /s (shutdown) /t 0 (instantly)

Austin ''Danger'' Powers

Posted 2012-07-17T05:39:49.710

Reputation: 5 992

This should do the trick. Use f and s. – MDT Guy – 2013-02-25T19:46:36.797