As a school we have a laptop scheme were students can purchase a laptop on a 3 year period. Students can login to these on the domain and their own restircted local accounts. Laptops are taken to and from school on a daily basis and used in lessons and at home. The laptops are connected to the schools wireless network. The laptops are running a range of OS from XP to Windows 7. How can we restrict laptops so they cannot login during specified hours of the days? This restriction will then need to be moved or changed when a holiday period starts.
Yes. Restrict the local account. The local account needs to be restricted during school hours but avaliable during holiday periods and after school.
The only way i can think of it some kind of script.
Alternatively do away with local accounts and used cached credentials so they can use a domain account at home.
Can you not just use "net user" time logins?
Net User "account" /time:m-f,09:00-15:00 etc.
If I remember correctly it'll only disable login at that time, not log someone out. So you'd have to make a logout script too if you want to ensure no-ones already logged in locally before 9am or whatever.
*Edit - And it's something like: net user "account" /time:all to reenable all time login for holidays etc
Thats great help Steve.
Each local account has a different user name. How would this be scripted?
Is there any logical naming method? or is it just every user creates their own random login?
The naming method is that their domain username is the same as their local username.
could you get the script to run at logon using %username% ?
If I created the script
Net User %USERNAME% /time:m-f,09:00-15:00 this could work. Think testing is in order!!
I could create this as a login script and then a few days before a holiday I could run
Net User %USERNAME% /time:all
How would you get round this not to be in action during the holidays?
Yeah few ways of doing it I guess :P But not sure either way will be "Perfect" as such, as obviously the dates will be changing all the time. Guessing even days like teacher training you'd want it disabled really.
Guess other option is running a script which will check some reference (file on webserver etc) to check if it's "holiday" or not etc. But again, obvious flaw is if they're not online (and/or someone forgot to update it ) etc etc.
But yeah, shout back when you tested it and see how it goes :P
The command - Net User %USERNAME% /time:m-f,09:00-15:00 works, but sets 09:00-15:00 as the allowed login time...Is there a way to set this as the disallowed login time?
There are currently 1 users browsing this thread. (0 members and 1 guests)