The hex code 0x904 expands to:

0x900 (ERROR_INVALID_PARAMETER) + 0x4

In NTSTATUS mapping, 0x904 equals STATUS_MEDIA_WRITE_PROTECTED.
During an "install" operation (e.g., extracting RDP cab files or writing registry keys for the RDP ActiveX control), the installer or system service attempts to write to a protected location:

If a Group Policy, disk quota, or file system filter driver (antivirus, backup software) marks the target path as write-protected or read-only, the installation fails with 0x904.

To fix the error, we must first understand what the hexadecimal code 0x904 (decimal 2308) represents in the Windows Sockets and RDP stack.

In the context of RDP, 0x904 is frequently associated with the Remote Desktop Gateway (RD Gateway) or Transport Layer Security (TLS) negotiation. Specifically, it often manifests as:

"The connection was denied because the user account is not authorized for remote login." (Generic message) OR "Your computer can't connect to the remote computer because an error occurred on the remote computer that you are trying to connect to."

However, when linked to "install" contexts, the error usually means:


Remote Desktop relies on the Windows Imaging Component to render the remote display. If WIC is corrupted, RDP throws a 0x904 error because it cannot initialize the graphics pipeline.

For Windows 10/11:

Error 0x904 during RDP installation is a low-level STATUS_MEDIA_WRITE_PROTECTED error, not a typical connectivity issue. It means the installer attempted to commit an RDP binary or registry key to a location that refused write access. The fix involves removing read-only attributes, clearing the licensing store, and re-running the component installation via DISM or manual CAB expansion.

If the error persists after all steps, use procmon (Process Monitor) to filter Result = ACCESS_DENIED or WRITE_PROTECT for mstsc.exe or dism.exe to find the exact offending file path.


While standard RDP uses port 3389, RD Gateway uses 443 (HTTPS) and UDP 3391. If 0x904 appears during the handshake:


Windows component corruption is frequently the hidden reason for 0x904. Microsoft releases Servicing Stack Updates specifically to fix the Windows installer component that installs RDP features.

I Remote Desktop Connection Error Code 0x904 Install

The hex code 0x904 expands to:

0x900 (ERROR_INVALID_PARAMETER) + 0x4

In NTSTATUS mapping, 0x904 equals STATUS_MEDIA_WRITE_PROTECTED.
During an "install" operation (e.g., extracting RDP cab files or writing registry keys for the RDP ActiveX control), the installer or system service attempts to write to a protected location:

If a Group Policy, disk quota, or file system filter driver (antivirus, backup software) marks the target path as write-protected or read-only, the installation fails with 0x904.

To fix the error, we must first understand what the hexadecimal code 0x904 (decimal 2308) represents in the Windows Sockets and RDP stack. i remote desktop connection error code 0x904 install

In the context of RDP, 0x904 is frequently associated with the Remote Desktop Gateway (RD Gateway) or Transport Layer Security (TLS) negotiation. Specifically, it often manifests as:

"The connection was denied because the user account is not authorized for remote login." (Generic message) OR "Your computer can't connect to the remote computer because an error occurred on the remote computer that you are trying to connect to."

However, when linked to "install" contexts, the error usually means: If a Group Policy, disk quota, or file


Remote Desktop relies on the Windows Imaging Component to render the remote display. If WIC is corrupted, RDP throws a 0x904 error because it cannot initialize the graphics pipeline.

For Windows 10/11:

Error 0x904 during RDP installation is a low-level STATUS_MEDIA_WRITE_PROTECTED error, not a typical connectivity issue. It means the installer attempted to commit an RDP binary or registry key to a location that refused write access. The fix involves removing read-only attributes, clearing the licensing store, and re-running the component installation via DISM or manual CAB expansion. While standard RDP uses port 3389

If the error persists after all steps, use procmon (Process Monitor) to filter Result = ACCESS_DENIED or WRITE_PROTECT for mstsc.exe or dism.exe to find the exact offending file path.


While standard RDP uses port 3389, RD Gateway uses 443 (HTTPS) and UDP 3391. If 0x904 appears during the handshake:


Windows component corruption is frequently the hidden reason for 0x904. Microsoft releases Servicing Stack Updates specifically to fix the Windows installer component that installs RDP features.