Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How does windows restart a local or remote computer

2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you "how windows restarts a local or remote computer". It is easy to understand and well organized. I hope it can help you solve your doubts. Let me lead you to study and learn this article "how to restart a local or remote computer by windows".

Shutdown commands and switches

The command used to reboot the computer is "shutdown", and several different switches can be concatenated with this command to perform various functions. The following is a list of switches and their uses:

/ s-turn off the computer

/ r-restart the computer

/ m-specify the remote computer name

/ t-sets the time delay in seconds

/ c-Custom message to display

Restart the local computer using the command line

We will start with how to restart the local Windows computer using the command prompt, and then restart the remote computer on the same network with the same login name.

1. Restart the computer

To simply reboot the computer, enter the following command:

Shutdown / r

The system will then have a prompt message and the system will restart immediately.

two。 Restart the computer after a delay

You can also use the following command to set the time delay before the computer restarts. Replace TimeInSeconds with the number of seconds to delay, which can be set up to 60 seconds.

Shutdown / r / t TimeInSeconds

3. Cancel computer restart

If you decide to cancel the system restart that will take place after a period of time, you can use the following command to cancel it:

Shutdown / a

Entering this command will display a notice in the tray informing you that the operation has been cancelled.

4. Forced restart of the computer

You can also add additional switches to force a reboot of the computer, which prevents any open applications or unsaved data from stopping restarting and restarting the computer.

Shutdown / r / f

5. Add a custom message when you restart your computer

You can also add custom messages to display when the computer is rebooted, which is especially useful for IT administrators who restart remote computers. Use the following command to do this:

Shutdown / r / c "Custom message"

In addition, you can use the / c switch in any command used to add custom messages.

6. Turn off the computer

You can also use the / s switch instead of the / r switch in all the above commands to turn off the computer completely. It can be used as a stand-alone switch or in conjunction with the / t switch to turn it off with a certain delay.

Restart the remote computer using the command line

Now that you know that you can restart the local computer with the command, it will be easy to restart the remote computer.

The switch used with the shutdown command to specify another computer is / m.

1. Restart the remote computer

To restart the remote computer, use the following command when replacing RemotePCName with the name of the target device.

Shutdown / r / m\\ RemotePCName

Make sure that the remote computer is on the same network as your network for the command to work properly.

This is a command to reboot the remote computer with a custom message after a delay of 60 seconds:

Shutdown / r / m\\ RemotePCName / t 60 / c "your computer is being restarted by an IT administrator" is all the contents of the article "how to restart a local or remote computer by windows". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report