Skip to content

Instantly share code, notes, and snippets.

@yuru4c
Last active November 1, 2018 23:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuru4c/fa975565c9c6bf31bb6db869b904c7b0 to your computer and use it in GitHub Desktop.
Save yuru4c/fa975565c9c6bf31bb6db869b904c7b0 to your computer and use it in GitHub Desktop.
Windows 8 以降で Wi-Fi の優先順位を変更
@ECHO OFF
SET INTERFACE="Wi-Fi"
:loop
SET NAME=
SET PRIORITY=
netsh wlan show profiles interface=%INTERFACE%
SET /P NAME="優先順位を変更するユーザー プロファイルの名前 >"
IF ERRORLEVEL 1 GOTO loop
SET /P PRIORITY="ユーザー プロファイルの新しい優先順位 >"
ECHO.
netsh wlan set profileorder name="%NAME%" interface=%INTERFACE% priority=%PRIORITY%
GOTO loop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment