LoginSignup
17
20

More than 5 years have passed since last update.

(Windows7) コマンドでネットワークIFの有効化、無効化を行う

Last updated at Posted at 2013-07-17

Windows7で、netshコマンドでネットワーク接続の有効化、無効化を行う。

コマンド

有効化

> netsh interface set interface "ネットワーク名接続名" enable

無効化

> netsh interface set interface "ネットワーク名接続名" disable

※interfaceは「int」、enableは「ena」、disableは「dis」に短縮可能

 例

例)「ローカルエリア 接続」を有効化

> netsh interface set interface "ローカル エリア接続" enable

例)「ローカルエリア 接続」を無効化

> netsh interface set interface "ローカル エリア接続" disalbe

例)「ワイヤレス ネットワーク 接続」を有効化

> netsh int set int "ワイヤレス ネットワーク 接続" enable

例)「ワイヤレス ネットワーク接続」を無効化

> netsh int set int "ワイヤレス ネットワーク接続" disable

※日本語単語間の「半角スペース」に注意

17
20
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
17
20