Launch more than one app from RDP

Launch more than one app from RDP

How can I launch more than one application on a Microsoft Terminal Server using a published application?



On the terminal server, create a file in a directory like c:\launchers call it launcher1.vbs 

Dim objShell 
Dim objExec 
Dim strAppExe 
Const MAXIMIZE_WINDOW=3 
Const MINIMIZE_WINDOW=7 

’ List of codes http://www.microsoft.com/technet/scriptcenter/guide/sas_wsh_pkoy.mspx?mfr=true 

Set objShell = Wscript.CreateObject("WScript.Shell") 

’ Run the first app and minimize it. 
objShell.Run "notepad.exe", MINIMIZE_WINDOW 

’ Run the second app 
objShell.Run "mspaint.exe", MINIMIZE_WINDOW 

’ Run the last app in the sequence 
strAppExe = "calc.exe" 
Set objExec = objShell.Exec(strAppExe) 

’ Watch for this LAST app to close and logoff 
Do While objExec.Status = 0 
WScript.Sleep 500 
Loop 

Set objExec = objShell.Exec("logoff") 

Next for the webapp, launch wscript and pass the parameter c:\launchers\launcher1.vbs 

This will launch notepad.exe minimized, mspaint.exe minimized and calc.exe normally. It will wait for calc.exe to close before performing a logoff.

    Can't find the KB

    Unable to find the KB to address your issue ?  

      • Recent Articles

      • Change Reset Password Button Text

        Change the text of the "Reset Password" button on the UW Login Page How to change the text of the Reset Password button on the Login Page. Login to webNetwork and open webAdmin on your Relay Central Server Expand Customization Center Expand Tenants ...
      • Remove Reset Password Button From Login Page

        Remove the Reset Password Button from the Login Page How to remove the Reset Password button from the Unified Workspace login page. Login to webNetwork and open webAdmin on your Relay Central Server Expand Customization Center Expand Tenants Expand ...
      • Lenovo Unified Workspace End-of-Life Questions and Answers

        As of January 31st 2024, Lenovo Unified Workspace (formerly Stoneware WebNetwork) is no longer supported. This means that we no longer provide licenses, downloads, updates, patches, or technical assistance for this product. If you have any questions ...
      • How do I determine my Unified Workspace license expiration date?

        The best method for determining the licensing information including the expiration date of your Unified Workspace license: Login to your 8090 management console on each server This may take remoting into each LUW server and relay, opening a browser, ...
      • Lenovo Unified Workspace 7.0.2.13 Released

        Highlights of Unified Workspace 7.0.2.13 Before you install: Please view the installation notes here. 7.0.2.13 requires a 7.0 license file. Below is a list of enhancements and fixes released in Unified Workspace 7.0.2.13 Fixed external storage ...
      • Related Articles

      • Launch native RDP client

        How can I have an RDP webapp launch the native client instead of the web client? RDP User Select option:  Selects the type of remote client that will be loaded at the workstation.  Web Client will load the ActiveX (for IE) or Java WebRDP (Firefox, ...
      • FireFox on Mac does not launch app

        When an RDP webapp is configured and has an application assigned to launch upon login to term server, it fails to load the app and gives the user a desktop login. This happens if the user has Microsofts RDP client for the mac installed, it picks up ...
      • Unable to connect to 2008 server with RDP and launch application

        With Windows server 2003 I was able to make a RDP connection and launch a "published" program upon connection rather than bring up a desktop. Why does this not work with Server 2008? On Windows Server 2003 Microsoft allowed using the built in 2 ...
      • Create multiple links for one webapp.

        How can I make more than one link to a webApp and have it launch a different startup URL. Create your host object and http(s) virtual webApp and get it working for one startup URL. When editing the webApp object, make a note of the webApp DN. This is ...
      • RDP Issues after upgrade

        Customer upgraded from Stoneware WN 5.3 SP3 to WN 5.4. After the upgrade, we found that RDP applications no longer worked from Mac OSX Clients. They would get a Java Null Pointer Exception. In the past, we had to place ...