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.

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 .

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

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

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

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

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

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!

Update 26 May 2019
Category

System

Mac OS X

Hardware

Game

Tech info

Technology

Science

Life

Application

Electric

Program

Mobile