force logoff after hours expire...

L

Larry

I have users set up on Windows XP Pro, and have given some of them logon
hours using the "net user" command series (typed at a command prompt) (or
see "logon hours" under Help). My problem is that the option to force
logoff when hours expire doesn't seem to work - as long as the user logs on
within their time frames, they can stay logged in forever. Is this is
mistake in the operating system, or does it work for other users and just
not on my computer?
 
M

Miha Pihler

Hi Larry,

if you type in

net accounts <enter>

you will get something like this

Force user logoff how long after time expires?: Never

among other settings. If that is so, you need to change this by typing in:

net accounts /forcelogoff:5 <enter>

This will logoff the user after 5 minutes when his time is over. If you now
type in

net accounts <enter>

you should see something like this:

Force user logoff how long after time expires?: 5

I hope this helps you out,

Mike
 
G

Guest

the setting on net accounts means:
"the number of minutes to wait before ending a user's session with a server
when the user account or valid logon time expires."
Keywords being: user's session with the server.
It does nothing for the local workstation logon.
There is also a policy setting to that effect: Network seciruty: Force
logoff when logon hours expire, and again this related to the session with
the (SMB) server, not the local session.

AFAIK the only thing you could arrange for the local workstation session is
to limit the logon-hours, but even that does not get you what you want,
because once a user is logged on locally, he stays logged on, even when
defined logon hours expire.
:-((
 
T

Torgeir Bakken \(MVP\)

Larry said:
I have users set up on Windows XP Pro, and have given some of them logon
hours using the "net user" command series (typed at a command prompt) (or
see "logon hours" under Help). My problem is that the option to force
logoff when hours expire doesn't seem to work - as long as the user logs on
within their time frames, they can stay logged in forever. Is this is
mistake in the operating system, or does it work for other users and just
not on my computer?
Hi

You can't use this setting for console logoff.

This forced logoff policy is a policy for SMB server, i.e. the computer
which has a network share accessible from a network. This policy, if
enabled on a server, ends the users session with the server when their
logon hours expire.

You will need 3rd party software for this, e.g. the program
"1st Security Center" would maybe cover your requirement:

http://www.1securitycenter.com/

<quote>
The powerful feature "User Working Time" allows you to limit working
time for your children , office colleagues , students and so on. You
can define several time intervals and time durations to manage users
working time very easy.
</quote>


The application in the link below is a lot more limited, but it can
e.g. force a logoff/shutdown at a set time or after a time duration
(but it looks like this is computer based and not user based):

Aye Shutdown
http://www.ayesoftware.com/asd/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top