使用 netcfg.exe 安裝和移除網路元件





琥珀
2009-10-10, 12:46 AM
原本是用於 PE 光碟的程式,不過也適用於安裝好的 XP 等系統。

名稱:Link-Layer Topology Discovery Responder
移除:netcfg -u ms_rspndr
安裝:netcfg -l %windir%\inf\rspndr.inf -c p -i ms_rspndr

名稱:Client for Microsoft Networks
移除:netcfg -u ms_msclient
安裝:netcfg -l %windir%\inf\netmscli.inf -c c -i ms_msclient

名稱:File and Printer Sharing for Microsoft Networks
移除:netcfg -u ms_server
安裝:netcfg -l %windir%\inf\netserv.inf -c s -i ms_server

名稱:Internet Protocol (TCP/IP)*
移除:netcfg -u ms_tcpip
安裝:netcfg -l %windir%\inf\nettcpip.inf -c p -i ms_tcpip

名稱:WINS Client(TCP/IP) Protocol
移除:netcfg -u ms_netbt
安裝:netcfg -l %windir%\inf\nettcpip.inf -c p -i ms_netbt

名稱:Point to Point Protocol Over Ethernet
移除:netcfg -u ms_pppoe
安裝:netcfg -l %windir%\inf\netrast.inf -c p -i ms_pppoe

搜尋一下登錄,可以找到更多隱藏元件。對於一般用戶,隱藏元件不宜移除。


* 保證可以移除




FYI
2009-10-10, 03:32 PM
請問能否用來移除裝置管理員中殘留的或不正常的 "WAN 迷你連接埠"?

琥珀
2009-10-11, 01:10 AM
WAN Miniport (PPPOE)
netcfg -u ms_pppoe
netcfg -l %windir%\inf\netrast.inf -c p -i ms_pppoe

WAN Miniport (L2TP)
netcfg -u ms_l2tp
netcfg -l %windir%\inf\netrast.inf -c p -i ms_l2tp

WAN Miniport (PPTP)
netcfg -u ms_pptp
netcfg -l %windir%\inf\netrast.inf -c p -i ms_pptp


WAN Miniport (IP)
netcfg -u ms_ndiswanip

Direct Parallel
netcfg -u ms_ptiminiport

研究半天,這兩個還是有疑慮。可能需要 devcon.exe 來輔助。

FYI
2009-10-11, 02:32 AM
使用時機? 存疑, 除非是拔出網路卡之前忘記先卸載驅動程式

【問題】網路卡出現2個驚嘆號 (無故出現兩個 WAN 迷你連接埠,病毒?) - PCZONE 討論區 (http://www.pczone.com.tw/vbb3/thread/16/142554/)