Launch and wait for multiple apps on Terminal Server

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 process that it should also wait for before quitting. 

In the examples below (which show 3 ways you can do this), I have wnssoclient.exe launch notepad. Then I manually was starting calc (to simulate app1 launching app2). wnSSOClient will not shut down until both apps are done. 

SIMPLE SCRIPTING 
wnssoclient.exe "{app:notepad}|{alsowaiton:calc}|{notimeout}" 

XML SCRIPTING (using mainscript) 
wnssoclient.exe "<ssoscript><app>notepad</app><mainscript>{alsowaiton:calc}|{notimeout}</mainscript></ssoscript>" 

XML SCRIPTING (specify alsowaiton in xml rather than in mainscript) 
wnssoclient.exe "<ssoscript><app>notepad</app><alsowaiton>calc</alsowaiton><mainscript>{notimeout}</mainscript></ssoscript>" 
 

Some times an application will launch, spawn another process and close the first one.
Internet Explorer acts like this. 

To do Internet Explorer :
Set your start program for iexplore.exe
Pass in the url you want to launch as a parameter
Then for the sso script use :
{alsowaiton:iexplore}|{logoffonexit}|{notimeout}

This will wait for iexplore to finish before issuing a logoff.

The reason for this is that based on some settings for IE, it launches itself and then launches another sub process for the site you want to browse to.  This double launch causes wnssoclient to think you finished with iexplore.exe and logs you off.

The alsowaiton:iexplore tells it to wait for another iexplore to finish before shutting down.

To pass in a URL to have open when IE launches, put http://www.google.com as the parameter to send to iexplore.exe in the webapp.


** Note you need to use the process name not the executable like notepad.exe.  Many times the process name is just the name of the executable without the .exe.  You can use the cmd tasklist to dump all of the running programs on the machine and try the name listed in the "image name" column without the .exe

    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 Internet Explorer and wait

        When I launch Internet Explorer as a Terminal Server published app, sometimes it thinks that it has closed down and logs me off automatically. The wnssoclient can take care of this.  Set your start program for iexplore.exe  Pass in the URL you want ...
      • Terminal Server sizing

        Are there recommendations for Terminal Server sizing? Terminal server sizing is one of those loaded questions and typically gets the answer of "it depends"  There are many factors in sizing a Microsoft terminal server. A quick Google search and you ...
      • Create a Terminal Server application

        How do I set up a terminal server application in webNetwork? If you go to the manual, the link is under your Admin menu. Or you can go to https://customer.lenovosoftware.com/help/index.html  Go under Services, Web Applications, Web Application Types, ...
      • Launching multiple applications using wnSSOclient

        A user launches a MS Word RDP webApp that uses the wnSSOclient and then closes that terminal server window incorrectly.  The user then launches a MS Excel RDP webApp which also uses wnSSOclient, the previous winword session comes back up. Customer ...
      • Terminal Server 2000 information

        Windows 2000 terminal server settings From Microsoft site : http://72.14.203.104/search?q=cache:OPeT_a8tzEEJ:www.microsoft.com/technet/prodtechnol/win2kts/maintain/optimize/secw2kts.mspx+terminal+server+active+session+limit&hl=en&gl=us&ct=clnk&cd=1 ...