Search code examples
javacmdshutdown

Windows Force shutdown command not work


i use this command for shutdown :

shutdown.exe -s -t 00

and this command work successfully

but force shudown does not work :

shutdown.exe –s –f –t 00

also i'm using windows 10 ..

what's the problem?

(i use this commands in my java application)


Solution

  • Try running the following command:

    shutdown –s –f –t 00
    

    where 00 is the waiting time (in seconds) before your computer forces shutdown. The allowed range for the waiting time is 0 - 315360000 seconds (0 seconds - 10 years), with a default of 30 seconds.