Jump to content

Windows 2003 TS with Citrix PS 4.5


Recommended Posts

Guest CoolerThenZero
Posted

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.

  • Replies 1
  • Created
  • Last Reply

Popular Days

Guest Vera Noest [MVP]
Posted

Re: Windows 2003 TS with Citrix PS 4.5

 

Did you identify which process is keeping the session from logging

off?

The workaround with the logoff-script is a last resort. If you are

able to identify the culprit there's a much more elegant solution,

described here:

 

CTX891671 - Graceful Logoff from a Published Application Keeps

Sessions in Active State

http://support.citrix.com/article/CTX891671

 

OT: I always thought that Vera is a female name in most parts of

the world, but this is the second time this month that I am accused

of being male :-)

_________________________________________________________

Vera Noest

MCSE, CCEA, Microsoft MVP - Terminal Server

TS troubleshooting: http://ts.veranoest.net

___ please respond in newsgroup, NOT by private email ___

 

CoolerThenZero <sjamal@comcast.net> wrote on 17 okt 2007 in

microsoft.public.windows.terminal_services:

> 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.


×
×
  • Create New...