Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
    
What happens when you use Windows Security from the Start Menu and choose the Shut Down option there? –  user3463 Jul 17 '12 at 6:08
    
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 Rook Jul 17 '12 at 7:40
    
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 Jul 17 '12 at 13:15
    
The -i option also seems worth a try. –  Raheel Khan Jul 17 '12 at 13:17
    
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 Jul 31 '12 at 0:35
add comment

1 Answer

Do this:

shutdown /f /s /t 0

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

share|improve this answer
    
This should do the trick. Use f and s. –  MDT Guy Feb 25 '13 at 19:46
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.