JSI Tip 5566. When you enforce logon hours restrictions, users are NOT forced off?

Jerold Schulman

July 30, 2002

1 Min Read
ITPro Today logo in a gray background | ITPro Today

When you enforce logon hours restrictions by using to Group Policy to navigating to Computer Configuration Windows Settings Security Settings Local Policies Security Options and enable Automatically log off users when logon time expires, users whose logontimes settings prevent logon at this time are NOT permitted to log on. However, users who are logged on and should be logged off are not?

If this happens in your domain, try the following:

1. Open a CMD prompt.

2. Type:

net accounts /forcelogoff: /domain

where is the number of minutes after the log on time expires that a user will be forced off. The user will receive a warning message before the forced log off.

NOTE: The default setting for the /forcelogoff switch is no. When no is set, forced logoff is prevented. To see the current setting, open a CMD prompt and type net accounts. If this returns:

Force user logoff how long after time expires?: Never

then forced logoff is prevented. I would NOT set to 0.



Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like