[THIN] Re: How to automatically log off when a TS sessioin ends

  • From: Angus Macdonald <Angus.Macdonald@xxxxxxxxxxxxxxxxxxx>
  • To: thin@xxxxxxxxxxxxx
  • Date: Wed, 27 Oct 2004 17:03:03 +0100

Shelaunch ( http://thethin.net/shelaunch.zip
<http://thethin.net/shelaunch.zip> ) replaces the standard win95/98/me shell
with a column of up to 5 configurable buttons. Assign one to launch the app
and another to shut the PC down. The examples and docs show you how to setup
a Citrix connection as a desktop but you should be able to do the same thing
with RDP after a little tweaking.

-----Original Message-----
From: Patterson, Colin [mailto:CPatterson@xxxxxxxxxxx]
Sent: 27 October 2004 15:37
To: 'thin@xxxxxxxxxxxxx'
Subject: [THIN] How to automatically log off when a TS sessioin ends



Hello,

We would like to use our old PCs as thin clients. 


The application we are running on the terminal server, requires that the
logged on user be logged off (automatically) when they are done their
session. The problem is that when this happens, the user at the PC is left
with an empty desktop and no way to restart or reconnect to the server. 

Can anyone think of a way to have the RDP client reconnect if the connection
is ended?

Here are a few things I have tried.

I made a .bat file, which I ran as the shell like this;

Start /wait default.rdp

Logoff /f /n

This worked except that 

a)      it leaves a command window open on the desktop and 
b)      the cancel button on the 'connecting to...' screen causes it to drop
to the desktop 

I also tried to make a .vbs script which I might run in the background
watching for mstsc.exe to end, but it seems that when my connection ends,
mstsc,exe does not end.

If any one has any ideas, they would be greatly appreciated.

Thanks,

BM__MailAutoSigColin 




Gallai'r e-bost yma gynnwys gwybodaeth gyfrinachol a/neu ddeunydd hawlfraint.  
Os ydych chi'n meddwl eich bod wedi derbyn yr e-bost yma drwy gamgymeriad rydym 
yn ymddiheuro am hyn; peidiwch os gwelwch yn dda â datgelu, anfon ymlaen, 
printio, copïo na dosbarthu gwybodaeth yn yr e-bost yma na gweithredu mewn 
unrhyw fodd drwy ddibynnu ar ei gynnwys: gwaherddir gwneud hynny'n gyfan gwbl a 
gallai fod yn anghyfreithlon. Rhowch wybod i'r anfonwr fod y neges yma wedi 
mynd ar goll cyn ei dileu.
 
Mae unrhyw safbwynt neu farn a gyflwynir yn eiddo i'r awdur ac nid ydynt o 
anghenraid yn cynrychioli safbwynt neu farn Ymddiriedolaeth GIG Gogledd 
Orllewin Cymru.

Gallai cynnwys yr e-bost yma gael ei ddatgelu i'r cyhoedd o dan Gôd Bod yn 
Agored y GIG neu Ddeddf Rhyddid Gwybodaeth 2000.  Nid oes modd gwarantu 
cyfrinachedd y neges ac unrhyw ateb. 

Bydd y neges yma ac unrhyw ffeiliau cysylltiedig wedi cael eu gwirio gan 
feddalwedd canfod firws cyn eu trosglwyddo.  Ond rhaid i'r sawl sy'n derbyn 
wirio rhag firws ei hun cyn agor unrhyw ymgysylltiad.  Nid yw'r Ymddiriedolaeth 
yn derbyn unrhyw gyfrifoldeb am unrhyw golled neu niwed a allai gael ei achosi 
gan firws meddalwedd.


This e-mail may contain confidential information and/or copyright material.  If 
you believe that you have received this e-mail in error please accept our 
apologies; please do not disclose, forward, print, copy or distribute 
information in this e-mail or take any action in reliance on its contents: to 
do so is strictly prohibited and may be unlawful.  Please inform the sender 
that this message has gone astray before deleting it.

Any views or opinions presented are to be understood as those of the author and 
do not necessarily represent those of the North West Wales NHS Trust.

The contents of this e-mail may be subject to public disclosure under the NHS 
Code of Openness or the Freedom of Information Act 2000.  The confidentiality 
of the message and any reply cannot be guaranteed.

This message and any attached files will have been checked with virus detection 
software before transmission.  However, recipients must carry out their own 
virus checks before opening any attachment.  The Trust accepts no liability for 
any loss or damage, which may be caused by software viruses.

Other related posts: