Jawab RDP7 Client Detection for RDWeb

  • 06 Januari 2012 1:48
     
     

    I'm looking to modify RDWeb in order to detect if RDP7 is installed.  I think it's unrealistic to think users will be able to figure this out or have to contact the Help Desk in order for them to walk them through the process.  I saw the following thread (http://social.technet.microsoft.com/Forums/en-US/winserverTS/thread/fb283f5d-6623-49a0-9503-ec1d8bfdc642) while looking to setup a default domain as again I think it's unrealistic for users to enter the correct syntax of domain\username.  I'm not to sure what has to be done from that thread or if there is another/different way of doing this?

    • Diedit oleh SAC5180 14 Januari 2012 22:57
    •  

Semua Balasan

  • 09 Januari 2012 17:18
     
     
    Anybody?
  • 14 Januari 2012 23:01
     
     
    Help!
  • 22 Januari 2012 17:47
     
     Jawab

    RDWeb uses this function to check the RDP Version.  You can use his method to check to see if the version equals the 7 version.  Be aware RDP 7.1 is actually version 6.1.  I believe Windows 7 SP1 is RDP Version 6.1.7601.  Hope this helps.

    function Is61Client() {

          var retval = 0;

          try {

             var MsTscAX = new ActiveXObject("MsRDP.MsRDP.5");

             if ( MsTscAX ) {

                 retval = 2;

                 var verString = MsTscAX.Version.split(".");

     

                 if ( verString.length > 2 ) { 

                    if ( (verString[0] > 6) || (verString[0] == 6 && (verString[1] > 0 || verString[2]>=6001)) ) {

                      retval = 1;

                    }

                 }

             }

          }

          catch(e) {

              retval = 0;

          }

          return retval;

    }

    • Ditandai sebagai Jawaban oleh SAC5180 24 Januari 2012 15:26
    •  
  • 23 Januari 2012 20:32
     
     

    Hi Sac5180,

     

    We ended up altering the windows\web\rdweb\pages\en-us\login.aspx page on our RD Web Access deployment so that where the username prompt was it has @domainname prepopulated and the label says username@domainname: as the cursor is placed at the beginning of the username box the user doesn't have to worry about the domain name stuff.

    If you change the const string L_DomainUserNameLabel_Text line this will alter the label (you can make it what you like - I made ours "username@ourproperdomainname:") and then find the line that says <input id="DomainUserName" name="DomainUserName" type="text" class=textInputField" runat="server" size="25" autocomplete="off" /> and insert value="@yourdomainname" after the autocomplete="off" but before the /> you should find that when the page loads it has the domain name prepopulated.

     

    We have WebSSO functioning with this set up and in terms of credential provision there doesn't appear to be much functional difference between domainname\username and username@domainname

     

    Hope that helps.

    Cheers

    Dan.

     


  • 13 April 2012 18:33
     
     
    Where exactly is that function? Or where does it have to be added. I too am trying to do a check and see if RDP 7 is installed