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

確認 C:\Windows\System32 是否存在 devcon.exe,或 CMD 執行 devcon ?。
缺少請至微軟官網下載:devcon.exe,置入 System32。

取得網卡硬體 ID

  1. 右鍵「電腦」→「管理」→「裝置管理員」→「網路介面卡」。
  2. 右鍵目標無線網卡→「內容」→「詳細資料」→屬性選「硬體識別碼」,複製首行值。

撰寫批次檔

桌面建立兩個 .bat 檔案,將星號間 ID 替換為實際值:

停用無線網卡.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

以管理員身分執行對應批次檔即可瞬間切換無線網卡狀態,適合筆電省電或資安管控需求。

Copyright © Windows教程網 All Rights Reserved