Enforcing logon time restrictions

If group policy logon restrictions aren't forcing off users as they should be, then you'll want to try this.

This tip was submitted to the SearchWin2000.com Tip Exchange by member Michael Adams. Let other users know how

useful it is by rating the tip below.


If you've set up a group policy to set logon restrictions for certain users to particular hours of the day, you may find at some point that users who should be logged off are not being forced off by the system as they should be. When this happens, try the following:

  1. Open a <CMD> prompt.
  2. Type the following: net accounts //forcelogoff:<minutes> //domain

<Minutes> is the number of minutes after the log on time expires at which a user will be forced off.

The user should receive a warning message <minutes> before the 'forced log off.'

The default setting for the <//forcelogoff> switch is no. When no is set, forced logoff is prevented.

To view 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. It is not recommend to set the <minutes> to 0.

This was first published in February 2003

Dig deeper on Microsoft Group Policy Management

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchServerVirtualization

SearchCloudComputing

SearchExchange

SearchSQLServer

SearchWinIT

SearchEnterpriseDesktop

SearchVirtualDesktop

Close