關閉網路卡

wmic path win32_networkadapter where NetConnectionID="區域連線" call disable

wmic path win32_networkadapter where NetConnectionID="Local Area Connection" call disable

netsh interface set interface "區域連線" DISABLED

netsh interface set interface "Local Area Connection" DISABLED

開啟網路卡

wmic path win32_networkadapter where NetConnectionID="區域連線" call enable

wmic path win32_networkadapter where NetConnectionID="Local Area Connection" call enable

netsh interface set interface "區域連線" ENABLED

netsh interface set interface "Local Area Connection" ENABLED

arrow
arrow

    痞客興 發表在 痞客邦 留言(0) 人氣()