24

これについて Google に大量の結果が存在することは知っています: resultsですが、Windows XP マシンでは作成できませんでした。コマンドラインからLAN接続を無効にしたい。

>netsh interface set interface "Local Area Connection" DISABLED
One or more essential parameters not specified
The syntax supplied for this command is not valid. Check help for the correct sy
ntax.

>netsh interface set interface name="Local Area Connection" admin="disabled"
One or more essential parameters not specified
The syntax supplied for this command is not valid. Check help for the correct sy
ntax.

>netsh interface set interface name="Local Area Connection" admin=DISABLED
One or more essential parameters not specified
The syntax supplied for this command is not valid. Check help for the correct sy
ntax.
4

5 に答える 5

24

最初の 2 つのコマンドには、昇格した管理者権限が必要です。

LAN ネットワーク接続を無効にする

C:\> netsh interface set interface name="Local Area Connection" admin=disabled

LAN ネットワーク接続を有効にする

C:\> netsh interface set interface name="Local Area Connection" admin=enabled

仮定:あなたのインターフェースは「ローカルエリア接続」という名前でした。それ以外の場合は、適切な名前に置き換えてください。名前を検索するために使用netsh interface show interfaceします。

Wifi プロファイルの一覧表示

C:\> netsh wlan show profiles

Wifi プロファイルに接続する

C:\> netsh wlan connect name="ProfileName"
于 2014-09-23T06:27:41.250 に答える
2

C:\WINDOWS\system32>netsh インターフェイス インターフェイスを表示

管理者の状態 状態の種類 インターフェイス名

有効 接続済み 専用イーサネット 2 有効 切断済み 専用イーサネット 有効 接続済み 専用 Wi-Fi

C:\WINDOWS\system32>netsh interface set interface name="Ethernet" admin=有効または無効

w10出力これ..

于 2016-06-20T19:58:21.697 に答える