Allow user to disable/enable wireless connection

How can I allow a user to enable/disable her wireless connection. She doesn't have admin rights.

Jvuz
LVL 21
jvuzAsked:
Who is Participating?
 
Meir RivkinConnect With a Mentor Full stack Software EngineerCommented:
you can use the following vb script.change enableConnection if you want to enable or disablechange connectionName to the wireless connection name
const connectionName = ""
const enableConnection = True
strComputer = "." 
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2") 
Set colItems = objWMIService.ExecQuery( _
    "SELECT * FROM Win32_NetworkAdapter Where Name = ' & connectionName & ' and NetEnabled = ' & enableConnection & '")

For Each objItem in colItems 
if enableConnection = True then
    objItem.Disable
else
objItem.Enable

endif
Next

Open in new window

0
 
Krzysztof PytkoConnect With a Mentor Active Directory EngineerCommented:
I'm not sure if it is possible to use script on regular user's rights. I would suggest to add her account into local group called "Network Operators". After re-logon she will have access to manage network connections (enabling/disabling NICs, changing IP address and renamin NICs name).
0
 
nettek0300Connect With a Mentor Commented:
What type of computer does the user have?  Most laptops have a switch on them where the user can physically turn the wireless off and on.
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
jvuzAuthor Commented:
It's a laptop and indeed normally there is key to change that, but for now it's not working. I'll have a look if I can reinstall that tool.

Jvuz
0
 
jameso99Connect With a Mentor Commented:
Add her user to the Power Users group.  Then she will not have full admin rights but she can do some things like change the clock, etc.  Log out/in and give it a try.
0
 
edwarnekeConnect With a Mentor Commented:
I ran into this back on the Dell C600's with truemobile cards. The solution I found then was that there was a registry entry for the tool used to administrate the wireless access and configuration. You could give the user permissions to this registry entry and thereby give access to the network tool to allow enabling and changing of networks.

What model wireless card do you have? Have you looked on the vendors to see if they have a tool that can be installed by an admin that would allow a user to make these changes?
0
All Courses

From novice to tech pro — start learning today.