All Frequency Restart, Shutdown, Remote Off ... with Command Prompt

Often users often turn off the computer, restart the computer . using the shutdown options on the Start menu. However, few of us know that using Command Prompt can also shutdown, restart the computer, schedule a computer shutdown or enable hibernation, . and even if you have Admin rights you can Turn off other computers remotely.

In the following article, the Network Administrator will guide you how to use the Command Prompt to shutdown, restart the computer, log off the current account .

All Frequency Restart, Shutdown, Remote Off ... with Command Prompt Picture 1

To execute this command, the computer needs to run Windows XP, Vista, 7.8, 8.1 or Windows 10, have a Command Prompt that works normally, not disabled by the virus.

1. Open Commant Prompt

- Press Windows + R key combination to open the Run command window.

- On the Run command window, enter cmd and press Enter to open Command Prompt.

2. Shutdown command, turn off the computer

All Frequency Restart, Shutdown, Remote Off ... with Command Prompt Picture 2

On the Command Prompt window, enter the command "shutdown -s" (without the quotes), then press Enter.

After the command is executed, your computer will automatically turn off.

3. Restart command, restart the computer

All Frequency Restart, Shutdown, Remote Off ... with Command Prompt Picture 3

To restart your computer with the Command Prompt, enter the "shutdown -r" command (without the quotes) in the Command Prompt window and press Enter. In this command, the -r command tells your computer to reboot after shutdown.

4. Logoff command, exit the current account

Enter the command "shutdown -l" (without the quotes) in the Command Prompt window and press Enter to finish. -L command to notify your computer log off.

5. The command to turn off the remote computer

Enter the command "shutdown -s -m name of the computer" into the Command Prompt window and press Enter.

Note:

Replace the name of the computer with the name of the remote computer you want to turn off.

To turn off a remote computer, you must access it under Admin. To know if you have admin rights, press the Windows + R key combination to open the Run command window, then enter the computer name in the Run command window and press Enter .

Note, if you don't remember the name of the remote computer, you can find it by opening a list of all the computers connected to your computer. To open a list of all computers connected to your computer, enter the "net view" command (without the quotes) in the Command Prompt window.

If you connect to the remote computer, you will be asked to enter your username (username) and password. Your task is to enter the username and password into it, at this time the screen displays a list of all the available directories. This will help you determine if you can perform remote desktop shutdown.

6. Activate Hibernate (hibernate) mode on the computer

Enter the command "Rundll32.exe Powrprof.dll, SetSuspendState" (without the quotes) in the Command Promt window and press Enter.

7. Timer off your computer or remote computer

Enter the command "shutdown -s -t 60" into the Command Prompt window to turn off your computer after 60 seconds.

In case if you want to turn off the computer after another time, just change 60 by the amount of time you want to shutdown.

8. Display the message containing the reason for the shutdown

Enter the command shutdown -s -t 500 -c "I am tired. I don't want to work anymore." (with quotes) in the Command Prompt window and press Enter.

The -c command is used in the above statement to show why you want to turn off the machine, and the reason enclosed in quotes will be displayed in the dialog window.

9. Stop the system shutdown

Enter the command "shutdown -a" (without the quotes) in the Command Prompt window and press Enter.

Refer to some of the following articles:

  1. Instructions to open Command Prompt under Admin on Windows 8 and 10
  1. How to use Command Prompt to manage wireless networks on Windows 10?
  1. Use the CMD command to remove viruses on Windows computers

Good luck!

4 ★ | 2 Vote

May be interested

  • Summary of several logout methods on Windows 8 and Windows 10Photo of Summary of several logout methods on Windows 8 and Windows 10
    on windows 7 and previous windows versions, users can easily log out of their accounts. however, on windows 8 and windows 10, this process is a bit more complicated.
  • Speed ​​up Windows 10 from boot to shutdownPhoto of Speed ​​up Windows 10 from boot to shutdown
    disable applications that start with the system, remove programs, unused applications, clean bloatware ... let your windows 10 computer run smoother and faster.
  • This is how to customize and disable (turn off) Action Center on Windows 10Photo of This is how to customize and disable (turn off) Action Center on Windows 10
    the action center feature in windows 10 is not loved by many users because they take time and effort to delete these notifications on the screen. if you are a windows 10 user and you want to disable the action center feature in windows 10, you can refer to the following article of network administrator.
  • What to do when Windows Update crashes 0% on Windows 7/8/10?Photo of What to do when Windows Update crashes 0% on Windows 7/8/10?
    a windows update error crashes is one of the most common problems windows users face. if you are using windows 7/8/10 and during the update process you are notified that the error cannot be updated, or the error is updating, it will be suspended 0%, then you can apply the solution in the article below. here of network administrator to fix the error.
  • How to activate the hidden Admin account on Windows 7/8/10Photo of How to activate the hidden Admin account on Windows 7/8/10
    microsoft has hidden admin accounts in windows 7, 8, 10 or vista operating systems to ensure the system is not tampered with and affected by user settings. however, when used, many programs require running under amin.
  • What is Developer Mode on Windows 10? How to activate this mode?Photo of What is Developer Mode on Windows 10?  How to activate this mode?
    developer mode is a new feature developed on windows 10 operating system. with this feature you do not require you to have a developer license to develop, test or install the application. just enable developer modes mode on windows 10 and everything will be set up.