Windows OS Hub
  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux
  • Home
  • About

Windows OS Hub

  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux

 Windows OS Hub / Windows Server 2019 / Installing Remote Desktop HTML5 Web Client on Windows Server RDS

November 7, 2022

Installing Remote Desktop HTML5 Web Client on Windows Server RDS

On Windows Server 2022/2019/2016 with Remote Desktop Services deployed, you can install and configure the new HTML5-based Remote Desktop Web Client. This web client will allow any device (iOS, macOS, Android, Linux) to access your RemoteApps on RDS hosts directly from any browser (no need to install an additional RDP client).

Contents:
  • Installing RD Web HTML5 Client on Windows Server RDS
  • Connecting to the RDWeb Access Server with Web (HTML5) Client
  • Common RD Web Client Errors

Remote Desktop Web Client is available as an RD Web Access role feature on RDS servers running Windows Server 2022/2019/2016.

Before deploying the RD Web Client, you need to make sure that your RDS infrastructure meets the following requirements:

  • A deployed RDS farm infrastructure, including Remote Desktop Gateway, RD Connection Broker, and RD Web Access on Windows Server 2022/2019/2016;
  • Per User terminal licenses (RDS CAL) are used;
  • RDS Gateway and Web Access servers must use SSL certificates issued by a trusted CA. You can use free Let’s Encrypt certificates on RDS or Self-signed SSL certificates (only in limited mode).

Installing RD Web HTML5 Client on Windows Server RDS

HTML5 RD Web Client is not included in the Windows Server distribution. You need to manually install the RD Web Client Management module from the PowerShell Script Gallery.

Install the PowerShellGet module on a server with the RD Web Access role:

Install-Module -Name PowerShellGet -Force

Restart the PowerShell.exe console and install the RD Web Client Management module:

Install-Module -Name RDWebClientManagement

Install-Module -Name RDWebClientManagement

On a disconnected network, you can install this PowerShell module offline.

To accept the terms of the Microsoft Licence Agreement, press A.

Then install the latest version of the Web Remote Desktop package:

Install-RDWebClientPackage

After the RDWebClientPackage package is installed, check its properties with the following command:

Get-RDWebClientPackage

Get-RDWebClientPackage

As you can see, there appeared rd-html 5.0 package version 1.0.0.

Next, you need to export the SSL certificate from the server with the RDS Connection Broker role used for SSO (Enable Single Sign On) to a .cer file (BASE64 format).

  1. Open the computer certificate management console certlm.msc;
  2. Expand the section Personal -> Certificates;export rds certificate from computer cert storage
  3. Find your certificate that is used in your RDS farm, right-click on it, and choose select All Tasks -> Export;export rds certificate to x509 CER file
  4. Select the Base-64 encoded X.509 (.CER) export format and specify a file name.
Remote clients must trust this certificate. See how to add a certificate to trusted in Windows and Linux.

Import the certificate to the RD Web Access server:

Import-RDWebClientBrokerCert C:\RDBrokerCert.cer

Now you can publish the RD Web Client:

Publish-RDWebClientPackage -Type Production -Latest

Publish-RDWebClientPackage -Type Production -Latest

To test the RD Web Client, you can deploy it with the command:

Publish-RDWebClientPackage -Type Test -Latest

Connecting to the RDWeb Access Server with Web (HTML5) Client

After you have deployed the Web Client package on the RDS server, you can use a browser on a client computer to access RemoteApps and desktops. All the latest versions of Microsoft Edge, Google Chrome, Safari, and Mozilla Firefox are supported. In order to access RDS servers from a browser, just share the URL link to your RDWeb server with your users.

Be sure to use the FQDN of the RD Web server to connect. Note that this FQDN must be in your deployment’s RDS certificate (check the Common Name/CN and Subject Alternative Names /SAN fields)

Open the URL address:

https://RDWebFQDN.server.name/RDWeb/webclient/index.html

To access the test environment, use this URL address:

https://RDWebFQDN.server.name/RDWeb/WebClient-Test/index.html

The server name must match the RD Web Access server name in the SSL certificate.

Sign in to the RDWeb server using your credentials.

sign in form to RD Web using web client

During sign-in, you will be prompted about what local resources should be available in your RD session. Only clipboard and printer redirection are available. Currently, the local drives and any USB devices cannot be redirected through the HTML5 RDP client. Instead, use the mstsc.exe client, RDCMan, or analog.

After a successful sign-in, you will see all RemoteApps published in the RD collection. You can switch between them using the icons at the top of the window.

RemoteApps on RDWeb server over html5 client

When you run the RemoteApp, it will be displayed in the browser with the option to expand the window to full screen.

You can print from the Remote Desktop Web Client using the PDF Virtual Printer (Microsoft Print to PDF). Then you print something in the RD Web Client window, your browser prompts you to download a PDF file. You can open this PDF (using the built-in Edge PDF viewer or a third-party app) and print it to a local printer.

remote desktop web client - printer redirection

The dynamic changing of the RD window size and full-screen mode are available in the HTML5 RD web client. You can copy only text via the clipboard to your Remote Desktop session (but not files or graphics).

Common RD Web Client Errors

When you sign in to RD Web Access through the web client, you see a list of published Remote Apps, but when you try to launch any of them, you get an error:

Oops, we could not connect to Calculator. The connection to the remote PC was lost. This might be because of a network connection problem. If this keeps happening, ask your administrator or tech support for help.

The connection to the remote PC was lost. This might be because of a network connection problem

There may also be an error:

The web client needs a Remote Desktop Gateway to connect to desktops and apps.

These errors occur if you have deployed an RDS farm without an RD Web Gateway. If you only have RD Connection Broker deployed, you need to bind your RDS certificate to port 3392 (see description in section Connecting to RD Broker without RD Gateway in Windows Server 2019 https://learn.microsoft.com/en-us/windows-server/remote/remote-desktop-services/clients/remote-desktop-web-client-admin).

Error:

Your session ended because an unexpected server authentication certificate was received from the remote PC. Ask your admin or tech support for help.

rd web client Your session ended because an unexpected server authentication certificate was received from the remote PC

Check that your RD certificate is correct (the FQDN of the server with RD web client must be contained in the certificate). Verify that this certificate is assigned to all roles in your RDS deployment. Separately, check that this certificate is set in the RDGW server settings (SSL Certificates tab). If possible, use a wildcard certificate.

25 comments
6
Facebook Twitter Google + Pinterest
PowerShellWindows Server 2016Windows Server 2019Windows Server 2022
previous post
How to Change the Network Profile (Location) to Public or Private on Windows
next post
Deploying Printers to Domain Users and Computers with GPO

Related Reading

How to Repair EFI/GPT Bootloader on Windows 10...

March 16, 2024

How to Restore Deleted EFI System Partition in...

March 11, 2024

How to Run Program without Admin Privileges and...

June 8, 2023

Fix: Remote Desktop Licensing Mode is not Configured

August 24, 2023

How to Install Remote Server Administration Tools (RSAT)...

March 17, 2024

How to Repair Windows Boot Manager, BCD and...

March 11, 2024

Refresh AD Groups Membership without Reboot/Logoff

March 15, 2024

How to Find the Source of Account Lockouts...

March 12, 2024

25 comments

paul June 9, 2019 - 2:41 pm

a couple of questions: does the HTML5 web interface override or interfere with the existing RDWeb site or do they exist simultaneously? any things to look out for with an RDGateway or other sites on the same server?
Does this allow pass-through authentication like the ActiveX in IE11 does?

Reply
Andy January 31, 2024 - 2:22 pm

RD Web Access as default role does coexist with RDWebClient.

Reply
Maiko June 23, 2019 - 4:45 pm

Hi,

first of all – thank you very much for this good instruction.
Unfortunately I am not able to open an application. I can log on to HTML5 and I see the apps. When I try to start this error message Comes up:
“Unfortunately we could not connect with “Calculator”.
The connection to the remote computer was lost. There may be a problem with the network connection. If the problem occurs repeatedly, contact your administrator or technical support.”

Any idea?

Thanks and best regards.
Maiko

Reply
admin July 8, 2019 - 4:54 am

Are you trying to connect to your RDS server from a local network or from the Internet?

Reply
Slagerij July 30, 2019 - 7:47 am

Did you find a solution for this ?

Reply
IT Consultant July 2, 2019 - 5:16 am

Me, too facing the same issue

Reply
D.LAGILLE August 20, 2019 - 1:57 pm

Me too, I encounter the same problem. the service works properly and overnight I have the same message … I look on the net but no info …

Reply
Hariharan June 23, 2020 - 2:23 pm

This is basically related public certificate you don’t have, try tin configured public cert on this RDS and try, I had the same issue and post install public cert issue resolved.

Reply
MIGUEL FONCERRADA November 11, 2019 - 4:26 pm

Very useful. I am able to connect to calculator. Question is how do I publish other apps to the web client?

Reply
Aishwarya Ravichandran April 24, 2020 - 9:23 am

You can go to the Remote Desktop Service -> collection -> click on the task (edit) -> create a collection of your choice
after the creation, open the collection you have created -> RemoteApp Programs -> task -> edit properties -> publish the other applications you want.

Reply
Hytham ElSawy February 6, 2020 - 5:00 pm

Any Solution for the Mentioned Issue

Reply
Hytham ElSawy February 6, 2020 - 5:01 pm

It’s very URGENT to fix this issue, please help

Reply
Jon October 27, 2020 - 3:33 pm

I believe port 3392 is needed, so you might want to open that on the firewalls from teh RDS boxes

Reply
Artem May 7, 2022 - 2:18 pm

Are there possible ways to not enter a login password when logging into the web client HTML5? (as in the old version of web client)? I can’t find information about this anywhere. Thanks a lot

Reply
abdulrehman Altaf February 8, 2023 - 7:29 am

Error “Unfortunately we could not connect with “Calculator”.
The connection to the remote computer was lost. There may be a problem with the network connection. If the problem occurs repeatedly, contact your administrator or technical support.”
Solution:
after allowing the port 443 it wored.
Set a problem solution for case.
Open ‘RD Gateway Manager’;
Expand ‘Policies’
set ‘Resource Authorization Policies’
RDG_RDConnectionBrokers – click-in ‘Allowed Ports’, add ports 3389;443

from Glaucia Fernanda da Silva Diniz
https://learn.microsoft.com/en-us/answers/questions/107443/remoteapp-webclient-launch-failure

Reply
Matz February 19, 2025 - 10:51 am

THIS IS THE SOLUTION

Reply
Nihal April 30, 2024 - 3:25 pm

Hello All,

I have getting error “Sign in failed. Check if your current environment is correctly configured” from external network. from internal it’s working fine.

Could you please help me into this?

Reply
admin May 7, 2024 - 1:18 pm

If the RDS certificate is trusted by your external client

Reply
Arbab March 21, 2025 - 4:24 pm

Hi, can you please let me know if this was resolved, if yes can you please guide how. i am also getting same error. if someone know the solution kindly guide.

Working fine internally, Externally getting error: “Sign in failed. Check if your current environment is correctly configured.”

Reply
Rob Hagman August 7, 2024 - 10:47 am

Do you have any info whether RD Web Access (the server role) is compatible with ASP.NET Core 8.0.7 ?
We have het currently installed on a server with ASP.NET Core 7.0.20 but that version of ASP.NET is EOL as of May 13 and has
active security concerns / vulnerabilities so it needs to be updated to version 8
I searched most online sources but can’t find any information whether RD Web Acces will still function after the upgrade of ASP.NET.

Reply
Horatiu December 3, 2024 - 6:25 pm

Hello
I follow up the entire setup and everything looks good.
My deployment consists of 3 vm server (gateway, broker and licensing, and Rdhost).
I publish some app that require more extensive 2d graphics . How can I improve the user experience ? I don’t have a dedicated graphical cards. The virtual environment is esxi 7.0. Thanks

Reply
admin December 12, 2024 - 6:57 am

Compare the performance of your Remote Desktop app in a full desktop mode (via mstsc.exe) with the HTML5 web client.
The MSTSC client usually has better performance than the HTML 5 client because it uses the UDP protocol (the HTML 5 client cannot use this protocol).

Reply
Marko Pesonen March 25, 2025 - 3:32 pm

Did the setup and all seems fine. Webpage is working and i can logon, no problem. But when i try to start an application i get instantly: The connection to the remote PC was lost. This might be because of a network connection problem. If this keeps happening ask your admin or tech support for help. Did record i here is the result

WebSocketTransport(ERR): WebSocket error received for url=wss://xxxxxx.xxxxxx.xx:443/remoteDesktopGateway?CorId=%7B0e2001dc-c49a-4a2b-93ac-624986560000%7D&ConId=%7B6311c89e-05de-426b-b3d8-5e8cdf31338c%7D&ClGen=HTML%3D1&ClBld=Type%3DRdClient%3B%20Build%3Dprivate&AuthS=SSPI_NTLM
websockettransport.cpp(304): OnErrorFromJS()

Connection(ERR): The connection generated an internal exception with disconnect code=ConnectionBroken(8), extended code=, reason=WebSocket closed with code: 1006 reason:
Thrown in thread 1440032 at:
websockettransport.cpp(335)

i replaced my fqdn with url=wss://xxxxxx.xxxxxx.xx:443
So the log does not have xxxxxx.xxxxxx.xx:443 it has the correct fqdn.

Reply
Arbab May 15, 2025 - 3:43 pm

Having this issue on RDS Externally, Working fine internally, Externally getting error: “Sign in failed. Check if your current environment is correctly configured.” after successfully authenticating from Azure Intra on next window it keep giving this error.

Reply
admin May 21, 2025 - 9:36 am

Check that the client trusts the certificate and that its common name contains the fully qualified domain name (FQDN) that the client is connecting to.

Reply

Leave a Comment Cancel Reply

join us telegram channel https://t.me/woshub
Join WindowsHub Telegram channel to get the latest updates!

Recent Posts

  • Map a Network Drive over SSH (SSHFS) in Windows

    May 13, 2025
  • Configure NTP Time Source for Active Directory Domain

    May 6, 2025
  • Cannot Install Network Adapter Drivers on Windows Server

    April 29, 2025
  • Change BIOS from Legacy to UEFI without Reinstalling Windows

    April 21, 2025
  • How to Prefer IPv4 over IPv6 in Windows Networks

    April 9, 2025
  • Load Drivers from WinPE or Recovery CMD

    March 26, 2025
  • How to Block Common (Weak) Passwords in Active Directory

    March 25, 2025
  • Fix: The referenced assembly could not be found error (0x80073701) on Windows

    March 17, 2025
  • Exclude a Specific User or Computer from Group Policy

    March 12, 2025
  • AD Domain Join: Computer Account Re-use Blocked

    March 11, 2025

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • Install and Manage Windows Updates with PowerShell (PSWindowsUpdate)
  • How to Download Offline Installer (APPX/MSIX) for Microsoft Store App
  • Fix: Remote Desktop Licensing Mode is not Configured
  • How to Delete Old User Profiles in Windows
  • Configuring Port Forwarding in Windows
  • How to Install Remote Server Administration Tools (RSAT) on Windows
  • Start Menu or Taskbar Search Not Working in Windows 10/11
Footer Logo

@2014 - 2024 - Windows OS Hub. All about operating systems for sysadmins


Back To Top