I am using Windows 7 and XP. I want to run a script to run this command:
shutdown /p /f /t 120
On Windows 7, it shows that an error occurred, but I think I am using it correctly.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
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.