Page 1 of 1 1
Topic Options
#111216 - 2004-01-03 05:09 PM logon time limit
b.binnenweg Offline
Fresh Scripter

Registered: 2001-10-07
Posts: 6
I would like to limit the time a local windows xp user can use his system (for example 1 hour a day), there is no domain to log on. What kind of script could ik use to accomplish this?
Top
#111217 - 2004-01-03 05:28 PM Re: logon time limit
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
You would have to use COM scripting with the ADSI WinNT: provider on the property LoginHours. Since it is a datatype: variant, is would not be a simple task. You might want to Google around for ideas.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#111218 - 2004-01-03 07:16 PM Re: logon time limit
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
This is actually not an easy task as you need to measure the time the user is logged into the computer. However, it is doable via KiXtart. Create a KiXtart script that does the following:
Check the eventlog for login events fo the monitored users (you need to enable login auditing)
Measure the time the user has been logged in including any previous times for the same day as written into a registry key.
If the user logs out write the time the user has been logged in into a registry key including date.
If the user is logged in longer than the allowed time, then issue a local user logoff command and write the time the user has been logged in into a registry key including date.
Finally, run the script via WKIX32 and SRVANY.EXE from the Windows Resource Kit as a service under an admin account.

Alternatively, get/purchase any of the commercial packages that accomplish the same, see for example http://dmoz.org/Computers/Software/Shareware/Windows/Security/Parental_Control/
_________________________
There are two types of vessels, submarines and targets.

Top
#111219 - 2004-01-03 07:23 PM Re: logon time limit
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Guess I interpreted the request differently. I thought he wanted logon time restrictions like what is available in a domain, that is a specific hour. You interpret it is one anytime cumulative hour in a 24 hour period.

Guess something could be said for clarity (or lack thereof).
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#111220 - 2004-01-03 07:29 PM Re: logon time limit
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
I went with the
Quote:

for example 1 hour a day



remark independent of the actual tine the login occurs.

Thus, a service-based script should be able to accomplish this, but I'd rather go with a commercial package as they offer better enforcement for multiple users and more granular access rights and logging options.
_________________________
There are two types of vessels, submarines and targets.

Top
#111221 - 2004-01-03 07:32 PM Re: logon time limit
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
We use to use a freeware utility called poltergeist to do this something like this, although we used it to automatically shutdown systems at specific times in the day. I am not sure it still exists or if it is still freeware but you might try searching various freeware/shareware sites for similar utilities.
_________________________
Jack

Top
#111222 - 2004-01-03 09:06 PM Re: logon time limit
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Well, I went with the title which says "Logon time limit", not "Logged on time limit". A "logon time" limit can be specified in units of time that could include an hour.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#111223 - 2004-01-04 08:29 AM Re: logon time limit
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Assuming this is the program that Jack is speaking of, it appears that they
no longer supply a download for the file. SPECTRE appears to have written this
back in 1997-1998 but no longer seems to offer it.

http://www.spectre.com/

ftp://ftp.spectre.com/pub/


PolterGeist is an application scheduler with keyboard macro capabilities.
Just like the System Agent in Microsoft Plus!, PolterGeist lets you schedule
applications to run unattended at scheduled times. With PolterGeist however,
you can use simple keystroke macros to automate a much wider range of tasks.


PolterGeist build 1301, freeware scheduling program. Runs programs of scripts
when you want them to. Full featured

http://riverbbs.net/pub3/win95/HAUNTBIG.EXE

http://www.baronbbs.com/bfsfile/windows/HAUNTBIG.EXE

Unless Jack is being mean and meant this one.
http://www.megasecurity.org/trojans/p/poltergeist/Poltergeist1.1.html

Top
#111224 - 2004-01-04 08:34 AM Re: logon time limit
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Not free, but this one seems to work pretty well. Even re-installs itself if not properly uninstalled via password.

ENUFF
http://www.akrontech.com/

Top
#111225 - 2004-01-05 10:02 PM Re: logon time limit
b.binnenweg Offline
Fresh Scripter

Registered: 2001-10-07
Posts: 6
Thanks everybody so far for being helpful. I started trying the mentioned shareware progs and found them to be pretty easy to surpass. Which brings a 'home logon server' much closer than I expected.
Top
#111226 - 2004-01-05 11:14 PM Re: logon time limit
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
A home Server is an option, but then it must always be on and you would need to disable cached logons in order to force the kind of security it looks like you're wanting.

Give ENUFF a try. Unless you are a very advanced system programmer you will not be able to easily surpass it.

Top
Page 1 of 1 1


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

Who's Online
0 registered and 2220 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.08 seconds in which 0.026 seconds were spent on a total of 12 queries. Zlib compression enabled.

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