Page 1 of 2 12>
Topic Options
#111810 - 2004-01-15 01:22 AM Logoff all users
olmeca3332003 Offline
Fresh Scripter

Registered: 2003-10-26
Posts: 35
Greetings to all
We are experiencing large amount of our users are not logging off at the end of their workday, hence bypassing the login script. Is it possible to logoff any lock workstations after x hour of inactivity daily? Any and all suggestions are welcome.

Top
#111811 - 2004-01-15 02:11 AM Re: Logoff all users
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
Please let us know what Server and Desktop environment you are in and what version of KiXtart you use.

Server NT 4 model or 2000/2003 AD model?
Clients Win9x/2K/XP or mix?

Are you looking for a SOLUTION or a FREE work-around to the issue via some automated method?

Top
#111812 - 2004-01-15 03:26 AM Re: Logoff all users
olmeca3332003 Offline
Fresh Scripter

Registered: 2003-10-26
Posts: 35
I’m currently using kixtart ver 4.22 and we operate in an NT4 server environment with mix client-nt,w2k and xp. I was looking forward to the start of a script that checks for inactivity while counting and reset if activity is detected.
Top
#111813 - 2004-01-15 05:35 AM Re: Logoff all users
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I remember I asked for com-automation piece for that and remember talking to some of our com-dll-ppl but don't remember did they provide me an interface for that (sadly, was too dwelled with work-related-stress)

anyway, basically it's not possible but with compiled proggies, yet once it's available via dll, it is doable.
as can't remember where that dll thing stopped, I have to say you can't do such thing.

basically, all you need is to query from OS for the kb and mice idle-time.
_________________________
!

download KiXnet

Top
#111814 - 2004-01-15 08:47 AM Re: Logoff all users
Co Offline
MM club member
***

Registered: 2000-11-20
Posts: 1341
Loc: NL
create a logoff script and schedule it.

For XP this isn't a problem because you can use schtasks:
Quote:


SCHTASKS /Create [/S system [/U username [/P password]]]
[/RU username [/RP password]] /SC schedule [/MO modifier] [/D day]
[/I idletime] /TN taskname /TR taskrun [/ST starttime] [/M months]
[/SD startdate] [/ED enddate]


/I idletime Specifies the amount of idle time to
wait before running a scheduled
ONIDLE task.
Valid range: 1 - 999 minutes.





For the other os's you have to use something else.

It isn't freeware but maybe this can help you:
http://www.ayesoftware.com/asd/products.php

I'll let you know if there is something else you can use..
_________________________
Co


Top
#111815 - 2004-01-15 09:15 AM Re: Logoff all users
Co Offline
MM club member
***

Registered: 2000-11-20
Posts: 1341
Loc: NL
I think JT.exe can do the job..

Take a look at this UDF:
TaskScheduleControl() - Library of UDFs to manage Windows Task

A few other URLS:

http://www.jsiinc.com/SUBF/TIP2600/rh2621.htm

http://msdn.microsoft.com/library/en-us/taskschd/taskschd/task_scheduler_start_page.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/taskschd/taskschd/ischeduledworkitem_setidlewait.asp

http://www.nncron.ru/



_________________________
Co


Top
#111816 - 2004-01-15 09:16 AM Re: Logoff all users
MightyR1 Offline
MM club member
*****

Registered: 1999-09-09
Posts: 1264
Loc: The Netherlands
Or if all users must have left the building at 18:00, start a script at logon which checks the time every 15 min. and if time > 18:00 do a shutdown.
_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...

Top
#111817 - 2004-01-15 09:43 AM Re: Logoff all users
Co Offline
MM club member
***

Registered: 2000-11-20
Posts: 1341
Loc: NL
When they don't logoff it will not start at logon... it is better to schedule a task. Of course you can schedule a shutdown at 19:00
_________________________
Co


Top
#111818 - 2004-01-15 11:01 AM Re: Logoff all users
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
well, my co-worker did a task that kills all CAD proggies at the factory every 15min or so.
your plans start to sound just like that.

why don't you connect the power-outlets of the offices to the lightswitch?
when dude leaves or guards turns the lights off, byu byu left-on comps.
_________________________
!

download KiXnet

Top
#111819 - 2004-01-15 01:21 PM Re: Logoff all users
AzzerShaw Offline
Seasoned Scripter
****

Registered: 2003-02-20
Posts: 510
Loc: Cheltenham, England
I use shutdown via scheduled task. This also helps with a virtual memory problems etc Admittley you get "peeved" users moaning that they didnt save there work but thats there on stoopid fault !!! And they are allowed to be laughed at
_________________________
If at first you don't succeed, try again. Then quit. There's no use being a damn fool about it. - W.C Fields

Top
#111820 - 2004-01-15 02:35 PM Re: Logoff all users
Richie19Rich77 Offline
Seasoned Scripter
*****

Registered: 2002-08-16
Posts: 624
Loc: London, England
All my users use a Mandatory Profile, with a logoff screensaver set for 20 minutes.

This seems to do the trick.

Top
#111821 - 2004-01-15 03:29 PM Re: Logoff all users
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
Why not just limit the permitted logon hours for users with automatic logoff? This feature has been present in Windows since at least the NT4 domain model. See HOW TO: Limit User Logon Time in a Domain in Windows 2000, HOW TO: Limit User Logon Time in a Domain in Windows Server 2003, and How to limit a user's login hours on Windows NT
_________________________
There are two types of vessels, submarines and targets.

Top
#111822 - 2004-01-16 08:54 AM Re: Logoff all users
Wizard Offline
Hey THIS is FUN
*****

Registered: 2000-12-05
Posts: 264
Loc: Bristol, England
Using logon hours in this way might not be possible if remote users dial in after hours.
_________________________
Wizard
There's no place like 127.0.0.1

vb | kix | batch | html | cfm | js | english

Top
#111823 - 2004-01-16 09:00 AM Re: Logoff all users
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
well, you can keep a list of users who have a habit to leave themselfes locked on.
I know from our corp that many do leave it like that but there is also some that do it because they will come back to office when everyone else is gone.
for the others you feel leave themselfes locked on for no reason, start setting their profiles.

anyway, to force a daily logon, woah...
there should no need for that. if you have a logonscript that needs to run daily... well, you should start building an admin script.
_________________________
!

download KiXnet

Top
#111824 - 2004-01-16 11:32 AM Re: Logoff all users
Co Offline
MM club member
***

Registered: 2000-11-20
Posts: 1341
Loc: NL
Then schedule this admin script and let it start when idletime is X.... Users don't have to logoff


P.s. I also never logoff my system
_________________________
Co


Top
#111825 - 2004-01-16 12:05 PM Re: Logoff all users
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I think the main thing with this bloody schedule-discussion started from my comments saying that can't look at idle time with kix.
that is, without any help of other proggies.
_________________________
!

download KiXnet

Top
#111826 - 2004-01-16 12:19 PM Re: Logoff all users
Co Offline
MM club member
***

Registered: 2000-11-20
Posts: 1341
Loc: NL
true, but XP has a buildin proggie... schtasks... and jt.exe is used a lot in kix scripts/udf's So...

Edited by Co (2004-01-16 12:21 PM)
_________________________
Co


Top
#111827 - 2004-01-16 01:07 PM Re: Logoff all users
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
heh, XP.
it has nothing to do with current task as it's only part of the targets that have it installed.
_________________________
!

download KiXnet

Top
#111828 - 2004-01-16 02:06 PM Re: Logoff all users
Co Offline
MM club member
***

Registered: 2000-11-20
Posts: 1341
Loc: NL
How do I use Schtasks.exe to schedule tasks in Windows Server 2003?
Your own (very nice) UDF library - TaskScheduleControl() - Library of UDFs to manage Windows Task Scheduler

Tell me why you can't schedule a task on a target computer which have to start after X idletime... Maybe you cann't use schtasks but jt shouldn't be a problem..


Edited by Co (2004-01-16 02:12 PM)
_________________________
Co


Top
#111829 - 2004-01-16 04:10 PM Re: Logoff all users
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
the problem is that you can't see remotely the idle-time.
_________________________
!

download KiXnet

Top
Page 1 of 2 12>


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 515 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.075 seconds in which 0.025 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org