Fix RDP Error 0x112f on Windows Server (Complete Fix)

Resolve Windows Server RDP protocol error 0x112f (ERRINFO_GRAPHICSSUBSYSTEMFAILED). Fix WDDM graphics crashes, multi-monitor scaling limits, and AVC encoding.

Fix RDP Error 0x112f on Windows Server (Complete Fix)
Windows Server RDP Diagnostic Runbook

To fix RDP error 0x112f (ERRINFO_GRAPHICSSUBSYSTEMFAILED): Bypass multi-monitor graphics negotiation by connecting with a single display via mstsc.exe /v:<server> /w:1920 /h:1080.[1][3] On the Windows Server host, set fEnableWddmDriver to 0 under HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services to fall back to the XDDM display driver, or reset H.264/AVC hardware encoding, then reboot.[2]

Use this engineering runbook to isolate the ERRINFO_GRAPHICSSUBSYSTEMFAILED disconnect state, repair Windows Display Driver Model (WDDM) policy conflicts, and stabilize multi-monitor Remote Desktop sessions across VPS and bare-metal servers.[1][2]

Why Windows Server Drops Sessions With RDP Error 0x112f

When the Remote Desktop client displays “Because of a protocol error (code: 0x112f), the remote session will be disconnected”, the server sent a TS_SET_ERROR_INFO_PDU packet immediately before tearing down the session.[1] In the Microsoft [MS-RDPBCGR] protocol specification, 0x0000112F maps directly to ERRINFO_GRAPHICSSUBSYSTEMFAILED, meaning the server-side graphics subsystem entered an error state and could no longer encode frames.[1]

Unlike firewall blocks or credential rejections, error 0x112f occurs after authentication succeeds—either right as the desktop compositor initializes or mid-session when display geometry changes.[1] Virtualized Windows Server instances and multi-monitor workstations hit this fault most often because WDDM graphics capture, H.264/AVC encoder allocation, and client monitor layouts collide.[2]

Primary Root Causes Behind ERRINFO_GRAPHICSSUBSYSTEMFAILED

  1. WDDM Graphics Driver Allocation Faults: By default, modern Windows hosts use the WDDM graphics display driver (fEnableWddmDriver) for RDP sessions.[2] After cumulative OS patches or virtual GPU updates, WDDM surface allocation can crash during session creation until switched back to XDDM.[2]
  2. Multi-Monitor Layout and Virtual Desktop Bounds: Enabling use multimon:i:1 across mixed-DPI or ultrawide displays forces the host to initialize multiple high-resolution framebuffers simultaneously.[4] Adjacent protocol limits such as ERRINFO_VIRTUALDESKTOPTOOLARGE (0x00001134) also reject virtual desktops exceeding 32,766 pixels in width or height.[1]
  3. H.264/AVC Hardware Encoder Contention: Enabling AVCHardwareEncodePreferred on a VPS without stable GPU encoder support causes the session host graphics pipeline to fault before software fallback completes cleanly.[2]
  4. Host Memory Exhaustion (ERRINFO_OUT_OF_MEMORY): On memory-constrained servers, allocating multi-display framebuffers exhausts kernel/session pool memory, collapsing the graphics subsystem alongside 0x00000006 memory errors.[1]

Diagnostic Matrix: RDP Error 0x112f Triggers and Fixes

Disconnect Scenario Underlying Protocol / Policy State Diagnostic Check Immediate Remediation
Disconnects instantly on multi-monitor login Client negotiates use multimon:i:1 across mixed resolutions or high-DPI panels[4] Test single-screen launch via mstsc.exe /v:<host> /w:1920 /h:1080[3] Set use multimon:i:0 or pin contiguous IDs with selectedmonitors:s:0[4]
Fails after Windows update on VM or VPS WDDM remote display driver fails frame capture (ERRINFO_GRAPHICSSUBSYSTEMFAILED)[1][2] Inspect fEnableWddmDriver policy under Terminal Services[2] Set fEnableWddmDriver to 0 (XDDM fallback) and reboot host[2]
Drops when hardware encoding is forced AVCHardwareEncodePreferred enabled without healthy vGPU/GPU encoder[2] Run gpresult /H c:\gpresult.html to audit active RDS GPOs[6] Disable AVCHardwareEncodePreferred to force software encoding[2]
Random mid-session drops over WAN/VPN UDP datagram loss or idle firewall state drops transport before reconnect Audit fClientDisableUDP and RDS keep-alive policy[2][5] Enable fClientDisableUDP = 1 on client and enable RDS keep-alive[2][5]
Crashes on 4K or heavy multi-user RDSH Graphics subsystem runs out of host memory (0x00000006 / 0x0000112F)[1] Verify available RAM and TS_MAXMONITOR session limits[2] Cap session displays via TS_MAXMONITOR and expand host RAM[2]

How to Fix RDP Error 0x112f (Client and Host Runbook)

When operating Windows Server trading terminals, ERP suites, or multi-user RDS environments on Nextgen Hosting Dedicated Servers or low-latency Pakistan Dedicated Servers, isolate whether the graphics fault originates in client monitor geometry or host-side WDDM policies before modifying registry keys.[2][4]

Method 1: Bypass Multi-Monitor Negotiation From the Client

Test a clean single-monitor session first using mstsc.exe switches documented by Microsoft.[3] Passing explicit dimensions and /public disables local bitmap caching and multi-monitor layout negotiation in one command:[3]

:: Enumerate local monitor IDs before pinning specific screens
mstsc.exe /l

:: Connect on a single 1080p viewport without caching bitmaps or credentials
mstsc.exe /v:192.0.2.50:3389 /w:1920 /h:1080 /public

If single-monitor access succeeds immediately, edit your saved .rdp profile (mstsc.exe /edit server.rdp) or update its text directives directly to disable multi-display spanning or pin only contiguous monitors:[3][4]

use multimon:i:0
desktopwidth:i:1920
desktopheight:i:1080
compression:i:1
smart sizing:i:0

If you require two specific monitors out of a three-screen workstation, keep use multimon:i:1 and declare contiguous monitor IDs retrieved from mstsc.exe /l via selectedmonitors:s:0,1.[3][4]

Method 2: Switch the Host From WDDM to XDDM (fEnableWddmDriver)

If single-monitor connections still fail with 0x112f, connect via your server provider’s out-of-band console or hypervisor VNC/KVM and disable the WDDM RDP display driver policy.[2] According to the ADMX_TerminalServer Policy CSP specification, setting fEnableWddmDriver to 0 forces Remote Desktop Connections to use the legacy XDDM graphics display driver instead of WDDM.[2]

Via Local Group Policy Editor (gpedit.msc):[2]

  1. Open gpedit.msc as Administrator.
  2. Navigate to Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Remote Session Environment.[2]
  3. Open Use WDDM graphics display driver for Remote Desktop Connections, set it to Disabled, and click OK.[2]

Or apply the exact policy value directly in an elevated PowerShell session and reboot Windows (required for display driver switching to take effect):[2]

$tsPolicyPath = "HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services"
if (-not (Test-Path $tsPolicyPath)) {
    New-Item -Path $tsPolicyPath -Force | Out-Null
}

# Disable WDDM graphics driver for RDP (forces XDDM fallback; reboot required)
Set-ItemProperty -Path $tsPolicyPath -Name "fEnableWddmDriver" -Type DWord -Value 0

# Disable forced H.264/AVC hardware encoding so software encoding handles frames
Set-ItemProperty -Path $tsPolicyPath -Name "AVCHardwareEncodePreferred" -Type DWord -Value 0

gpupdate /force
Restart-Computer -Force

Pro Tip: Verify Policy Precedence With gpresult
If fEnableWddmDriver or AVCHardwareEncodePreferred reverts after a reboot on domain-joined Windows Servers, a domain Group Policy Object is overwriting local registry values. Run gpresult /H C:\gpresult.html in an elevated prompt to inspect the winning GPO under Remote Session Environment.[2][6]

Method 3: Disable Client UDP Transport and Enable Host Keep-Alives

On routes with packet loss, strict NAT state tables, or VPN encapsulation, RDP dual-transport (TCP + UDP) can stall or drop graphics frames mid-stream.[2][5] Setting fClientDisableUDP to 1 on the local Windows client forces RDP traffic onto TCP exclusively:[2]

$clientPolicy = "HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\Client"
if (-not (Test-Path $clientPolicy)) {
    New-Item -Path $clientPolicy -Force | Out-Null
}

# Force RDP client to use TCP only instead of TCP + UDP
Set-ItemProperty -Path $clientPolicy -Name "fClientDisableUDP" -Type DWord -Value 1

On the Windows Server host, also enable Configure keep-alive connection interval inside gpedit.msc under Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections so idle TCP streams are not torn down prematurely.[5]

Method 4: Verify Host RAM, RDP Listener State, and Monitor Caps

If the server runs multiple concurrent sessions, enforce a monitor cap (1 to 16) using the Limit number of monitors policy (TS_MAXMONITOR) under Remote Session Environment to prevent single users from spanning excessive framebuffers.[2] Simultaneously confirm the RDP protocol listener is enabled (fDenyTSConnections equals 0) and listening on TCP port 3389:[5][6]

# Confirm RDP is enabled (0 = enabled, 1 = disabled)
Get-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server" -Name "fDenyTSConnections"

# Confirm TermService is listening on TCP 3389 and check free memory
Get-NetTCPConnection -LocalPort 3389 -State Listen
Get-CimInstance Win32_OperatingSystem | Select-Object FreePhysicalMemory, TotalVisibleMemorySize

Common Pitfall: Skipping the Reboot After Toggling fEnableWddmDriver
Modifying fEnableWddmDriver in the Windows Registry or Local Group Policy does not reload the active kernel display model while sessions are running. Microsoft explicitly notes that a full Windows restart is required before RDP switches between WDDM and XDDM.[2]


Step-by-Step Terminal Checklist: Resolving RDP Error 0x112f

Execute these steps in order from your client workstation and out-of-band server console until session stability is restored:

  1. Test single-display client launch: Run mstsc.exe /v:<server_ip>:3389 /w:1920 /h:1080 /public to rule out multi-monitor and local bitmap cache faults.[3]
  2. Audit local display IDs: Run mstsc.exe /l and configure use multimon:i:0 or contiguous selectedmonitors:s:0,1 in your .rdp file.[3][4]
  3. Disable WDDM fallback on host: Set fEnableWddmDriver (REG_DWORD) to 0 under HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services.[2]
  4. Reset AVC hardware encoding: Set AVCHardwareEncodePreferred to 0 on hosts without dedicated vGPU encoding support.[2]
  5. Test TCP-only transport: Set fClientDisableUDP to 1 under HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\Client if WAN packet drops occur.[2]
  6. Audit GPO overrides and reboot: Run gpresult /H C:\gpresult.html to verify no domain GPO overrides local settings, then run Restart-Computer -Force.[2][6]

Frequently Asked Questions: Fix RDP Error 0x112f

What causes RDP error 0x112f on Windows Server?

In Microsoft’s [MS-RDPBCGR] protocol specification, error code 0x0000112F corresponds to ERRINFO_GRAPHICSSUBSYSTEMFAILED, which means the server-side graphics subsystem entered an error state and cannot continue graphics encoding.[1] It is most commonly triggered by WDDM display driver conflicts, incompatible H.264/AVC hardware encoding policies, or multi-monitor framebuffer failures.[2][4]

How do I fix RDP protocol error 0x112f on multiple monitors?

Uncheck Use all my monitors for the remote session in mstsc.exe (which writes use multimon:i:0), or launch with mstsc.exe /v:<server> /w:1920 /h:1080.[3][4] If you need multiple displays, run mstsc.exe /l to list monitor IDs and pin a contiguous subset using selectedmonitors:s:0,1 inside your .rdp file.[3][4]

Does disabling WDDM graphics display driver fix error 0x112f?

Disabling Use WDDM graphics display driver for Remote Desktop Connections resolves 0x112f on many virtualized Windows Server hosts because it forces RDP to fall back to the legacy XDDM display driver.[2] Remember that Windows requires a full reboot after changing fEnableWddmDriver for the driver switch to activate.[2]

How do I fix RDP error 0x112f via PowerShell or Registry?

In an elevated PowerShell prompt on the remote host, set the REG_DWORD value fEnableWddmDriver to 0 and AVCHardwareEncodePreferred to 0 inside HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services.[2] Run gpupdate /force and reboot the server so the graphics subsystem initializes in XDDM software-encoding mode.[2]

Can low VPS RAM or AVC hardware encoding trigger error 0x112f?

Yes. Enabling AVCHardwareEncodePreferred without a healthy hardware encoder can destabilize the graphics pipeline, while severe memory exhaustion causes framebuffer allocation failures alongside ERRINFO_OUT_OF_MEMORY (0x00000006).[1][2] Disabling hardware AVC encoding and capping monitors per session via TS_MAXMONITOR reduces host memory pressure.[2]


Eliminate RDP Graphics Freezes and Memory Bottlenecks

Run multi-monitor Windows Server workloads on dedicated NVMe compute, guaranteed ECC RAM, and low-latency network uplinks with Nextgen Hosting.

Explore Global Dedicated Servers Explore Pakistan Dedicated Servers

Disclaimer: This post is for informational and educational purposes only, accurate to the best of our knowledge at publication. It does not constitute advice. We do not guarantee accuracy or completeness and accept no liability for any decisions or losses resulting from reliance on this content.

Sources & Official References
  1. Microsoft Corporation. "[MS-RDPBCGR]: 2.2.5.1.1 Set Error Info PDU Data (TS_SET_ERROR_INFO_PDU) — ERRINFO_GRAPHICSSUBSYSTEMFAILED (0x0000112F)." Microsoft Learn Open Specifications. Available at: https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-rdpbcgr/a21a1bd9-2303-49c1-90ec-3932435c248c
  2. Microsoft Corporation. "ADMX_TerminalServer Policy CSP (fEnableWddmDriver, AVCHardwareEncodePreferred, TS_MAXMONITOR, fClientDisableUDP)." Microsoft Learn. Available at: https://learn.microsoft.com/en-us/windows/client-management/mdm/policy-csp-admx-terminalserver
  3. Microsoft Corporation. "mstsc — Remote Desktop Connection command-line syntax and parameters." Microsoft Learn. Available at: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/mstsc
  4. Microsoft Corporation. "Supported Remote Desktop RDP file settings (use multimon, selectedmonitors, desktopwidth, desktopheight, compression)." Microsoft Learn. Available at: https://learn.microsoft.com/en-us/windows-server/remote/remote-desktop-services/clients/rdp-files
  5. Microsoft Corporation. "Troubleshoot Remote desktop disconnected errors (keep-alive interval and port 3389)." Microsoft Learn. Available at: https://learn.microsoft.com/en-us/troubleshoot/windows-server/remote/troubleshoot-remote-desktop-disconnected-errors
  6. Microsoft Corporation. "General Remote Desktop connection troubleshooting (fDenyTSConnections and gpresult)." Microsoft Learn. Available at: https://learn.microsoft.com/en-us/troubleshoot/windows-server/remote/rdp-error-general-troubleshooting

Disclaimer: This post is for informational and educational purposes only, accurate to the best of our knowledge at publication. It does not constitute advice. We do not guarantee accuracy or completeness and accept no liability for any decisions or losses resulting from reliance on this content.