Shutdown your Laptop with CMD in a Pro way

Shutdown your Laptop with CMD

This might give you a hint of some coding to Shutdown your Laptop with CMD. And yes, we’re just going to write some codes and setup the CMD to perform shutdown as we set the time. Therefore, you can shut the computer down in any time you want.

This trick is very useful when you’ve no time to wait until your laptop finishes the render or any other job. But if you can predict the completion time, then this will be the trick you’ve always wanted.

For this article, I am going to show you only how to shutdown the computer within certain amount of time. And also to restart your PC. The other use of this trick might be with your friends. If you want to impress your friends and get some WOW in the group then you must learn this anyhow.

So, without any delay let’s start.

Follow these steps carefully to set shutdown timer on the device:

  • Press Windows + R at once. It’ll open Run dialog box.
  • Write cmd and press Enter. Which will open up CMD.
  • Now be careful and follow the steps below.
  • Write, shutdown -s -t 600.
    Shutdown your Laptop with CMD in a Pro way
    Shutdown your Laptop with CMD in a Pro way

    (The shutdown command will initiate the shutdown. The -s also means shutdown & -t means the amount of seconds to initiate the shutdown. Here i’ve put 600 seconds which means 60seconds*10=600, we’ve got 10 minutes before shutdown)

  • How to Speed Up Torrent Download Speed
  • And if you want to abort the process, again go to CMD and write shutdown -a. The -a command will abort the shutdown.

Other useful commands you may use in cmd shutdown process:

/? Display help. This is the same as not typing any options.
/i Display the graphical user interface (GUI).
This must be the first option.
/l Log off. This cannot be used with /m or /d options.
/s Shutdown the computer.
/sg Shutdown the computer. On the next boot,
restart any registered applications.
/r Full shutdown and restart the computer.
/g Full shutdown and restart the computer. After the system is
rebooted, restart any registered applications.
/a Abort a system shutdown.
This can only be used during the time-out period.
Combine with /fw to clear any pending boots to firmware.
/p Turn off the local computer with no time-out or warning.
Can be used with /d and /f options.
/h Hibernate the local computer.
Can be used with the /f option.
/hybrid Performs a shutdown of the computer and prepares it for fast startup.
Must be used with /s option.
/fw Combine with a shutdown option to cause the next boot to go to the
firmware user interface.
/e Document the reason for an unexpected shutdown of a computer.
/o Go to the advanced boot options menu and restart the computer.
Must be used with /r option.
/m \\computer Specify the target computer.
/t xxx Set the time-out period before shutdown to xxx seconds.
The valid range is 0-315360000 (10 years), with a default of 30.
If the timeout period is greater than 0, the /f parameter is
/c “comment” Comment on the reason for the restart or shutdown.
Maximum of 512 characters allowed.
/f Force running applications to close without forewarning users.
The /f parameter is implied when a value greater than 0 is
specified for the /t parameter.
/d [p|u:]xx:yy Provide the reason for the restart or shutdown.
p indicates that the restart or shutdown is planned.
u indicates that the reason is user defined.
If neither p nor u is specified the restart or shutdown is
xx is the major reason number (positive integer less than 256).
yy is the minor reason number (positive integer less than 65536).

Or you can get information on each and every useful CMD commands from the official page of microsoft.

You can use these commands to perform some useful tasks using CMD.