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 .
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
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
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:
- Instructions to open Command Prompt under Admin on Windows 8 and 10
- How to use Command Prompt to manage wireless networks on Windows 10?
- Use the CMD command to remove viruses on Windows computers
Good luck!
You should read it
- How to use the command history function in Command Prompt
- How to Make Command Prompt Appear at School
- Add Command Prompt to Power User Menu on Windows 10
- How to use Xcopy command in Command Prompt
- How to open Command Prompt on Windows 10, 8, 7, Vista and XP
- Instructions for using Command Prompt
- 6 Best Command Prompt Alternatives for Windows
- Windows prompt
- How to Customize the Font in Windows Command Prompt
- How to Unblock Command Prompt Anywhere
- How to Execute a Program in Command Prompt
- How to Create a Custom Windows Command Prompt
Maybe you are interested
What to do when open command window here does not appear?
How to switch users on the Linux command line
How to fix Mac Homebrew error 'zsh: command not found: brew'
What is the Command key on Windows?
How to use read command in Linux
Basic Linux commands everyone needs to know - Operations on Linux are much faster