Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

Script to disable all kinds of Wireless NICs

Updated: 21 May 2010 | 2 comments
adudley's picture
0 0 Votes
Login to vote

Hey guys,

Does anyone know of a easy script I can run on our 300+ computers that will *DISABLE* the wireless NIC on it?

We have a few different models of laptops so I would need something flat...

What I don't want though, is an uninstalled driver...

Any help would be great

Cheers

Comments

trb48's picture
02
Jul
2009
0 Votes 0
Login to vote

BIOS

You may want to try using the  Dell or HP Client Manager to do this for you. You can create a BIOS profile that has the wireless NIC disabled and push it out to the machines in your environment. 

I guess it all depends on if you want the NIC disabled in Windows or in the BIOS.

lah's picture
14
Jul
2009
0 Votes 0
Login to vote

Script to disable all wireless network adapters on Vista

This script should disable all enabled wireless network adapters on Vista. It will not work on XP.
If you have XP you could perhaps use vbs to enumerate wireless network adapters and disable them using DevCon.

strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\wmi")
Set colItems = objWMIService.ExecQuery("Select * From MSNdis_80211_Configuration")
For Each objItem in colItems
strName = objItem.InstanceName
Set objWMIService2 = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colAdapters = objWMIService2.ExecQuery _
("Select * from Win32_NetworkAdapter Where NetEnabled='True' And Name = '" & strName & "'")
For Each objAdapter in colAdapters
objAdapter.Disable
Next
Next