Saturday, January 16, 2010

Restricting Login Times - Update

In my previous article, I described how you can set the time restriction on the account.  However, there are some caveats.

Windows XP
In Windows XP, the set time will prevent the login outside the allowed time but it will not logout the account if it was logged during the allowed time.  To overcome this, you need to download psshutdown utility (a freeware).  It is part of the psutils found here.  Once done, you can then create a batch job containing at least the following command:

psshutdown -o -f

Then schedule the above batch job to run during the end time of the time restriction.  The problem with this approach is that it will also force exit those accounts that are not restricted.

Windows Vista

The time restriction is built in.  Unfortunately, it locks up the screen without exiting any of the application.  This may cause problems if you happen to log into a site that restricts the number of sessions since you are still logged in but have no way of getting back in to log out or properly save your work (short of opening up the parental guide.

No comments: