[Remote Desktop Services] Remove Domain requirement from RDWeb login page « JulianBen.com
[Remote Desktop Services] Remove Domain requirement from RDWeb login page
After installing Remote Desktop Web Services, one of the first things that I wanted to do was remove the requirement to put the domain name in. I am in a single domain environment and do not have a need for users to have to qualify their domain. I found the following fairly simple fix:
- Find the file renderscripts.js which for me was located in: C:\Windows\Web\RDWeb\Pages\renderscripts.js
- Find the function onLoginFormSubmit()
- Find the lines:
if ( objForm != null )
{
strDomainUserName = objForm.elements("DomainUserName").value;
- Copy/Paste the following code after the lines above:
// add default domain...
if ( strDomainUserName.indexOf("\\") == -1 )
{
strDomainUserName = "YOUR_DOMAIN_NAME\\" + strDomainUserName;
objForm.elements("DomainUserName").value = strDomainUserName;
}
- Save the File.