By default, the RD Web Access web portal (the "old" interface) is still used to provide some features, including password changes, even when the web client is used to access remote resources. However, it is possible to configure the web client to support password changes directly from the web client interface.
To enable password changes in the web client, you will need to configure the web client to use a custom implementation of the password change dialog. This can be done by modifying the RDWebClientManagement PowerShell module on the RD Web Access server.
To do this, follow these steps:
On the RD Web Access server, open an elevated PowerShell session.
Run the following command to import the RDWebClientManagement module:
Import-Module RDWebClientManagement
Run the following command to create a custom implementation of the password change dialog:
Set-RDWebClientConfiguration -CustomChangePasswordUrl <URL>
Replace <URL> with the URL of the custom implementation of the password change dialog. This URL should point to a web page or service that implements the password change dialog.
Restart the RD Web Access service to apply the changes. After completing these steps, users will be able to change their passwords directly from the web client interface without being redirected to the RD Web Access web portal.