Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 408
  • Last Modified:

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
0
jvuz
Asked:
jvuz
5 Solutions
 
Meir RivkinFull 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 PytkoActive 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
 
nettek0300Commented:
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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
 
jameso99Commented:
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
 
edwarnekeCommented:
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

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now