View previous topic :: View next topic |
 |
Author |
|
Message |  |
|
bparow
Joined: 03 Mar 2006 Posts: 4 Location: Massachusetts
|
Posted: Fri Mar 03, 2006 1:01 am Post subject: How to Limited User scheduled logoff |
|
I have Windows 2003 Server Enterprise Edition as a DC and WinXP Pro as clients. On the Windows XP machines I would like to have the Limited User accounts automatically logoff at specified times. The problem I am running into is that the "AT" command cannot run under a limited account so using "at 22:00 Shutdown -f" in the Startup folder will not work. If I just use Task Scheduler then that would effect "ALL" users of that PC.
Is there another way around this? The accounts use roaming profiles...
Please help... |
|
Back to top |
|
 |
admin Site Admin
Joined: 01 Jan 1970 Posts: 269
|
Posted: Fri Mar 03, 2006 3:01 am Post subject: Login restrictions and force logogg |
|
If you open active directory users and computers and edit the user you should see and account tab. You can set time restrictions there. I don't know for certain if it will kick the user out if they are already in though. There is probably a GP to do that. I will let you know what I find. |
|
Back to top |
|
 |
bparow
Joined: 03 Mar 2006 Posts: 4 Location: Massachusetts
|
Posted: Fri Mar 03, 2006 3:37 am Post subject: |
|
Hi Admin,
There is a setting to "Force Logoff when Logon Hours Expire" policy, but... This logs them off the SMB and not the console. I think it removes there network key from the Domain but I need something to log them off of the console as well. |
|
Back to top |
|
 |
admin Site Admin
Joined: 01 Jan 1970 Posts: 269
|
Posted: Fri Mar 03, 2006 9:00 pm Post subject: Force logoff with screen saver |
|
rel="nofollow"support.microsoft.com/default.aspx?scid=KB;en-us;314999&
This should work for Windows 2000 too. Basically you install a screen saver that comes with the 2000 resource kit and when the screen saver runs it kickes the user out. I will keep looking for some better ideas too. |
|
Back to top |
|
 |
bparow
Joined: 03 Mar 2006 Posts: 4 Location: Massachusetts
|
Posted: Fri Mar 03, 2006 11:18 pm Post subject: |
|
Hi Admin,
That would work fine except that this is a home based network and the main reason for it is so my teenage boys do not screw things up and stay logged in past their bedtime. So inactivity would not work if they are playing a movie or game.
I have been playing with Task Scheduler using Logoff and shutdown. I have the permissions setup perfectly and everything works great except for one problem:
Neither Logoff or Shutdown.exe forces a program to close. So if the logoff starts and I press cancel to the "Save" dialog box then the logoff is cancelled. and Shutdown is ignored if there are open and unsaved documents. |
|
Back to top |
|
 |
admin Site Admin
Joined: 01 Jan 1970 Posts: 269
|
Posted: Sat Mar 04, 2006 3:16 am Post subject: Batch file then schedualed task |
|
Try creating a batch file called whatever.bat. The batch file should have one line c:\windows\system32\shutdown.exe -f
Then create a schedualed task that calls the batch file. It think that would work better than putting the command directly into the schedualed task. |
|
Back to top |
|
 |
bparow
Joined: 03 Mar 2006 Posts: 4 Location: Massachusetts
|
Posted: Sat Mar 04, 2006 4:29 am Post subject: |
|
I finally got it working
The thing I needed to do was give the limited user the right to shutdown in the domain policy.
I will try your suggestion of a batch file as then I could call it when the users I want effected logon and the ones I do not will be ignored.
Thanx for your help  |
|
Back to top |
|
 |
admin Site Admin
Joined: 01 Jan 1970 Posts: 269
|
Posted: Sat Mar 04, 2006 9:22 am Post subject: Ah yes, rights |
|
Ah that was it. I took it for granted that the user had permissions to shutdown. That's good I am glad you could figure it out. It you or anyone you know needs help we'll be happy to. |
|
Back to top |
|
 |
|