C
CoolerThenZero
Guest
Hope someone can help further. I read a previous post on this group
that was being replied to by Vera Noest and it did help alot of my
questions. However, I'm still having problems. I created a .vbs batch
file to execute my application so that when the terminal server users
closes the application that it disconnects them.
Scenario
My session doesn't logoff when I quit my starting or published
application on a Windows 2003 Terminal Server running Citrix
Presenation Server 4.5
The workaround was to created a batch file like this one
use the following vb script to launch your application, and
define the vb script as the starting application.
Dim objWshShell, objExec, strAppExe
strAppExe = "<path_to_the_folder_containing_your_application>
\<application_executable>"
Set objWshShell = CreateObject("WScript.Shell")
Set objExec = objWshShell.Exec(strAppExe)
Do While objExec.Status = 0
WScript.Sleep 500
Loop
Set objExec = objWshSHell.Exec("logoff")
However, I am unsure of where to place the .vbs file. He (Vera)
mentioned to "define the vb script as the starting application".
Problem:
I get an error message when it tries to start the .vbs. To log on to
this server you must be a terminal server user,etc.
Steps I took
1. I went directly to the two windows 2003 Citrix Servers,
Administrative Tools-->Terminal Services Configuration-->Connections--
> ICA-tcp Properties--> and finally the Environment Tab.
2. I chose the "Start the Following program when the user logs on"
radio button and placed the .vbs file in the program file and path.
My Environment
I am not using Group policy for the two Windows 2003 Citrix servers.
I have both WYSE Terminals and Desktop PC's that will be accessing the
two Win 2003 Citrix Servers.
I would greatly appreciate everybody's input on this.
that was being replied to by Vera Noest and it did help alot of my
questions. However, I'm still having problems. I created a .vbs batch
file to execute my application so that when the terminal server users
closes the application that it disconnects them.
Scenario
My session doesn't logoff when I quit my starting or published
application on a Windows 2003 Terminal Server running Citrix
Presenation Server 4.5
The workaround was to created a batch file like this one
use the following vb script to launch your application, and
define the vb script as the starting application.
Dim objWshShell, objExec, strAppExe
strAppExe = "<path_to_the_folder_containing_your_application>
\<application_executable>"
Set objWshShell = CreateObject("WScript.Shell")
Set objExec = objWshShell.Exec(strAppExe)
Do While objExec.Status = 0
WScript.Sleep 500
Loop
Set objExec = objWshSHell.Exec("logoff")
However, I am unsure of where to place the .vbs file. He (Vera)
mentioned to "define the vb script as the starting application".
Problem:
I get an error message when it tries to start the .vbs. To log on to
this server you must be a terminal server user,etc.
Steps I took
1. I went directly to the two windows 2003 Citrix Servers,
Administrative Tools-->Terminal Services Configuration-->Connections--
> ICA-tcp Properties--> and finally the Environment Tab.
2. I chose the "Start the Following program when the user logs on"
radio button and placed the .vbs file in the program file and path.
My Environment
I am not using Group policy for the two Windows 2003 Citrix servers.
I have both WYSE Terminals and Desktop PC's that will be accessing the
two Win 2003 Citrix Servers.
I would greatly appreciate everybody's input on this.