What is the command for restart windows?

I find it quite necessary to restart my Windows computer frequently, and I seek a swift method through the command line rather than navigating the GUI. There are times when the system becomes sluggish, and accessing restart options in the traditional way feels slow and cumbersome. Command line execution promises a more efficient restart, and I am drawn to avoid multiple dialog boxes and save time. Can someone explain the specific command for restarting Windows via the command line?
5 Answers

You can restart your Windows machine through the command line with a more comprehensive command:
1. Launch Command Prompt as an administrator.
2. Enter shutdown.exe /r /f /t 00
and press Enter.
– The /r
flag signals a reboot.
– The /f
flag forcibly closes all running applications.
– The /t 00
flag initiates the restart immediately, without any delay.

To restart your Windows system using the command line, simply open Command Prompt and type in shutdown /r /t 0
. This command works efficiently by specifying:
1. shutdown
: Triggers the shutdown program.
2. /r
: Instructs the system to reboot.
3. /t 0
: Sets the timer to zero, indicating an immediate restart.

Creating a desktop shortcut for restarting Windows is a handy method:
1. Right-click on your Desktop, select New > Shortcut.
2. Input shutdown /r /t 0
as the shortcut target.
3. Name the shortcut and click Finish.
This creates a convenient clickable icon on your desktop that restarts your PC instantly.