Reboot the Windows system using the command line (CMD)

Reboot the Windows system using the command line (CMD)

 

Reboot the Windows system using the command line (CMD)

In order to use the command line terminal to restart Windows computers, you need to know what a command line terminal is. Well, the command line terminal is a book interface for your PC. It is a program that takes orders and provides the PC's operating system to run them.

You can use the command line to browse documents, files, and folders on your PC, similar to Windows Explorer on Windows or Finder on Mac OS. Crucially, the command line is entirely text-based, so you would never interact with a graphical interface.

With the built-in shutdown command, you can easily restart your Windows PC from the command line. I have mentioned all commands based on their purpose to restart your Windows computer. Please read the article carefully to know how to restart Windows Cmd.

Command line to restart Windows computer

1) Press Windows + R key at the same time

2) Type cmd and click OK

3) Type shutdown /r and press Enter

The above command works successfully on Windows 10, Windows 8, 7 and all other Windows versions.

Typing the above command at the command prompt and pressing Enter will set a 30 second pause to close the applications. After 30 seconds, Windows restarts.

If you don't need to restart Windows with your own time, you can do it with the following command:

    • shutdown/r/t timeout_in_seconds

    Note: You must provide your time within timeout_in_seconds .

    An alternative method to restart your Windows system

    Here's how to restart your Windows PC without a command line:

    Step 1: Press the Windows key on your keyboard.

    Step 2: Now click on the Power icon as shown below .

    Step 3: Then click Restart.

    Command to shut down a Windows PC

    To shut down your PC, type or copy-paste the shutdown /s command and press Enter .

    An alternative method to shut down your Windows system

    If you don't want to shut down your PC using Command Prompt, you can follow the steps below to shut down your computer.

    Step 1: First, press the Windows key on your keyboard.

    Step 2: Now click on the Power icon as shown below .

    Step 3: Then click Shut down .

    Command to cancel reboot

    In case you gave your PC a restart command but changed your mind and you don't want to restart your PC, you can stop Windows from restarting by running the following command.

    1) Open Command Prompt

    2) Type ' shutdown/a ' and press Enter .

    3) This will stop the shutdown process

    When you run this, a pop-up window will appear saying 'The scheduled shutdown has been cancelled'. The message indicates that the reboot or shutdown has paused.

    Here's how to log out from the command line .

    Command to force restart Windows PC without warning

    To force restart your Windows system, you can type or copy the command ' shutdown /r /f ' in your command prompt and press Enter .

    Now if you want to open the shutdown graphical user interface (GUI), you can do that by typing the command ' shutdown /i' ' in your command line terminal.

    You can also add the reasons why your PC is restarting by typing the command ' ' shutdown /r /c ' (without the quotes). This is the reason for restarting the computer.'

    That's all you need to know about restarting your Windows PC from the command line terminal. I hope you find my article interesting and knowledgeable.

    Please comment below if you encounter problems restarting the system.

แสดงความคิดเห็น

Designed by OddThemes | Distributed by Gooyaabi