How TosLabtechWindows

How to disable a Wi-Fi card from the command line

This morning we had a need to disable a Wi-Fi card quickly. A users laptop was defaulting to using the Wi-Fi adapter rather than their cabled connection and it was causing problems. The Wi-Fi card was flapping about causing problems for their VPN which was geared for the wired connection and….well…you get the picture.

So we knocked together a quick Labtech script using WMIC to disable any Wi-Fi cards on the PC.

Open up a command prompt with administrative privileges and run the following command.

wmic path win32_networkadapter where NetConnectionID="Wi-Fi" call disable

Below you’ll find a link to the same command in the form of a Labtech script.

[button color=”blue” size=”large” link=”//olivermarshall.net/wp-content/uploads/2016/12/Disable-All-Wi-Fi-Network-Cards.xml_.zip”]Download Labtech XML Script[/button]

What is your reaction?

Strongly Agree
0
Agree
0
Meh
0
Disagree
0
Strongly Disagree
0

You may also like

Leave a reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.

More in:How Tos