Automatically log off Users


hi everyone

 

this question related windows server 2003. not find sub section server 2003 (strange), apologise posting here (next thing close server 2003 i guess).

 

scanario

i trying set user log on restrictions. users have set logon hours , cannot log on outside of time period. problem have users have logged on within permitted hours able stay logged on throughout restricted hours. eg:
user able log on form 9am - 5pm. users cannot log on outside of hours , going well.
users have logged on between 9am - 5pm able stay on logged on after 5pm. need force log off users after logon hours expire.

 

here what i have done default domain policy - computer configuration\windows settings\security settings\local policies\security options:
microsoft network server: disconnect clients when logon hours expire     -     enable
network security: force logoff when logon hours expire     -     enable

 

rsult:

users cannot logon after log on hours
users logged on during logon hours still logged on internet access - disconnected form network shares/server.

 

question

is there way kick users off after logon hours expire? saving work not issue, un-conditional "force log off" looking for. have been configuring setting with enterprise administrator account logon.

 

 

any appreciated.

 

thank you

 

hi,

 

based on research, currently, couldn't force user logoff through gp when permitted logon hours expire.

 

the "force logoff when logon hours" policy effects smb component. when enabled, established smb connection forcibly disconnect when logon hours expire.

 

i think script can realize it. can create script verifies logon hours ad database in interval, 5 minutes. if finds logon hours expire, lunch 'force logoff' function. however, unfortunately, creating script related programming issue , beyond can here. i'd suggest post script related questions our msdn queue. engineers , communities there more specialized in creating script , assist in more efficient manner.

 

msdn public newsgroup

http://msdn.microsoft.com/newsgroups/default.asp

 

msdn forum:

http://forums.microsoft.com/msdn

 

alternatively, please search on internet see if there third-party tool can realize function.

 

hope helps.

 

please search on internet

 

best wishes

--------------
morgan che

microsoft online community support



Windows Server  >  Management



Comments

Popular posts from this blog

2008 Windows Deployment Server Properties Error

Can no longer user MS Update - Files required to use Microsoft Update are no longer registered

How do a find data in one file, search for it in another file and if not found, write a custom message to another file