One of the biggest challenges I face most of the time is to shut down my laptop as soon as possible, put it inside the bag and leave (for my destination). The problem is, given how smart the current generation operating systems (OS) are, it will take its own sweet time. The OS will try to gracefully close (12 seconds in Windows 7) all the running programs in foreground and background and then give the shutdown command to the system.
Seems all good but there will be time when you click on the shutdown button, close the lid of your laptop, put it inside the bag and hurry for your destination thinking everything will be closed. In reality, next time when you open the lid you will see an unresponsive program has prevented your system from shutting down and the OS is awaiting a response from you.
So what do I do in such situations? I open up the RUN command and type this code: SHUTDOWN -s -t 0
Here you can put any number in place of 0 to schedule a shutdown also. For example:
t 60 = The computer will shut down within 60 seconds
t 180 = The computer will shut down in 180 seconds (or 3 minutes)
t 14400 = The computer will shut down in 240 minutes (or 4 hours)
So you get the point — the time that you put after “t” is calculated in seconds.
So, what’s the fastest approach?
1) Windows key + R will bring up the RUN box
2) Type in SHUTDOWN -s -t 0 and press ENTER on your keyboard or the OK button
Other similar commands:
1) shutdown -r = restarts your computer
2) shutdown -s = shuts down the system (same as using the shutdown button)
If your Windows OS is still thinking smartly and not letting you close programs sans your input:
1) Press “Windows key +R” keys to start “RUN” dialogue box and type “gpedit.msc” there
2) Click “OK”, and “Local Group Policy Editor” window will pop up
3) Navigate to “Computer Configuration” > “Administrative Templates” > “System” > “Shutdown Options”. Double-click “Turn off automatic termination of applications that block or cancel shutdown” on the corresponding right panel. In the new dialogue box that crops up, set the configuration option as “Enabled”
1) Open a notepad
2) Copy the command as mentioned above and paste in the notepad
3) Save the file with .bat extension on your desktop
4) Double click on the file and the command will be executed successfully