Simple Shutdown/Logoff

Published on 7 May 2021 at 13:28

I use the following command to avoid clicking another option. It also looks cool to people who don't know what it does.

you can press the windows logo + R, this opens the run window.

To shutdown the device you can type: shutdown -s -t 0
-s: shutdown
-t: time (in this case immediately, 0 seconds)

To restart the device you can type: shutdown -r -t 0
-r: reboot

To logoff a server you can simply type: logoff

 

Using these commands I saved some time but also prevented me to press a wrong button after pressing start and power... This is also usable in a script after you have made some adjustments, you can reboot the system by adding the command in a .bat file.

Add comment

Comments

There are no comments yet.