Cannot Log off after running 'Initial Program' for Remote Desktop

  • Thread starter Thread starter Bryan
  • Start date Start date
B

Bryan

Guest
We want to give a user access to a server via Remote Desktop and only give
them access to a single program. This works perfectly fine, howerver when
the user (or us as Administrators) close the program, the program closes but
their is no way to exist out of the session unless you disconnect. By no way
I mean the screen is just blue, looks like explorer.exe.
I have a Windows 2003 Server Environment.

Thank You
 
Re: Cannot Log off after running 'Initial Program' for Remote Desktop

Hello,

Normally this should terminate and logoff the user as far as I am
aware. Perhaps the application is not completely terminating when you
quit?
Have you tried using a simple application like notepad to see when you
close this if the user is logged off? If this works then perhaps there
is an issue with the application.

Also something you may want to try is setting the user to run a vbs
file using the Inital Program of wscript {path to a vbs file} the
VBScript file then launches the application and waits for it to
finish, then runs the log off command. Lemme know if this helps.

wscript c:\launch.vbs

************* launch.vbs *************
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "c:\windows\notepad.exe", 1, True
WshShell.Run "c:\windows\system32\logoff.exe", 1, True
Set WshShell = Nothing



Thanks,


CENTREL Solutions, Automation and Management
http://www.centrel-solutions.com
 
Back
Top