To totally unlock this section you need to Log-in
In this article we will see how to customize our Web Access Login Page to make it look the way we want it to look.
Password Reset Link
First thing you can do is add a password reset link, so it’s actually a link where users can change their AD passwords just from the main page of RD Web Access. Let’s start by opening IIS in Server Manager:
Expand your Server –> sites –> Default Site –> RD Web page and click on Pages.
Double-click on Application Settings:
We can see that PasswordChangeEnabled is false so we are going to edit that and change that to true. Double-Click on it and type in True in Value:
Just changing that to true means if the user’s pass expires, the RD Web Access page can prompt them to change their pass, but we want to go step further and give them a link on the main page. Minimize IIS and open Windows Explorer.
By default, everything for the RD web page is in %windir%\web\rdweb\pages\
This will also be the folder where we’ll do most of the customizing that’s discussed in this article. Before we continue, make a backup copy of this entire %windir%\web\rdweb\pages folder.
We want to edit login.aspx. Right-click on it and select Edit.
We need to find an area that talks about userpass, and the easiest way is just to search for userpass.
Scroll down and get to the end of the table and add new code. We are going to add another tr (is for table row), td (is going to keep this particular cell on the right-hand side) and now we are going to add hyper-link, so that is a href. Whatever is in the tags is going to be what users are actually going to click on.
Save the file and browse to your RD Web Page. Now you can see a link on the main page and if you click on it, it will open up the password page.
Work Resources Customization
Next thing we are going to do is to change the default images. The image in the upper left-hand corner is actually named logo_02.png:
The image in the uper righ-hand corner is named logo_01.png:
They are located in the images folder. We have two example images which we will copy into image folder (into the path %windir%\web\rdweb\pages\images):
Now we have to edit Site.xls, that is actually the skeleton web page file, which is located in %windir%\web\rdweb\pages. Right-click on it and select Edit:
First thing we are going to do is search for logo (remember, logo_01 is the one in the upper right-hand corner) and we are going to replace that with our example logo:
Click Find Next until you find logo_02.png: change it also. Logo_02 is the one that’s right next to Work Resources text.
Save the file and browse to your RD Web Page. Logo is changed.
Now we will customize banner. That is the area with the globe behind work resources.
Edit Site.xls file again. Search for banner, and this banner_01 is the globe that we see. We are gonna replace it with Mercedes_Logo(2):
Save the file and browse to your RD Web Page:
Changing bg_globe_01.jpg changes the big globe background image of the whole site. Browse to the %windir%\web\rdweb\pages folder and right-click on tswa.css file and click Edit:
We will replace bg_globe_01.png with our example image:
Save the file and reload the page:
WORK RESOURCES – This has to be changed using a Powershell connection on the Remote Desktop Connection Broker.
The text underneath it:
REMOTEAPP AND DESKTOP CONNECTION – This is changed in an XML file.
Let's begin with the WORK RESOURCES: now go to our Connection Broker to change the text string:
Run Powershell as admin and type in: Set-RDWorkspace -Name “Mehic”
Refresh the web page and take a look:
Next thing we are going to change the text string RemoteApp and Desktop Connection. Go back to your server and browse to %windir%\web\rdweb\pages\
Modify this line and replace it with the message of your own.
Save the file and browse to your RD Web Page.
Next thing we can do is customize the security setting messages:
Browse to %windir%\web\rdweb\pages\
Security setting session timeouts
- This is a public or shared computer – when you select this option your session timeout is 20 minutes.
- This is a private computer – when you select this option your session timeout is 240 minutes.
You can change these settings in IIS:
Expand the Server –> Sites –> Default Site –> RD Web page and click on Pages, and double-click on Application Settings.
Customizing the disclaimer message
You can replace this text with a text provided by your organization’s legal department, or you can choose to clear it.
Browse to %windir%\web\rdweb\pages\<language -code> and right-click on login.aspx:
Configure RDS Web Services for Email Login
NOTE: make a copy of the RDS web Folder before making any changes.
Go to the following folder on your RDweb Server: C:\Windows\Web\RDWeb\Pages\<language -code>.
Open the following file, login.aspx, with a text editing tool like Notepad++.
You will need to edit lines 19, 27, and 28 so that it shows email address. Save and then exit.
Now search for the following file under: C:\Windows\Web\RDWeb\Pages\webscripts-domain.js.
Then make the following changes:
On line 44 add “//” at the beginning of the line (this will "comment" the line). On line 46 remove “else” so you are left with if as shown in the screen shot.
There you have it, RDWeb now configured for your users to login via the UPN (Email address).