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?
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.
/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.
Group Policy/ Computer Configuration/ Windows Settings/ Security Settings/ Local Policies/ Security Options/, have a look at Network Security : 'Force logoff when logon hours expire'.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.