Log out everyone at a certain time

  • Thread starter Thread starter ©®
  • Start date Start date
©

©®

PC setup at work as follows:
5 or 6 of us each login on the same PC with XP Pro.
Normally we all leave by about 5:30pm.
Is there a way to make to force the PC to log everyone off at a certain
time or by a certain time e.g. 7pm?
Thanks
 
Hi,
Open up the command promt (Start > Run... and type CMD ) At the command
prompt, type NET HELP USER and press enter. You will get help on how to use
the net user command. Scroll down and look up the option parameter '/TIMES'.
That will do exactly what you want.

Anando
Microsoft MVP for Windows XP
http://www.microsoft.com/mvp
 
Anando,

That won't do exactly what he wants.

Net User Times will allow a user only to logon within the set time but will
not force them to be logged off. At this point there is no function built
into Windows XP that will force logoff when you are not part of a domain.

http://www.mvps.org/marksxp/windowsxp/logon.htm

--
Regards,
Ramesh
AOL: SRamesh2k

«·´`·.(*·.¸(`·.¸ ¸.·´)¸.·*).·´`·»
«.............. Ramesh ...............»
«·´`·.(¸.·´(¸.·* *·.¸)`·.¸).·´`·»

~ Please reply to newsgroup ~


Hi,
Open up the command promt (Start > Run... and type CMD ) At the command
prompt, type NET HELP USER and press enter. You will get help on how to use
the net user command. Scroll down and look up the option parameter '/TIMES'.
That will do exactly what you want.

Anando
Microsoft MVP for Windows XP
http://www.microsoft.com/mvp
 
Ramesh,
My mistake, but that can be achived through the shutdown.exe command.

Example: we want the computer to log-off the user at 7:00pm. So we set a
schedule task to run at 7:00 pm and the schedule task being :

shutdown.exe -l

I hope that will achieve the desired task (since i cannot test this theory
as i am on a public machine)

Anando
Microsoft MVP for Windows XP
www.microsoft.com/mvp
 
Example: we want the computer to log-off the user at 7:00pm. So we set
a
schedule task to run at 7:00 pm and the schedule task being :

Will this task run (shutdown.exe -u -f 0 - i.e. Shutdown the computer)
if it is a Scheduled Task and all users are logged off.
Or... does one user need to be logged in for the task to run?
BTW - I am admin on the PC.
Thanks
 
Back
Top