Jump to content
Sign in to follow this  
Doppio

Wireless Zero Preferred Network List

Recommended Posts

Doppio

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.

Share this post


Link to post
Share on other sites
i542

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

:P

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 by i542

I can do signature me.

Share this post


Link to post
Share on other sites
Doppio

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

:P

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.