banner



How To Restart Remote Desktop Service

There will be times equally a Windows Administrator 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 downward remote computers.

The first method uses a congenital in Windows control and the second method uses PowerShell.

Cheque information technology out.

Windows Shutdown Command

Windows systems has a built in shutdown control that can be used to restart or shutdown local and remote computers.

The command is shutdown.

To use this control just open the windows command prompt and type shutdown.

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

There are several control line switches, below I list the nigh useful options.

/s – Shutdown the computer

/r – restart reckoner

/m \\computer – Specify the remote computer

/l – Log off

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

/c "annotate" – Message to display on the screen before restart or shutdown

At present lets move onto some examples

Restart or Shutdown Examples with Control Line

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

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

Case one: Restart Remote Computer

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

shutdown /r /m \\pc2

The pop up beneath is what a Windows x system volition display.

Case 2: Restart With a Custom Message

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

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

Below is the pop up on the remote estimator with the custom message.

Case 3: Immediate Restart no Countdown

If you want to immediately restart with no countdown or message apply this command.

shutdown /r /1000 \\pc2 /t 0

If you want a longer inaugural just specify the seconds /t sixty

Example 4: Log user off remote estimator

If you just desire to log a user off the remote reckoner use this command.

shutdown /l /m\\pc2

Restart or Shutdown with Powershell

Hither are a few examples of how yous tin restart or shutdown computers with PowerShell.

The downside to PowerShell is it doesn't have as many options equally the shutdown command. At that place is no option to prompt users with a custom bulletin or provide a countdown.

Case 1: Employ Powershell to restart a computer

This command will immediately restart a remote computer. The -Forcefulness option will forcefulness a restart even if a user is logged on.

Restart-Computer -ComputerName REMOTE_COMPUTER_NAME -Forcefulness

Instance ii: Utilise PowerShell to shutdown a computer

This command volition shutdown a remote computer. Utilize the -Force to forcefulness a shutdown even if a user is logged on.

Cease-Computer -ComputerName REMOTE_COMPUTER_NAME -Force

Example iii: Utilize PowerShell to restart a list of computers

This is handy if you have several computers to restart. Just list all the computers you lot want in a text file and add together that to the PowerShell command.

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

Example iv: Use PowerShell to shutdown downwardly 2 computers

Finish-Calculator -ComputerName "Server01", "Server02"

Have fun!

How To Restart Remote Desktop Service,

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

Posted by: kylelinsomont.blogspot.com

0 Response to "How To Restart Remote Desktop Service"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel