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
Lenovo Unified Workspace End-of-Life Questions and Answers
Will the shutdown of LUW servers and access to downloads affect my server licensing? No, the shutdown of the customer servers and access to the product and licensing downloads will not affect your server licensing. This license is downloaded and ...
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 ...
LanSchool Documentation Guides
LanSchool Classic Teacher Console The LanSchool Teacher Console is the interface teachers will use to manage their classroom and students. It contains all the tools necessary for a teacher to effectively interact with students and create a ...
Lenovo Unified Workspace 7.0.1.41 Released
Highlights of Unified Workspace 7.0.1.41 Before you install: Please view the installation notes here. 7.0.1.41 requires a 7.0 license file. Below is a list of enhancements and fixes for Unified Workspace 7.0.1.41 Updated Log4j Updated Java Updated ...
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 ...
Launch and wait for multiple apps on Terminal Server
How can I launch more than one application on a remote TS server and wait until they all exit before logging out of TS session ? To keep things running a new scripting command called "alsowaiton" was added. You just pass in the name of another ...
Slow connections when launching app
When user would launch a published app it would take a while. When closing an app blue screen won't disappear. Web browser was set to prompt when running activex controls. Also found that Time Live was set to 0 which was causing the application to ...
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 ...