banner



How To Restart Remote Computer Windows 10

There will exist times every bit a Windows Ambassador that you will need to reboot or shutdown a remote computer or server.

In this tutorial, I'll show you two easy methods for rebooting and shutting down remote computers.

The first method uses a built in Windows command and the second method uses PowerShell.

Check it out.

Windows Shutdown Command

Windows systems has a congenital in shutdown command that can exist used to restart or shutdown local and remote computers.

The command is shutdown.

To utilise this control simply open the windows control prompt and type shutdown.

To view the full list of command options type shutdown /? in the CMD window.

There are several command line switches, below I listing the nigh useful options.

/due south – Shutdown the computer

/r – restart computer

/1000 \\calculator – Specify the remote figurer

/l – Log off

/t thirty – Set the time out flow earlier shutdown to xxx seconds

/c "comment" – Bulletin to display on the screen before restart or shutdown

Now lets move onto some examples

Restart or Shutdown Examples with Command Line

In these examples, I'll be on PC1 and will initiate a remote restart or shutdown on PC2.

I'll be using the /r switch in these examples, yous can change them to /s to shutdown instead of restart.

Instance 1: Restart Remote Computer

By default, this will prompt the remote computer and give it about a minute earlier information technology restarts.

shutdown /r /m \\pc2

The pop upwards beneath is what a Windows 10 system volition display.

Instance 2: Restart With a Custom Message

You may want to display a custom message to the logged on users, to do that but apply the /c command.

shutdown /thou \\pc2  /c "The IT department has initiated a remote restart on your computer"

Below is the popular up on the remote reckoner with the custom message.

Example iii: Immediate Restart no Inaugural

If you lot desire to immediately restart with no countdown or message use this command.

shutdown /r /m \\pc2 /t 0

If you desire a longer countdown just specify the seconds /t lx

Example iv: Log user off remote estimator

If you just want to log a user off the remote calculator utilise this command.

shutdown /l /k\\pc2

Restart or Shutdown with Powershell

Here are a few examples of how y'all can restart or shutdown computers with PowerShell.

The downside to PowerShell is it doesn't have as many options every bit the shutdown command. There is no option to prompt users with a custom bulletin or provide a inaugural.

Example 1: Use Powershell to restart a computer

This control will immediately restart a remote computer. The -Force option will strength a restart even if a user is logged on.

Restart-Calculator -ComputerName REMOTE_COMPUTER_NAME -Force

Case 2: Use PowerShell to shutdown a computer

This control will shutdown a remote computer. Use the -Force to force a shutdown fifty-fifty if a user is logged on.

Terminate-Reckoner -ComputerName REMOTE_COMPUTER_NAME -Forcefulness

Example 3: Use PowerShell to restart a listing of computers

This is handy if you have several computers to restart. Just listing all the computers you want in a text file and add that to the PowerShell control.

restart-calculator (go-content c:\work\computers.txt)

Example four: Utilise PowerShell to shutdown downward two computers

End-Figurer -ComputerName "Server01", "Server02"

Accept fun!

Source: https://activedirectorypro.com/restart-shutdown-remote-computer/

Posted by: tristanwirciang.blogspot.com

0 Response to "How To Restart Remote Computer Windows 10"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel