Shutdown or restart windows from command line

Shutdown

shutdown -s -f -t 1

Restart

shutdown -r -f -t 1

-s  Shuts down the local computer.

-r  Reboots after shutdown.

-f  Forces running applications to close.

-t xx Sets the timer for system shutdown in xx seconds. The default is 20 seconds.

%d bloggers like this: