eejit Posted July 11, 2006 Posted July 11, 2006 Ok, here's an odd one, but maybe a sensible one. I've been asked to stop laptops being able to log on if they haven't connected to the domain for a week. Is it possible?
ITWombat Posted July 11, 2006 Posted July 11, 2006 My understanding is that by default computers on a Windows domain have to log in every 30 days or the account is suspended. I wonder if it is possible to reduce the time window.
tosca925 Posted July 11, 2006 Posted July 11, 2006 My understanding is that by default computers on a Windows domain have to log in every 30 days or the account is suspended. if that was the case msot of the machines in our school would be suspened after the 6 weeks hols, and we've never had this. I aint changed any setting to do this either
Ric_ Posted July 11, 2006 Posted July 11, 2006 AFAIK the accounts don't suspend. In Longhorn serer there will be a quarantine function that suspends all network activity until AV and Windows updates are performed... until then I think you are out of luck. WSUS will show you which machines haven't been connected recently. You could use this to clamp down on people. Combined with a School policy and some scare mongering it might help.
ITWombat Posted July 11, 2006 Posted July 11, 2006 Well I suppose it would be possible to write a script to suspend the accounts in AD. The main problem is checking that the machines are updated or not, unless the idea is to get a human to visually inspect the lapotp.
ChrisC Posted July 11, 2006 Posted July 11, 2006 If this is a move motivated by out of date AV software, surely just setting up AV auto updating and locking that down in AD would be enough? Chris
eejit Posted July 12, 2006 Author Posted July 12, 2006 It's motivated by our LEA's SIMS people who have found that laptops don't update SIMS properly if they've been away for a considerable period. The next time that they launch SIMS on the network there may have been 4 or 5 upgrades that they've missed so the updater doesn't work properly. I'll have a look for something in the registry today to see if it timestamps the last group policy replication or similar and see if I can do something with that.
Geoff Posted July 12, 2006 Posted July 12, 2006 You can implement the 'network quarantine' function in W2k3 server too. Your sims people will have to supply some scripts that actually check what they want though. http://www.microsoft.com/technet/itsolutions/network/vpn/quarantine.mspx
psydii Posted July 12, 2006 Posted July 12, 2006 I'd endorse a solution whereby staff using their laptops in school on a daily basis negated the need for an elaborate technical cludge.
_Bob_ Posted July 12, 2006 Posted July 12, 2006 The real solution would be to have a decent update system for SIMs, or better still Capita could try a little harder to get right the first time, so we wouldn't need an update every two and a half minutes. /rant
psydii Posted July 12, 2006 Posted July 12, 2006 No, that would just solve the SIMS problem. and it ain't going to happen.
bossman Posted July 12, 2006 Posted July 12, 2006 Through the dhcp you could. Create another scope which the only the laptops can connect to and set the ip lease to 5 days this would then stop the laptops from connnecting to the network after 5 days. I think this would just be a short term fix for you at the mo as Geoff mentioned in his reply: "You can implement the 'network quarantine' function in W2k3 server too. Your sims people will have to supply some scripts that actually check what they want though"
psydii Posted July 12, 2006 Posted July 12, 2006 It's been mentioned already but..... school holidays?
ZeroHour Posted July 12, 2006 Posted July 12, 2006 I created a MSI with a script that ran on login. It would have a expired date and once the script detected it was past this people had to come back and have the machine reset as it would auto log them off otherwise. It is a little limited but it was all we needed.
_Bob_ Posted July 12, 2006 Posted July 12, 2006 There's obviously a few different ways to do this but another one that just occurred to me: DSQuery computer -inactive 1 Would give you a list of inactive machines from the server end. You could pipe then the output to dsmod and disable the account. You just need to be a lttle careful if you have servers that you use RDP to control as it won't pick up logon events for these.
eejit Posted July 12, 2006 Author Posted July 12, 2006 Cheers guys, but I think all these solutions stop laptops connecting to the domain after x days. My task is the opposite - I want the laptop to not log on for those teachers when at home if they haven't connected to the domain. It's to force them to bring the laptops in once a week at least (they are obligated to bring them in every day - they are school property not theirs. They also have to leave them in the school over the Summer holidays)
ChrisC Posted July 12, 2006 Posted July 12, 2006 can't you run a local script where it picks up the IP address so: if left 7 IP= first 7 characters of your school range then allow logon else if left x IP=192.168 (i would guess) AND day=friday then disable logon or show prompt I know it's only pseudocode, but it would be something along those lines. The IP pickup is something i'm working on for automatically setting proxy settings when at school, but unticking proxy @ home. Chris
riedquat Posted July 12, 2006 Posted July 12, 2006 The IP pickup is something i'm working on for automatically setting proxy settings when at school, but unticking proxy @ home. Chris Can't you use a PROXY.PAC script in web browser config to auto determine the proxy, something like the following: function FindProxyForURL(url, host) { // variable strings to return var proxy_yes = "PROXY 192.168.1.1:8080"; var proxy_no = "DIRECT"; if (shExpMatch(url, "http://www.mycompanywebsite.com*")) { return proxy_no; } if (shExpMatch(url, "http://www.myotherwebsite.com*")) { return proxy_no; } if (shExpMatch(url, "http://www.my3rdlocalsite.com*")) { return proxy_no; } if (shExpMatch(url, "http://192.168.1.100*")) { return proxy_no; } // Proxy if PC is on local LAN if (isInNet(myIpAddress(), "192.168.1.0", "255.255.255.0")) return "PROXY 192.168.1.1:8080"; else return "DIRECT"; }
eejit Posted July 13, 2006 Author Posted July 13, 2006 Yes, the IP address! I didn't think of that. Thanks for the tip, I'll use that alright. Cheers!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now