Windows – How to try normal shutdown and then force a shutdown

shutdownwindowswindows 7

Is there a command for Windows to try the normal shutdown, and if not success, force shutdown automatically after 1 minute?

I tried:

shutdown -f -s -t 60

But I got a terminal printing infinitely:

C:\Users\Wellington\Desktop>shutdown -f -s -t 60
C:\Users\Wellington\Desktop>shutdown -f -s -t 60
C:\Users\Wellington\Desktop>shutdown -f -s -t 60

And I'm not sure if this will try the normal shutdown first…

Best Answer

AFAIK,there is no direct command to run but you can modify your above command to fulfill your requirement as like this.

shutdown -s -t 60 && shutdown -f

shutdown -s -t 60 || shutdown -f

Try this,It will first do a normal shutdown after 1 minutes if it fails then it will execute force shut down.

or you can write a batch file with using if(condition) and simply run it.

Related Question