Change Log In Defaults on Terminal Server 2008

Posted on 2011-04-25
Last Modified: 2012-05-11
This is REALLY bugging me - I have recently installed a new Terminal server running 2008.  Whenever my users who are connecting from outside my domain\LAN attempt to connect, the log in tries to use the local server log in instead of my domain.  It's a total pain to have my users click the log in as other user or have them specify the log in user on the client (this needs to be as seamless as possible).

is there an ability to change the default domain?  
Question by:JamesonJendreas
    LVL 4

    Accepted Solution

    Hi JamesonJendreas

    Please check if  this helps in anyway.

    There is a link pointing to the following :


    The solution we employed was to tweak the underlying web files to better handle the domain.  We only have one domain so this was fixed, what I did was edit the renderscripts.js file (which includes the JS procedure which occurs after the login dialog 'submit') to check to see if the user has entered a domain (checking whether a backslash exists) and if not physically edit the edit box contents with the new domain.

    In the renderscripts.js file look for the function onLoginFormSubmit(), where it probes the username edit box simply insert the domain.  The code extract below includes a peice from the original file which shows you where it should be placed together with the new code (separated by blank lines).  In this instance the domain is called CHARLYMONKEY.

        if ( objForm != null )
            strDomainUserName = objForm.elements("DomainUserName").value;

            // add default domain...
            if ( strDomainUserName.indexOf("\\") == -1 )
              strDomainUserName = "CHARLYMONKEY\\" + strDomainUserName;
              objForm.elements("DomainUserName").value = strDomainUserName;

            strPassword = objForm.elements("UserPass").value;
            strWorkspaceId = objForm.elements("WorkSpaceID").value;

    It is messier that an RDP setting but we had to edit the web access site anyway for corporate branding, this was simply the next level.

    I hope that is of help, obviously if anything goes wrong with the login the modified value of the edit is written back to the edit box (this is essential) so the user can see if somehow they've entered the domain or something but with the wrong kind of slash.

    Please note that if you also tweak your main screen to check for RDC 7.0 and if not force users to download and install it the single sign-on works fantastically.  I haven't done this yet but am hoping the RDC ActiveX control can be probed by JavaScript so that proper version checking can take place.

    kind regards,


    Hope this helps !!
    LVL 4

    Expert Comment

    Hello JamesonJendreas,
    I was wondering if my suggestion was helpful in any way.

    Kind regards,

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    To effectively work with Diskpart on a Server Core, it is necessary to write some small batch script's, because you can't execute diskpart in a remote powershell session. To get startet, place the Diskpart batch script's into a share on your loca…
    If you migrate a Terminal Server licenses server inside the 2008 server family, you can takte advantage of the build-in migration tool. If you like to migrate an older 2003 Server (and the installed client CALs) to a 2008 R2 server for example, you …
    This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
    This tutorial will walk an individual through the process of upgrading their existing Backup Exec 2012 to 2014. Either install the CD\DVD into the drive and let it auto-start, or browse to the drive and double-click the Browser file: Select the ap…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now