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.
| Method | Run it from | Use it when |
|---|---|---|
| Start menu power button | Inside the session | Restart and Shut down are shown to you |
| Ctrl+Alt+End, then the power icon | Inside the session | The Start menu offers only Disconnect and Sign out |
shutdown /r /t 0 | Command Prompt or PowerShell in the session | You want a fast restart you can script |
Restart-Computer | PowerShell, in the session or from another machine | You want to restart and wait for the host to come back |
schtasks with shutdown | Inside the session, once | You want a restart at a quiet hour |
| Provider control panel or console | Your hosting account | The 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.
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).
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.
| Flag | What it does | Over RDP |
|---|---|---|
/r | Restarts after shutdown | The normal choice |
/s | Shuts down | Only if you can power it on again, as covered below |
/t xxx | Waits xxx seconds, 0 to 315360000, default 30 | Any value above 0 also implies /f |
/f | Closes programs without warning | Unsaved work in every session can be lost |
/d p:xx:yy | Logs a planned reason code | Helps later when you read the logs |
/c "text" | Adds a comment of up to 512 characters | Recorded with the shutdown reason and shown in the warning of a timed shutdown |
/a | Cancels a pending shutdown | Works only during the wait |
/m \\SERVER01 | Targets another computer | For a session that hangs, see below |
/o | Restarts to Advanced boot options, needs /r | Avoid unless you have a console |
/p | Powers off the computer running the command at once, with no warning, and combines only with /d or /f | Run 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.
shutdown /s /t 0On 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.
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.
Restart-Computer -ForceFrom 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.
Restart-Computer -ComputerName SERVER01 -Credential (Get-Credential) -Wait -For PowerShell -Timeout 300 -Delay 2The 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.
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.
Get-Service -Name TermService, UmRdpService | Select-Object Name, Status, StartTypeBoth 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.
Restart-Service -Name TermService -Force
if ((Get-Service -Name UmRdpService).Status -ne 'Running') { Start-Service -Name UmRdpService }
Get-Service -Name TermService, UmRdpServiceIf 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.
- Wait a minuteUpdates, a full disk or a busy program can freeze the screen for a while without the machine being down.
- Disconnect and reconnectClose the client window. The session keeps running on the host, and a new connection often brings a working screen back.
- Restart the RDP serviceIf Windows still runs but RDP will not accept you, restart
TermServicefrom another session or the console as shown above. - Open the security screenPress Ctrl+Alt+End and use Task Manager to end the stuck program, or the power icon to restart.
- 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.
- Restart from another machineUse
shutdown /r /m \\SERVER01 /t 0 /forRestart-Computer -ComputerName SERVER01 -Forceif remote management is allowed. - 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.
| What you see | Likely cause | Fix |
|---|---|---|
| No Restart in the Start menu | Policy or the session type hides it | Use Alt+F4 on the desktop, Ctrl+Alt+End or shutdown /r |
| Access is denied from shutdown | Your account lacks the shutdown right | Use an administrator account or ask whoever manages the policy |
| Restart-Computer does not restart | Other users are signed in or a program will not close | Check qwinsta, then add -Force if losing unsaved work is acceptable |
| Machine never comes back | Updates are installing or boot failed | Wait, then open the provider console to see the screen |
| Port answers but sign in fails | RDP may still be starting, or authentication and account policies may be blocking access | Wait 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.
qwinstaEach 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.
logoff 2Signing 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.
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.
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 /fThis 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.
schtasks /query /tn "Weekly restart" /v /fo listA 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.
$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.
#!/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 1A 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.
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 checksWith 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.
09:50:33 check 60: no answer
09:50:35 gave up after 60 checksWhile 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.
nmap -Pn -sV -p 41389 203.0.113.10The 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.
PORT STATE SERVICE VERSION
41389/tcp open ms-wbt-server xrdpA 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
- Microsoft Learn, shutdown command reference
- Microsoft Learn, Restart-Computer
- Microsoft Learn, Stop-Computer
- Microsoft Learn, qwinsta command reference
- Microsoft Learn, logoff command reference
- Microsoft Learn, schtasks create command reference
- Microsoft Learn, General Remote Desktop connection troubleshooting
- Microsoft Learn, Shut down the system user right
- Microsoft Learn, Policy CSP ADMX_StartMenu, NoClose