Remote Desktop "Error code: 0x3": what it means and how to fix it
Error code 0x3 is a generic "session has ended" code in Remote Desktop, and the extended error code next to it tells you more. Microsoft has no page that defines it, so the fixes here come from community reports and none is confirmed. Start with the basic checks and the host event logs, then try lowering the client resolution.
On this page
What it means
The message "Your Remote Desktop Services session has ended" appears with Error code: 0x3 when the connection is cut, either right after you sign in or partway through a session. The code alone does not say why. Look at the Extended error code line right under it. Reports exist for 0x0, 0x11 and 0x12, and each has a different pattern.
One caveat up front: I found no Microsoft documentation that defines this code. Everything below about causes comes from Microsoft Q&A threads, most of them locked with no accepted answer. Treat the causes as suspects, not facts, and expect that a fix that helped one person may do nothing for you. Work from the top and stop when the session stays stable.
Symptoms and causes
You are likely dealing with this problem if:
- The dialog "Your Remote Desktop Services session has ended" with Error code: 0x3
- Extended 0x0: the session works after a restart, then fails right after you enter credentials, following several connect and disconnect cycles
- Extended 0x12: a black screen for a few minutes, then a disconnect; a host reboot clears it for a while
The usual causes, most common first:
- Remote Desktop indirect display driver problems on the host
- Reports for 0x11 and 0x12 mention the RdpIdd / WudfRd display driver failing to load or crashing. One Azure Server 2022 report logged that WudfRd failed to load.
- Client resolution too high for the host
- One person fixed a 0x11 case by lowering a 4K client resolution.
- Stale certificate, saved credentials or security-layer mismatch
- Suggested for 0x0 only. These are unverified ideas from a thread with no confirmed fix.
- A recent Windows update
- One person said uninstalling KB5055528 fixed their case. That is a single anecdote, and I found nothing linking that update to this error.
How to fix it
Work through these in order. They start with the quickest, safest checks and move to deeper repairs; stop as soon as the problem is gone.
1.Do the basic checks and read the host logs
These rule out a one-off glitch and show which extended code and which kind of failure you have.
- Install pending Windows updates and driver updates on both the client and the host, then reboot the host.
- Try another account and another client computer, to see whether the problem is tied to one machine or user.
- On the host, open Event Viewer and go to Applications and Services Logs > Microsoft > Windows > RemoteDesktopServices-RdpCoreTS. Do the same for TerminalServices-LocalSessionManager. Look at entries from the time of the disconnect.
- Reported entries for the 0x0 case were "TCP socket READ/WRITE operation failed, error 64", an RDP-Tcp#0 error 0x80004004 and error 0x80070057. Use them to match your case against the sections below.
2.Lower the client resolution
Reported to fix a 0x11 case from a 4K client. It is cheap to try for 0x11 and 0x12.
- Open Remote Desktop Connection (mstsc) and click Show Options.
- On the Display tab, move the slider down to a smaller size, for example 1920 by 1080, and reconnect.
- If you connect with a saved .rdp file, open it from the same window with Open, change the display setting there, and save it.
3.Use the host's graphics adapter for Remote Desktop sessions
Aimed at 0x12 black screens. Microsoft's policy description says that when this is enabled, sessions use the hardware renderer instead of the Microsoft Basic Render Driver. It worked for the original poster only, with mixed results on workgroup machines.
Before you start: This changes a Group Policy setting on the host and affects every Remote Desktop session. Note the original value so you can undo it.
- On the host, press WinR, type
gpedit.mscand press Enter. (Pro and Server editions have it; Home does not.) - Go to Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Remote Session Environment.
- Open the hardware graphics adapter policy for all Remote Desktop Services sessions, set it to Enabled, and click OK.
- Apply the policy, or reboot the host.
gpupdate /force
4.For extended code 0x0: refresh credentials and certificates
Suggested in a thread about drops after repeated reconnects. None of this was confirmed to fix it.
Before you start: Deleting certificates and saved credentials means you will have to sign in again. Make sure you know the account password first. Only delete certificates under Remote Desktop, not elsewhere in the store.
- On the client, open the connection's options and turn on the reconnect-if-interrupted option. Then open Credential Manager from the Start menu and remove the saved entry for the host.
- On the host, press WinR, type
certlm.mscand press Enter. Open Remote Desktop > Certificates and delete the certificate listed there. - Open Services, find Remote Desktop Services, and choose Restart.
- If the host is domain-joined, confirm it can reach its domain controller. If you are on a VPN, disconnect it and retry.
5.On an Azure VM: reset the Remote Desktop configuration
Microsoft's Azure guide lists this as the first step when you cannot connect with RDP to an Azure Windows VM. It is a general connection fix, not specific to 0x3, but a 0x11 report came from an Azure Server 2022 VM.
Before you start: Choose the mode that only resets configuration. The other mode on the same screen resets a user's password.
- In the Azure portal, select your VM and scroll the settings pane to the Help section.
- Click Reset password, set Mode to Reset configuration only, and click Update.
- Try connecting again. The same guide covers further steps, such as checking Network Security Group rules and restarting the VM.
6.Low confidence: uninstall the Remote Desktop Connection app and reboot
One answer suggesting this had 7 helpful votes, and a second user said a similar fix worked. It only applies to Windows builds where Remote Desktop Connection appears in Installed apps.
Before you start: This removes the connection client from the computer. Before you start, make sure you have another way to reconnect, for example a second computer. If the entry is not listed in Installed apps on your build, skip this step.
- On the client, open Settings > Apps > Installed apps.
- Find Remote Desktop Connection, open its menu and choose Uninstall.
- Restart the computer, then try connecting again with your other client.
7.Last resort: remove the recent Windows update
One person in April 2025 said uninstalling KB5055528 fixed their case. It is a single report, so only try it if the problem began right after an update and nothing above worked.
Before you start: Create a restore point first. Pause updates afterwards, or Windows will reinstall it. Security updates protect you, so reinstall when a fixed version is available.
- Open Settings > Windows Update > Update history > Uninstall updates.
- Select the update installed just before the problem began and click Uninstall. Restart and test.
Check that it worked
- Connect and stay signed in for longer than the point at which it used to drop.
- Disconnect and reconnect several times in a row without the 0x3 dialog appearing.
- The host's RdpCoreTS log shows no new socket or protocol errors during the session.
If it still fails
- Note the exact extended error code (0x0, 0x11, 0x12 or another) and the event log entries from the host at the time of the failure.
- Test with a different client computer and a different account. This tells you whether the host or the client is at fault.
- If the host is a company or hosted machine, send the error codes and log entries to its administrator.
- For an Azure VM, the Azure guide linked below points to opening a support request. For a Windows 11 Pro host or Server VM you manage, ask on Microsoft Q&A with the extended code, the host OS version, and the event log text.
Questions
Does 0x3 mean the same thing every time?
The same dialog code appears for different situations. The extended code (0x0, 0x11, 0x12) and the host event log are what separate them.
Sources
- Cannot connect with RDP to a Windows VM in AzureOfficial · Microsoft Learn
- Policy CSP - ADMX_TerminalServer (Select RDP transport protocols; hardware graphics adapter policy)Official · Microsoft Learn
- Windows Remote Desktop fails after disconnecting and reconnecting a few times Error Code 0x3 Extended 0x0 (Microsoft Q&A) · Microsoft Q&A (community content)
- Can't connect with RDP to Azure VM Windows Server 2022 Datacenter, Error code 0x3 Extended error code 0x11 (Microsoft Q&A) · Microsoft Q&A (community content)
- Black Screen Remote Desktop Error Code 0x3 Extended Error Code 0x12 Windows 11 Pro (Microsoft Q&A) · Microsoft Q&A (community content)