Home >Common Problem >3 Easy Ways to Restart a Remote Computer Using CMD

3 Easy Ways to Restart a Remote Computer Using CMD

王林
王林forward
2023-04-28 14:10:076429browse

使用 CMD 重启远程计算机的 3 种简单方法

Looking for reliable and secure remote desktop software? Mikogo Helps millions of users and IT professionals connect, collaborate, and solve a variety of technology problems. Some key features include:
  • 256-bit encryption and complete privacy
  • Multi-platform support for all major operating systems
  • Fast and intuitive file transfer
  • Session Recording for Basic Operations
  • High Frame Rate for Simplified Troubleshooting
  • Get the Son of God

If you are in the office or at home and With multiple computers set up in different rooms, it can be difficult to restart each computer. You can use Windows CMD to restart a remote computer without having to physically restart the computer.

However, for this to work, you need to make sure that the remote computer you want to restart is on the same network as the remote computer you are using. Additionally, you will need administrative credentials or a username and password.

You also need to enable remote shutdown on the host for this to work properly. If you don’t want to use CMD, you can use some of the best remote reboot software to control Windows 10/11.

Using the Windows Shutdown Command to Restart a Remote Computer

The Windows operating system comes with a shutdown command that can be used to restart a remote computer using CMD. It is available for Windows 11, 10, 8 and even 7 users. This command is closed.

Expert Tip: Some PC problems are difficult to solve, especially if the repository is corrupted or Windows files are missing. If you are having trouble fixing errors, your system may be partially corrupted. We recommend installing Restoro, a tool that can scan your machine and determine where the fault lies.
Click here to download and start repairing.

This command provides the user with several options to use when restarting or shutting down the computer. Some of the most common options include:

  • /r - Used to restart the computer.
  • /s – used when shutting down the computer.
  • /m \\computer - Used to specify the remote computer to restart or shut down.
  • /l – Used to log out of the computer.
  • /t xx – Used when setting the timeout before restarting or shutting down to xx seconds.
  • /c "comment" - Used when you want to display a specific message on the screen before restarting or shutting down.

How to restart a remote computer using CMD?

1. Use the shutdown command

  1. Click the Start button in the lower left corner in Windows 10 or previous versions of Windows operating system. However, the Start button is located in the center of the Windows 11 taskbar.
  2. Type cmd or command prompt in the search box.
  3. Right-click on the command prompt to get the menu to the right of the CMD icon. 使用 CMD 重启远程计算机的 3 种简单方法
  4. Select Run as administrator to launch the command prompt with administrative rights. However, you need to log in as an administrator to ensure that command line access is not denied.
  5. Type the following command, replacing computer name with the name of the PC you want to restart: shutdown /m \\computername /r使用 CMD 重启远程计算机的 3 种简单方法
  6. If you want To close all programs before restarting, type /f followed by a space. However, users are notified to save their work.
  7. Add /c after /f and then type a message in quotes to send a message to the remote computer before restarting. Your command will now look like thisshutdown /m \\computername /r /f /c "This computer is about to restart"使用 CMD 重启远程计算机的 3 种简单方法
  8. You will get a remote shutdown dialog window. Click Add on the right side of the Remote Shutdown dialog window. 使用 CMD 重启远程计算机的 3 种简单方法
  9. Type the IP address of the computer you want to restart and click the OK button. This allows you to restart the remote computer using its IP address. 使用 CMD 重启远程计算机的 3 种简单方法
  10. Select the action you want the remote computer to perform. In this case, choose Restart.
  11. Click the Warn users of this action check box to set a timer for the computer to restart. However, this is optional.
  12. Type the number of seconds the computer should delay before restarting. 使用 CMD 重启远程计算机的 3 种简单方法
  13. Click the Scheduled checkbox to create an event tracker for remote restart. Again, this is optional.
  14. Select a reason for restarting from the drop-down list and type a note that you want to display on the computer before it restarts.
  15. Click the OK button. 使用 CMD 重启远程计算机的 3 种简单方法

3. Windows Powershell

  1. Click the Start button and type Powershell.
  2. Right-click Windows Powershell and select Run as administrator. 使用 CMD 重启远程计算机的 3 种简单方法
  3. Run the following command to use Powershell to restart a remote computer even if it is in use. Restart-Computer -ComputerName REMOTE_COMPUTER_NAME -Force
  4. Replace REMOTE_COMPUTER_NAME with the name of the computer you want to restart and press Enter. 使用 CMD 重启远程计算机的 3 种简单方法

The three options discussed above will help you easily reboot a remote computer using CMD without having to physically access the computer. However, make sure you save all your work before starting the process. If you don't do this, you may end up losing your unsaved work.

You can also use special tools like Redmi 3 to access any remote computer in a short time. The software will provide you with secure access to safely reboot any remote PC on your network.

The above is the detailed content of 3 Easy Ways to Restart a Remote Computer Using CMD. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yundongfang.com. If there is any infringement, please contact admin@php.cn delete