Home >

RDP RWW Remote Desktop Remote Web Workplace SP3

18. August 2010

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()

}

Comments

8/18/2010 7:14:30 AM #
Enable RDP RWW on XP SP3 mstscax.dll msrdp.ocx

Enable RDP RWW on XP SP3 mstscax.dll msrdp.ocx
9/2/2010 3:59:34 AM #
Great Post this help me with my remote connection details for work Thanks so much
Comments are closed