I Remote Desktop Connection Error Code 0x904 Install 〈Edge〉
Important Note: The error code 0x904 is relatively rare and is not a standard Microsoft RDP client error (like 0x4, 0x7, 0x104, etc.). In Windows core networking, 0x904 is often interpreted as ERROR_WRITE_PROTECT (The media is write protected) or a derived RDP-specific internal session error. In the context of "install" and "RDP," it typically points to a prerequisite installation failure (e.g., RDP 8.0/8.1 update, licensing component, or a graphics stack update) that then prevents RDP connections.
Method 2: Force a Logoff via Command Line (Admin Access Required)
If you cannot physically access the remote computer or cannot sign out the stuck session, you can force a logoff remotely using the Command Prompt. Note: You must have administrative privileges on the remote machine to do this. i remote desktop connection error code 0x904 install
- Open Command Prompt (cmd) on your local computer.
- Query the remote computer to find the session ID. Type the following command and press Enter:
query user /server:REMOTE_IP_ADDRESS
(Replace REMOTE_IP_ADDRESS with the name or IP of the remote computer).
- Look for the user account causing the conflict. Note the ID number associated with that user.
- Once you have the ID, force the session to log off with this command:
logoff ID /server:REMOTE_IP_ADDRESS
(Replace ID with the number you found in step 3).
- Attempt to connect via RDP again.
What Causes Error 0x904?
Unlike many RDP errors that relate to network connectivity or firewalls, error 0x904 is specifically a session limitation issue. It commonly occurs in the following scenarios: Important Note: The error code 0x904 is relatively
- Concurrent Session Limitations: In standard Windows configurations (like Windows 10/11 Pro), only one active RDP session is allowed per user account at a time. If you try to RDP into a machine where your user account is already logged in locally, the system may block the new connection to prevent data corruption or session confusion.
- Stuck Sessions: Sometimes a previous RDP session did not log off correctly. The server still "thinks" the user is active, preventing a new connection.
- Policy Restrictions: Group Policy settings on the remote machine may be configured to deny console connections if a session is already active.
Installation and Reinstallation Steps
If you still encounter issues, try:
- Reinstalling the Remote Desktop client: Uninstall the client (if possible) and then reinstall it. For most Windows versions, this might not be straightforward since it's a built-in component, but you can try updating it via Windows Update or reinstalling Windows.
- Using an Alternative: Consider using an alternative remote connection tool like TeamViewer, AnyDesk, or Chrome Remote Desktop.
2. Verify Server Configuration
- Ensure Remote Desktop is enabled on the server. For Windows servers, this is usually done through Settings > System > Remote Desktop.
- Check Windows Firewall settings on the server to ensure Remote Desktop connections are allowed. You can do this by going to Control Panel > System and Security > Windows Defender Firewall > Allow an app or feature through Windows Defender Firewall, and making sure Remote Desktop is listed and allowed.
- Verify User Permissions: Ensure your user account has permission to connect via Remote Desktop.
Step 2 – Reset RDP licensing store
takeown /f %WinDir%\System32\MSLicensing /r
icacls %WinDir%\System32\MSLicensing /grant administrators:F /t
del /f /q %WinDir%\System32\MSLicensing\*.*