[THIN] Re: idle time

  • From: "Carlos Sanabria" <csanabria@xxxxxxx>
  • To: <thin@xxxxxxxxxxxxx>
  • Date: Thu, 15 May 2003 10:47:57 -0500

I agree, of course the easiest way to do it is by changing the Idle =
timeout
value at the connection level, lathough sometimes it is not the desired
solution since the server will take the most restrictive value between =
the
connection value and the user value. So let's say, for example, Andrew =
needs
all users, but one  to have a idle timeout value of 45 minutes... The =
only
way to do it is by changing all the users session properties, of course =
you
don't have to do it manually, here comes to magic of scripting and cool
utils:

First, you need to get the list of users, here's a little script to do =
just
that (I did not write, and I am sorry to say I do not remember where I
downloaded it from to give him/her the appropiate credit)

---BEGIN VBSCRIPT--------
'Get the provider object
Const strDomainName =3D "DOM"
Set dom =3D GetObject("WinNT://" & strDomainName)

'Examine the objects in the domain and check for User object
For each o in dom
   If o.Class =3D "User" Then
      WScript.Echo o.Name
   End If
Next
----END VBSCRIPT---------

Of course, you have to change the value "DOM" on the second line with =
your
domain line. So run it from your command console to get a nice users.txt
file:

Cscript //NOLOGO ListUsers.vbs > users.txt

Here comes the manual part: open your users.txt file and do some manual
auditing, you are going to find a lot of users maybe you do not want to
change, like TsInternetUsr or IUSR_<SERVERNAME> and what not.

Next, get an absolutely top-notch free util called "tscmd"
(http://thethin.net/tscmd.zip) and do a for to read your whole file and
change any user value you want:

For /F %i in (users.txt) do tscmd.exe <server> %i <setting> [new value]

In your case, that would be:

For /F %i in (users.txt) do tscmd.exe <server> %i TimeOutValue 45=20


One final note: Although you COULD do the whole thing in a single script =
by
integrating the tscmd job in the VBScript by using the ADSI interface, I
like the step-by-step approach because I can tweak every step of the =
way,
for say, a different query in the VBS script or a different command on =
the
tscmd part.

Well, I really hope it helps!

Carlos Sanabria, CCA, MCSA
IT Consultant
-----Original Message-----
From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On =
Behalf
Of Sheflin, Andrew
Sent: Thursday, May 15, 2003 8:11 AM
To: Citrix List (E-mail)
Subject: [THIN] idle time



We are on a W2K domain. Is there a way to change the Idle time for all =
users
at the same time? We want to change the idle time from 1 hour to 45 =
minutes.
We can change it for 1 user at time, but when you select multiple users =
it
doesn't change it for all users. We have over 1400 users, it would be =
time
consuming to do one at a time.

Any suggestions?
********************************************************
This Week's Sponsor - Emergent Online
EOL's Universal Printer new Features include:
Network Printing, Pagestreaming, 2400 DPI.
No Client Software Required!
http://www.go-eol.com/
**********************************************************

For Archives, to Unsubscribe, Subscribe or=20
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.481 / Virus Database: 277 - Release Date: 5/13/2003
=20

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.481 / Virus Database: 277 - Release Date: 5/13/2003
=20


********************************************************
This Week's Sponsor - Emergent Online
EOL's Universal Printer new Features include:
Network Printing, Pagestreaming, 2400 DPI.
No Client Software Required!
http://www.go-eol.com/
**********************************************************

For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm

Other related posts: