*1) Press Windows Key + R. *2) Enter CMD and press Enter.
Write command in the cmd:
shutdown /s /t 3600
shutdown -s -t 3600
This command will shutdown your windows pc in one hour, or 3600 second which I specified in example above. You can change it as you need! It's simple.
|-s||Shutdown and Power off the computer|
|-c "Comment"||Add a comment|
|-t xx||Time before shutdown|
SHUTDOWN -s -c "Ha Ha, I Shut Down your computer!!!!" -t 60
That will Turn your computer off in 60sec and display the message. WARNING: After you start this, you can not stop it!!!! (unless you know how..... -a |Abort ;) )
On Unix/Linux/Mac OSX
On the terminal you should type:
e.g. to reboot the machine immediately
sudo shutdown -r now
e.g. to shutdown the machine in 60 minutes
sudo shutdown -h +60
More details here.
Written with StackEdit.