Skip to content

RDPGuide

How to Reboot or Restart a Remote Desktop Computer

  • Updated
  • 12 min read
  • VPS Lane Engineering
Short answer

Run shutdown /r /t 0 in the session or press Ctrl+Alt+End and pick Restart. To reset only RDP, restart the TermService service.

How we tested this

The checks that a host is back were run for real on Ubuntu 24.04.5 LTS with OpenBSD netcat 1.226, nmap 7.94 and an xrdp 0.9.24 listener on port 41389 that we stopped and started to stand in for a reboot. The sandbox had no IPv6, so only IPv4 was tested. The Windows commands and PowerShell examples were checked against the Microsoft Learn pages listed under Sources but were not run on a Windows machine, so their output and behaviour were not tested for this article and no output is shown for them.

Ways to Restart a Remote Desktop Computer

The ways to restart a remote desktop computer depend on whether the session still responds and what your account may do.

Restart and shutdown methods for a Remote Desktop host
MethodRun it fromUse it when
Start menu power buttonInside the sessionRestart and Shut down are shown to you
Ctrl+Alt+End, then the power iconInside the sessionThe Start menu offers only Disconnect and Sign out
shutdown /r /t 0Command Prompt or PowerShell in the sessionYou want a fast restart you can script
Restart-ComputerPowerShell, in the session or from another machineYou want to restart and wait for the host to come back
schtasks with shutdownInside the session, onceYou want a restart at a quiet hour
Provider control panel or consoleYour hosting accountThe session is frozen or the machine is off

Restart From the Start Menu

To restart from the Start menu inside the session, open Start, select Power and then Restart.

Windows closes running programs and restarts the remote computer, and your RDP window closes with it. If Power shows only Disconnect and Sign out, use the keyboard routes or the command line below.

Disconnecting closes your RDP window but leaves your session and programs running. Signing out closes your own session only. Restarting reboots Windows and ends every session on the computer.

The steps apply to Windows 10 and 11 Pro, Enterprise and Education and to Windows Server 2016 to 2025, the versions the Microsoft command pages list. Standard Windows 10 servicing ended on October 14, 2025, so a Windows 10 host that still gets security updates needs Extended Security Updates or an edition with its own supported lifecycle, such as an eligible LTSC release. If Remote Desktop is not turned on yet, start with our guide to enabling RDP on Windows. Menus can differ a little between builds, and policies set by an administrator can hide or block some options.

Before you start, your account needs the Shut down the system user right. On a stand alone or member server that right goes by default to Administrators and Backup Operators, while client editions such as Windows 11 also give it to Users. Domain controllers add Server Operators and Print Operators, and a domain policy can change any of these defaults, so check the effective policy on the machine itself.

Why Restart Is Missing From the Start Menu in RDP

Restart can be missing from the Start menu in RDP because of policy, and what you see also depends on the Windows version and your rights.

Try the two keyboard routes below first. If neither shows a restart option, a policy is probably in force, as explained at the end of this section.

Use the Shut Down Windows Dialog

The Shut Down Windows dialog opens when you click an empty part of the remote desktop and press Alt+F4.

Click the remote desktop first so the shortcut goes to the session, then choose Restart or Shut down in the list. If a program window has focus, Alt+F4 closes that program instead, so minimize it first.

Use Ctrl+Alt+End for the Windows Security Screen

Ctrl+Alt+End opens the Windows Security screen of the remote computer, the session version of pressing Ctrl+Alt+Del.

Microsoft lists it among the Remote Desktop shortcut keys, while Ctrl+Alt+Del itself goes to your own computer. On the security screen, the power icon in the lower right corner offers Restart and Shut down where policy allows. Clients outside Windows can use another key or a menu entry for it, which our guide on sending Ctrl+Alt+Del over RDP covers.

The Policy That Hides Restart

The policy that hides Restart is usually Remove and prevent access to the Shut Down, Restart, Sleep, and Hibernate commands.

It sits under User Configuration, Administrative Templates, Start Menu and Taskbar. Microsoft describes it as removing those commands from the Start menu and the Windows Security screen. It does not remove the Shut down the system user right, and it does not stop programs that perform these functions, so a user who keeps the right may still restart from the command line unless something else blocks it. On a shared server the user right is the real control.

Restart With the Shutdown Command

The shutdown command restarts or turns off Windows from Command Prompt or PowerShell, with no menus involved.

cmd
shutdown /r /t 0

/r restarts and /t 0 removes the wait. With no /t, Windows waits 30 seconds and warns signed in users. Your RDP window closes once the machine goes down, which is expected.

For a planned restart, give a reason so it is logged in the Shutdown Event Tracker. This one waits 60 seconds, forces programs to close and records the reason Application: Maintenance (Planned).

cmd
shutdown /r /t 60 /f /d p:4:1 /c "Restart after app update"

Shutdown Flags That Matter Over RDP

These shutdown flags matter most over RDP, because some of them leave a remote machine out of reach.

Shutdown command flags, from the Microsoft command reference
FlagWhat it doesOver RDP
/rRestarts after shutdownThe normal choice
/sShuts downOnly if you can power it on again, as covered below
/t xxxWaits xxx seconds, 0 to 315360000, default 30Any value above 0 also implies /f
/fCloses programs without warningUnsaved work in every session can be lost
/d p:xx:yyLogs a planned reason codeHelps later when you read the logs
/c "text"Adds a comment of up to 512 charactersRecorded with the shutdown reason and shown in the warning of a timed shutdown
/aCancels a pending shutdownWorks only during the wait
/m \\SERVER01Targets another computerFor a session that hangs, see below
/oRestarts to Advanced boot options, needs /rAvoid unless you have a console
/pPowers off the computer running the command at once, with no warning, and combines only with /d or /fRun in an RDP session, it powers off the remote host

To cancel a restart you set by mistake, run shutdown /a before the countdown ends. Run it in a new window, since the command that set the timer has already finished.

Shut Down a Remote Server Only With a Way Back

Shut down a remote server only when you have a way back, because RDP cannot turn a powered off machine on again.

cmd
shutdown /s /t 0

On a hosted server you then power it on from the provider control panel. On an office PC someone has to press the button, unless Wake on LAN or a management card is already set up. If you only want to leave, Sign out or Disconnect is the right choice, not Shut down.

Restart Remote Desktop With PowerShell

To restart Remote Desktop hosts with PowerShell, use Restart-Computer, which works locally and on remote computers.

powershell
Restart-Computer

-Force forces an immediate restart. You may need it when other users are signed in or a program will not close, and anything unsaved in those sessions is lost.

powershell
Restart-Computer -Force

From a second Windows machine you can restart the host and wait for it. The command below gives up after 300 seconds and checks every 2 seconds until PowerShell remoting answers again.

powershell
Restart-Computer -ComputerName SERVER01 -Credential (Get-Credential) -Wait -For PowerShell -Timeout 300 -Delay 2

The restart itself calls the WMI shutdown method, which Microsoft documents as needing the Shut down the system privilege. For remote restarts the account also needs remote management access and permissions for the protocol in use. Do not confuse this WMI requirement with the separate Force shutdown from a remote system right that network shutdown requests such as shutdown /m need. By default that right goes to Administrators on stand alone and member servers and client computers, and to Administrators and Server Operators on domain controllers. In Windows PowerShell 5.1, Restart-Computer -ComputerName uses DCOM by default, and <code>-Protocol WSMan</code> switches it to WS-Management. The firewall rules and remote management setup you need depend on the protocol. The restart does not need a PowerShell remoting session, but -Wait -For PowerShell does, because it waits for remoting to answer again. A pass there means remoting is back, not that the RDP sign in screen is ready. -Wait is not valid for the local computer, which makes sense, since your own session ends with the restart. Without -Delay, the cmdlet checks every 5 seconds.

Shut Down With Stop-Computer

Stop-Computer is the shut down counterpart and takes the same -ComputerName, -Credential and -Force parameters.

powershell
Stop-Computer -ComputerName SERVER01 -WhatIf

-WhatIf shows what would happen without doing it, which is a safe first run. Remove it to shut the computer down. On Linux and macOS, PowerShell 7.1 and later also has both cmdlets, but there they only call the native shutdown command and do not accept -ComputerName.

Restart Remote Desktop Services Without a Reboot

You can restart Remote Desktop Services without a reboot when Windows works but RDP connections fail or the listener is stuck.

This restarts the service that accepts RDP connections, not Windows. Microsoft lists two services that should be running for RDP, Remote Desktop Services (TermService) and Remote Desktop Services UserMode Port Redirector (UmRdpService). Check them first in an administrator PowerShell window.

powershell
Get-Service -Name TermService, UmRdpService | Select-Object Name, Status, StartType

Both should show Running. If TermService is stopped, start it with Start-Service -Name TermService, then start UmRdpService too if it stays stopped, as Microsoft advises. If it is running but RDP connections fail, restart it with the lines below.

Run them from the provider console or another management connection that does not depend on the RDP service you are restarting, not from your only RDP session. -Force is needed because the port redirector depends on TermService, and since restarting it can leave the redirector stopped, the second line starts it again if needed.

powershell
Restart-Service -Name TermService -Force
if ((Get-Service -Name UmRdpService).Status -ne 'Running') { Start-Service -Name UmRdpService }
Get-Service -Name TermService, UmRdpService

If both services show Running and the configured RDP port accepts connections, the machine is reachable on that port. That does not prove the listener works or that users can sign in. A running TermService can still have a broken listener, so check that qwinsta shows rdp-tcp in the Listen state, then the listening port, firewall rules, sign in and account permissions, as Microsoft describes in Remote Desktop cannot connect to the remote computer.

What to Do When the Remote Session Hangs

When the remote session hangs, work from the gentlest fix to the hardest, because each later step risks more unsaved work.

  1. Wait a minuteUpdates, a full disk or a busy program can freeze the screen for a while without the machine being down.
  2. Disconnect and reconnectClose the client window. The session keeps running on the host, and a new connection often brings a working screen back.
  3. Restart the RDP serviceIf Windows still runs but RDP will not accept you, restart TermService from another session or the console as shown above.
  4. Open the security screenPress Ctrl+Alt+End and use Task Manager to end the stuck program, or the power icon to restart.
  5. Open the provider consoleIf no RDP session works, open the console of the server in your hosting panel. It reaches Windows even when the RDP listener is down.
  6. Restart from another machineUse shutdown /r /m \\SERVER01 /t 0 /f or Restart-Computer -ComputerName SERVER01 -Force if remote management is allowed.
  7. Use the provider reboot or resetTry a graceful reboot first if Windows still responds. A forced reset or power cycle interrupts running programs and can lose data, so use it only when other methods fail.

What restarting from another machine needs depends on the method. shutdown /m needs the Force shutdown from a remote system right on the target, which is separate from the local right, and a firewall that lets its remote procedure call traffic in. Restart-Computer -ComputerName needs the Shut down the system privilege documented for its WMI method, plus remote access for the protocol it uses, DCOM by default in Windows PowerShell 5.1. It does not need a PowerShell remoting session unless you add -Wait -For PowerShell. On a hosted Windows RDP server, use the provider panel as a last resort when Windows stops answering. The Windows steps need the relevant user rights, and managing services and creating scheduled tasks need administrator access.

If the session or the host still misbehaves after a restart, our guide to connecting to RDP from any device walks through the connection and sign in checks.

Common restart problems over Remote Desktop
What you seeLikely causeFix
No Restart in the Start menuPolicy or the session type hides itUse Alt+F4 on the desktop, Ctrl+Alt+End or shutdown /r
Access is denied from shutdownYour account lacks the shutdown rightUse an administrator account or ask whoever manages the policy
Restart-Computer does not restartOther users are signed in or a program will not closeCheck qwinsta, then add -Force if losing unsaved work is acceptable
Machine never comes backUpdates are installing or boot failedWait, then open the provider console to see the screen
Port answers but sign in failsRDP may still be starting, or authentication and account policies may be blocking accessWait briefly, then check the listener, firewall, account permissions and sign in policies

Check Who Is Signed In Before a Restart

Check who is signed in before a restart with qwinsta, because the restart ends their sessions as well as yours.

cmd
qwinsta

Each line is a session with its name, user, ID and state. A > marks your own session. Active means the session is connected, while Disc means it is disconnected but its programs may still be running. On a single user desktop you will usually see only yourself and the console.

If a stuck session of your own is the problem, signing it out can be enough without a restart. Put the session ID from qwinsta in place of 2.

cmd
logoff 2

Signing out ends every program in that session and deletes it, and logging off another user needs Full Control permission. Run qwinsta again. If the session no longer appears in the list, it is gone.

Schedule a Restart for a Quiet Hour

To schedule a restart for a quiet hour, use a delay in the shutdown command or a task in Task Scheduler.

Restart Once After a Delay

A one time restart after a delay only needs a longer /t value in seconds. This restarts in two hours.

cmd
shutdown /r /t 7200 /d p:4:1 /c "Planned restart in two hours"

Because the wait is above 0, /f is implied and open programs close without asking. The countdown is lost if the machine restarts for another reason first.

Restart Every Week With a Scheduled Task

A scheduled task restarts the computer every week, and it keeps working after reboots. Run this in an administrator prompt.

cmd
schtasks /create /tn "Weekly restart" /tr "shutdown.exe /r /t 60 /d p:4:1" /sc weekly /d SUN /st 03:00 /ru SYSTEM /rl HIGHEST /f

This runs as the System account every Sunday at 03:00 by the clock of that computer, so check its time zone first. Because it uses /t 60, programs are forced to close, and the task runs whether or not anyone is signed in, so warn users to save their work. Confirm the task exists and read its next run time.

cmd
schtasks /query /tn "Weekly restart" /v /fo list

A listed task with the right next run time shows it is registered. It does not prove the restart works, so watch the first run or restart once by hand with the same command. Remove the task with schtasks /delete /tn "Weekly restart" /f.

Confirm the Remote Computer Is Back After a Reboot

To confirm the remote computer is back after a reboot, check its RDP port from another machine until it answers, then sign in.

In this section 203.0.113.10 and SERVER01 are documentation examples, so replace them with your own address or name. RDP listens on TCP 3389 unless the port was changed.

From Windows

From Windows, this PowerShell loop checks the port up to 60 times, waiting 5 seconds between failed checks.

powershell
$ready = $false
foreach ($i in 1..60) {
    if (Test-NetConnection 203.0.113.10 -Port 3389 -InformationLevel Quiet -WarningAction SilentlyContinue) {
        "RDP port answers after $i checks"; $ready = $true; break
    }
    Start-Sleep -Seconds 5
}
if (-not $ready) { Write-Warning 'RDP port did not answer within 60 checks' }

Each <code>Test-NetConnection</code> attempt can itself wait for a network timeout, so the whole loop can run longer than 5 minutes.

From Linux or macOS

From Linux or macOS, a short netcat script checks the port up to 60 times, about 2 to 5 seconds per failed check.

bash
#!/bin/bash
host=${1:?host}; port=${2:-3389}
for try in $(seq 1 60); do
  if nc -z -w 3 "$host" "$port" 2>/dev/null; then
    echo "$(date +%T) port $port answers after $try checks"; exit 0
  fi
  echo "$(date +%T) check $try: no answer"; sleep 2
done
echo "$(date +%T) gave up after 60 checks"; exit 1

A refused connection fails at once, so a check then takes about 2 seconds. A timeout uses the full 3 second wait, so each check takes about 5, and the whole run can last up to about 5 minutes. Save the script as wait-rdp.sh, make it executable and run ./wait-rdp.sh 203.0.113.10 3389.

The output below is real, from Ubuntu 24.04.5 against an xrdp 0.9.24 listener on port 41389 that we stopped and started again 9 seconds later. It tests port polling while a service goes away and returns, not a Windows reboot. We ran it against the local address.

Output
09:48:24 check 1: no answer
09:48:26 check 2: no answer
09:48:28 check 3: no answer
09:48:30 check 4: no answer
09:48:32 check 5: no answer
09:48:34 port 41389 answers after 6 checks

With the listener left stopped, the run ends like this and exits with code 1, so a script that calls it can tell the host never came back. The Windows loop prints a warning in the same case.

Output
09:50:33 check 60: no answer
09:50:35 gave up after 60 checks

While the listener was stopped in our test, netcat got Connection refused at once. That usually means the host or something in between actively rejected the connection. A timeout can mean the host is still booting, a firewall drops packets silently or the path is down. Neither result alone names the cause. To check that the service answering is really RDP, ask nmap to identify it.

bash
nmap -Pn -sV -p 41389 203.0.113.10

The command shows the documentation address. For the recorded test we ran it against the local test address, as with the netcat test, and the output below is from that run.

Output
PORT      STATE SERVICE       VERSION
41389/tcp open  ms-wbt-server xrdp

A Windows host normally shows as Microsoft Terminal Services in the version column. The tests used IPv4 only. If you connect over IPv6, run the same check against the IPv6 address, since the two can be filtered differently.

If the port stays closed or times out, check whether Windows has finished booting, whether Remote Desktop Services runs and whether a firewall blocks the path. If the port answers but your sign in is rejected, the machine is reachable, but the listener or sign in process may still have a problem. Check the account, its Remote Desktop permission, authentication settings and policies. Our guide to connecting to RDP from any device covers the sign in side.

An open port proves only that something accepts connections on it. It does not prove the RDP listener is healthy, that sign in works or that your programs started, so finish with a real connection. Inside Windows, (Get-CimInstance Win32_OperatingSystem).LastBootUpTime shows when the machine last started. Compare it with the value you recorded before the restart to confirm that a new boot happened.

Questions people ask

How do I restart a remote desktop computer?

Run shutdown /r /t 0 in Command Prompt or PowerShell inside the session, or press Ctrl+Alt+End and choose Restart from the power icon.

Why is there no restart option in Remote Desktop?

A policy or your account rights can hide it. Try Alt+F4 on the remote desktop, Ctrl+Alt+End or the shutdown command before changing any policy.

Can I restart Remote Desktop without rebooting the computer?

Yes. An administrator can restart the TermService service, which drops current RDP connections but leaves Windows running.

How do I restart a remote computer from my own PC?

Use Restart-Computer -ComputerName SERVER01 in PowerShell or shutdown /r /m \\SERVER01 /t 0 in Command Prompt. Both need remote management access and the right permissions on the target.

How long does a remote desktop restart take?

It depends on the hardware, Windows updates and startup services. Check the RDP port from another computer until it answers, then sign in.

Can I restart my Remote Desktop session without rebooting the server?

Yes. Sign out from Start or run logoff to close your session and its programs while the computer keeps running. To just leave, disconnect.

Is it safe to shut down a remote server over RDP?

Only if you can turn it on again, for example from a hosting control panel. RDP cannot start a machine that is off.

How do I restart a remote computer when RDP is not working?

Use shutdown /m, Restart-Computer -ComputerName or the provider console. Each needs its own permissions and network access, and a frozen host may need a reset.

Sources

  1. Microsoft Learn, shutdown command reference
  2. Microsoft Learn, Restart-Computer
  3. Microsoft Learn, Stop-Computer
  4. Microsoft Learn, qwinsta command reference
  5. Microsoft Learn, logoff command reference
  6. Microsoft Learn, schtasks create command reference
  7. Microsoft Learn, General Remote Desktop connection troubleshooting
  8. Microsoft Learn, Shut down the system user right
  9. Microsoft Learn, Policy CSP ADMX_StartMenu, NoClose

Written and tested by VPS Lane EngineeringWe run every step on real servers before publishing and update the guide when the software changes.