Discussion Locked

Automatically log users off

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Does anyone know of an application, or service which can be installed on an NT 4.0/W2K network that will log users off after a certain time? I would like to be able to log all users off at 12 AM every night so that my backup works correctly. I currently have 1 PDC and 1 BDC, but they are only used for authentication, not applications. I know you can do this with Novell, just not sure how to do it with NT. Any help, GREATLY appreciated! Thanks, Roger

6 replies

by Former member

If you're not dealing with a large number of users, you can set the logon hours through
User Manger for each user. You then need
to check the forcibly disconnect remote users box under Policies, Account menu item in User Manager.

by rgrowcock

Gdean, Thanks for the thoughts, and that will work for the server. But I actually need this to work locally on the individual pc. Sorry, I should have made that clearer. Any other thoughts?

by james richardson

If you have the scheduled task enabled, you could write a batch file that uses the logoff.exe command from the NTRESKIT.
If you use it with the /F this forces a close but asks users permission. The user wont be prompted to save data.
If the /N switch is used the user will be logged off with confirmation, the user will be prompted to save data!

Hope this helps!

by rgrowcock

I'm definately going to look into this .exe file. I just have to learn how to write a batch file. Haven't had to do that yet, so I guess this will be good practice. Thanks!

This discussion is closed to new replies.