WIN7 Open/disable wireless network card via batch processing

Source: Internet
Author: User

1, see their own computer has devcon.exe this software, you can directly in the Windows directory under the SYSTEM32 folder search, but also through the command line run-----------CMD-------DEVCON? To detect, No words to Microsoft's website download (http://download.microsoft.com/download/1/1/f/11f7dd10-272d-4cd2-896f-9ce67f3e0240/devcon.exe) Download the decompression and put it under the System32 directory.

2, check the network card ID: Select the computer icon on the desktop----------- Right-click------------Select the Management menu------------Select Device Manager----------Select the wireless card you want to operate-------right click------------Select Properties--------------Select the Details tab------- ----------Select the hardware ID in the list and record this ID.

3, write batch file: New Notepad on the desktop---------------renamed Xxx.bat (note that the suffix name is bat is not txt)------ Select the file-------right-click-----------Select Edit--------------copy content:

Disable the NIC. bat

@echo off

; Disable the wireless card and replace the contents of the two * numbers with the NIC ID

DevCon disable *pci/ven_14e4&dev_4365&cc_0280*

; Enable the wireless network card, replace the contents between the two * numbers with the network card ID

;d Evcon Enable *pci/ven_14e4&dev_4365&cc_0280*

echo on

Enable NIC. bat

@echo off

; Disable the wireless card and replace the contents of the two * numbers with the NIC ID

;d Evcon Disable *pci/ven_14e4&dev_4365&cc_0280*

; Enable the wireless network card, replace the contents between the two * numbers with the network card ID

DevCon enable *pci/ven_14e4&dev_4365&cc_0280*

echo on

Save shutdown, run it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.