5
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Windowsのネットワークが調子悪いときにコマンドでネットワーク再起動

Last updated at Posted at 2019-12-18

手元のPCのWindowsで複数のWiFiを切り替え切り替え使ってるとどうもネットワークが調子悪くなる時がある。特にIPv6のアドレスが取れてない時があるので困っていたが、PowerShellでネットワークを再起動する方法を発見。

PS C:\Users\zrock> Restart-NetAdapter Wi-Fi

Wi-Fiの部分はネットワーク名。Get-NetworkAdapterで取得できる。

PS C:\Users\zrock> Get-NetAdapter
Name                      InterfaceDescription                    ifIndex Status       MacAddress             LinkSpeed
----                      --------------------                    ------- ------       ----------             ---------
イーサネット 2            Realtek USB GbE Family Controller            18 Disconnected XX-XX-XX-XX-XX-XX          0 bps
Wi-Fi                     Intel(R) Dual Band Wireless-AC 8265          13 Up           YY-YY-YY-YY-YY-YY     866.7 Mbps
Bluetooth ネットワーク... Bluetooth Device (Personal Area Netw...       9 Disconnected ZZ-ZZ-ZZ-ZZ-ZZ-ZZ         3 Mbps

Wi-FiのオンオフだけだったりいろいろWindowsのUIでやってもうまく初期化できないときに、この方法で有効な場合も。単に私がちゃんとした方法を知らないだけかもしれないけど。^^;

5
5
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
5
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?