Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Registry setting for logoff time? 2

Status
Not open for further replies.

GVN

MIS
Dec 2, 2005
238
US
I thought that I saw some post somewhere a couple of weeks ago that said you could make a registry edit on the users' machine that would logoff a user at a specified time. Anyone know anything about this?

GVN
 
Is this one machine or a network? Domain or workgroup? There's a group policy option to force logoff when logon hours expire. Or you can schedule a job to run the shutdown command at the time you want user logged off. But you'll get better help if you give more info about what you're trying to achieve and the environment you're working in.
 
Here are a few things that have been mentioned in the past.

Sleepy Easy-To-Use Auto Shutdown Software

setting permissions fro each user
thread779-203431

This command works only on servers

How to Use the Net User Command

/times:{times | all}
Is the logon hours. The times option is expressed as day[-day][,day[-day]],time[-time][,time [-time]], and is limited to 1-hour increments. Days can be spelled out or abbreviated. Hours can be 12-hour or 24-hour notation. For 12-hour notation, use am, pm, a.m., or p.m. The all option specifies that a user can always log on, and a blank value specifies that a user can never log on. Separate day and time entries with a comma, and separate multiple day and time entries with a semicolon.





Microsoft Knowledge Base Article - Q314999
HOW TO: Force Users to Quit Programs and Log Off After a Period of Inactivity in Windows XP



Can you do anything with Scheduled Tasks?

Start, Run, secpol.msc Look for 'Force logoff when logon hours expire'


 
It's one machine on a network, in a domain. I'd love to do the Group Policy; do you remeber the location of it?

GVN
 
Group Policy/ Computer Configuration/ Windows Settings/ Security Settings/ Local Policies/ Security Options/, have a look at Network Security : 'Force logoff when logon hours expire'.
 
Thanks man, have a star on me!!!

GVN
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top