wnSSOClient launching runas
This will perform the following.
Launch runas passing in a username and application
Sets the workdir
Waits for the Command Prompt
Fills in the password for runas.
It then waits for the app to open and fills in the application username and password.
Finally, it will wait for that application to exit before issuing a logoff
<ssoscript>
<app>runas</app><args>/user:domainusername c:\myfolder\myapp.exe</args>
<alsowaiton>MyRunAsWindowName</alsowaiton>
<workdir>
c:\myfolder
</workdir>
<definewindows>Command Prompt</definewindows>
<mainscript>
password-for-runas-user|{enter}
</mainscript>
<definewindows>MyAppWindowName</definewindows>
<mainscript>
{pause:2}|{tab}|{tab}|{tab}|{tab}|@@enc:myapplockbox--user@@|{tab}|@@enc:myapplockbox-pass@@|{enter}
</mainscript>
<logoffonexit/><notimeout/>
</ssoscript>