Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Win7 批次檔一鍵啟用/停用無線網卡 完整實作教學

編輯:Windows 7 系統介紹

前置準備:取得 devcon.exe

系統需具備 devcon.exe(裝置管理命令列工具)。
檢查:C:\Windows\System32 或 CMD 執行 devcon ?。
缺少時至微軟官網下載:devcon.exe 下載連結,解壓放入 System32。

取得無線網卡硬體 ID

  1. 右鍵「電腦」→「管理」→「裝置管理員」。
  2. 展開「網路介面卡」,右鍵無線網卡 →「內容」→「詳細資料」頁籤。
  3. 屬性選「硬體識別碼」,複製第一行值(如 PCI\VEN_14E4&DEV_4365&CC_0280)。

建立批次檔

桌面新建文字文件,命名為 禁用無線網卡.bat 與 啟用無線網卡.bat,內容如下:

禁用無線網卡.bat

@echo off
devcon disable *PCI\VEN_14E4&DEV_4365&CC_0280*
echo on

啟用無線網卡.bat

@echo off
devcon enable *PCI\VEN_14E4&DEV_4365&CC_0280*
echo on

注意:將星號間的硬體 ID 替換為實際值。以管理員身分執行批次檔即可生效。

Copyright © Windows教程網 All Rights Reserved