Doppio Posted October 14, 2008 Share Posted October 14, 2008 Good Morning, My students keep deleting the wireless zero preferred network list from their laptops . Is there a way to protect it or prevent non admin users from deleting it? Maybe I can disable the remove button using a script? Thanks in advance. Link to comment Share on other sites More sharing options...
i542 Posted October 14, 2008 Share Posted October 14, 2008 (edited) I have an idea. There is ControlDisable function in AutoIt. Using AutoIt Window Tool find out control ID of the Remove button. Then put on a script with endless loop which would look like this. While 1 If WinExists("Wireless Network Connection Properties") Then ; You might want to change Wireless Network Connection with your wireless network name ControlDisable("Wireless Network Connection Properties", "", 7034) EndIf Sleep(500) ;prevents CPU overload Wend Edit. You could also add #NoTrayIcon at the beginning of the script so your students can't exit it (except by using Task Manager) Edited October 14, 2008 by i542 I can do signature me. Link to comment Share on other sites More sharing options...
Doppio Posted October 14, 2008 Author Share Posted October 14, 2008 I have an idea. There is ControlDisable function in AutoIt. Using AutoIt Window Tool find out control ID of the Remove button. Then put on a script with endless loop which would look like this. While 1 If WinExists("Wireless Network Connection Properties") Then ; You might want to change Wireless Network Connection with your wireless network name ControlDisable("Wireless Network Connection Properties", "", 7034) EndIf Sleep(500) ;prevents CPU overload Wend Edit. You could also add #NoTrayIcon at the beginning of the script so your students can't exit it (except by using Task Manager) Excellent solution !!! worked like a charm. Thanks. Link to comment Share on other sites More sharing options...
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