What is wrong with this Windows shutdown command?
Solution 1:
You are using conflicting switches.
/p
– Turn off the local computer with no time-out or warning. Can be used with the/f
option./t
– Set the time-out period before shutdown toxxx
seconds.
You are telling it to shutdown now with /p
and shutdown in 120 seconds with /t
.
Solution 2:
You should use
shutdown /f /t 120
Parameters /p and /t are incompatible.
Check Windows 7 shutdown command syntax for other parameters and more info.
Solution 3:
Depending on what you are trying to achieve, you might want to try
shutdown -s -f -t 120
This will force close all running programs and shut your computer down after 120 seconds.