RDP RWW Remote Desktop Remote Web Workplace SP3

There seems to be some confusion around the web about the Microsoft Service Pack 3 and RWW and RDP update.

Lots or people are thinking that Microsoft did something to break the RDP / RWW ( web components ) for Remote Desktop Web Component.

The fact is that Microsoft didn't really break the objects they just replaced them with a New Component and New Object Model.

This is an example of the classic / XP SP2 and below.

function ConnectRDPClassic(sServerName,sDomain,sUserId,sPassword,sStartProgram )
{

   var resWidth = screen.width;
   var resHeight = screen.height;

   MsRdpClient = document.getElementById("MsRdpClient");
   MsRdpClient.FullScreen = true;
   MsRdpClient.DesktopWidth = resWidth;
   MsRdpClient.DesktopHeight = resHeight;
   MsRdpClient.Width = resWidth;
   MsRdpClient.Height = resHeight;
     
   MsRdpClient.server = sServerName;
   MsRdpClient.Domain = sDomain;
   MsRdpClient.UserName = sUserId;
   MsRdpClient.AdvancedSettings.ClearTextPassword=sPassword;
  
   if (sStartProgram=='')
           sStartProgram = '\"C:\\Windows\\system32\\notepad.exe\" \';

   MsRdpClient.SecuredSettings.StartProgram = sStartProgram;
   MsRdpClient.Connect();
}

Below is an example of executing the latest version of the RDP / RWW client.

This is how you would use the new version of RDP / RWW.

Note that I am using unescape on the sRDPFIle test like this unescape(sRDPFile);

I actually passed the RDP file contents to this function the data is url encoded why does it have to be this way im not totally sure but it works like a champ. If you need an example let me know.

Also note

function ConnectRDP61(sServerName,sDomain,sUser,sPassword,sRDPFile)
{

   var resWidth = screen.width;
   var resHeight = screen.height;

   //Get Pointer to Object to Execute
   MsRdpClient = document.getElementById("MsRdpClient");
   MsRdpClient.FullScreen = true;
   MsRdpClient.DesktopWidth = resWidth;
   MsRdpClient.DesktopHeight = resHeight;
   MsRdpClient.Width = resWidth;
   MsRdpClient.Height = resHeight;
  
   //Device redirection options
   MsRdpClient.AdvancedSettings2.RedirectDrives     = false;
   MsRdpClient.AdvancedSettings2.RedirectPrinters   = true;
   MsRdpClient.AdvancedSettings2.RedirectPorts      = false;
   MsRdpClient.AdvancedSettings2.RedirectSmartCards = false;
  
   //Set Settings and passed RDP File Content
   MsRdpClient.MsRdpClientShell.PublicMode = false;  
   MsRdpClient.MsRdpClientShell.RdpFileContents = unescape(sRDPFile);
   MsRdpClient.authenticationlevel = 2;
   MsRdpClient.negotiatesecuritylayer = 1;
   MsRdpClient.promptforcredentials = 0;

   //Set User Credentials
   MsRdpClient.TransportSettings2.GatewayDomain = sDomain;
   MsRdpClient.TransportSettings2.GatewayUsername = sUser;
   //MsRdpClient.TransportSettings2.GatewayPassword = sPassword;


   //Execute the RDP Object
   MsRdpClient.MsRdpClientShell.Launch()

}

posted @ Saturday, July 12, 2008 11:58 PM

Print

Comments on this entry:

# the back room tech

Left by at 7/13/2008 9:49 AM
Gravatar
the back room tech

# the back room tech

Left by at 7/13/2008 9:49 AM
Gravatar
the back room tech

# re: RDP RWW Remote Desktop Remote Web Workplace SP3

Left by faresfaycal at 9/7/2008 6:15 PM
Gravatar
faresfaycal@yahoo.fr

# re: RDP RWW Remote Desktop Remote Web Workplace SP3

Left by Dan at 11/6/2008 8:09 PM
Gravatar
I would love an examples. Thank you!

# re: RDP RWW Remote Desktop Remote Web Workplace SP3

Left by Vinayak at 11/7/2008 3:51 PM
Gravatar
I'm working on ts activex control and was able to login by providing the clear password option. although the control does not prompt me for a password it displays the logging screen(which is on the process of logging to the server). Is there an method or cludge which will help me to hide the logging screen.

# re: RDP RWW Remote Desktop Remote Web Workplace SP3

Left by Larry at 11/17/2008 7:42 PM
Gravatar
I can't say for sure. The previous version allowed you to pass in the password and not get the log in screen. From what I can tell when I passed in the password I still got the login screen.

Your comment:



 (will not be displayed)


 
 
 
Please add 3 and 4 and type the answer here:
 

Live Comment Preview:

 
«March»
SunMonTueWedThuFriSat
28123456
78910111213
14151617181920
21222324252627
28293031123
45678910