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

      • 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 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 ...
      • 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 ...
      • 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, ...
      • 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 ...