Re: Is it possible to find out if mstsc.exe was able to login or not?



Mm, I'm far from a scripting expert, but one method which comes to
mind is to check the output from a "netstat -an" command on the
client, and search for an established connection to port 3389 on
the server.

_________________________________________________________
Vera Noest
MCSE, CCEA, Microsoft MVP - Terminal Server
TS troubleshooting: http://ts.veranoest.net
___ please respond in newsgroup, NOT by private email ___

=?Utf-8?B?Sm9yZ2VD?= <JorgeC@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote on
15 mar 2007 in microsoft.public.windows.terminal_services:

Hello!
I've been asked to write a script of some sort which will find
out whether the login (using the remote desktop client) failed
or not. Why?
This is the scenario:
The user usually connects to a terminal server using the remote
desktop client (mstsc.exe) but every now and then the internet
connection is lost for a few hours. And when this happens the
user can't obviously login, so I should write some script to
find out if the login was successful or not and if not run
another local application instead.

How can I know whether the login was successful or not? Is it
possible? I can't find a way to do this.
And yes, if you think this doesn't make much sense, ... I agree
with you, but the boss commands so...

J.C.
.



Relevant Pages

  • Re: Expect script to install sshkey
    ... you have mentioned that you are using "lynx" for the download, would it be possible you to use wget/any other file retrieval utility from www rather than a information browser. ... I have a perl Expect script that install rsa keys for ssh auto login. ... When I run the script on command line it works fine. ...
    (perl.beginners)
  • Re: mod_python and pysvn
    ... Isn't this an SVN client error? ... Seems to me that the repository URL ... try accessing the repository using svn list from the command ... I suspect that if I import the script that the script becomes local ...
    (comp.lang.python)
  • Re: problem with login
    ... login session" after I create their account. ... If your script is using the mkuser command, ...
    (comp.unix.aix)
  • Re: Expect script to install sshkey
    ... I have a perl Expect script that install rsa keys for ssh auto login. ... When I run the script on command line it works fine. ...
    (perl.beginners)
  • Disappearing files, created from /etc/X11/Xclients
    ... You can find the startwm.py script at the end of this e-mail. ... I wanted to save client IP addresses and the date of the login into different files. ... fout = file),'ab+') ...
    (freebsd-questions)