0
0

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 1 year has passed since last update.

無線LANの事前設定方法(自動化)

Last updated at Posted at 2022-06-18

既に入っているPCから取得するとラク。認証情報他configをそのまま使えるため。

①これでSSIDと必要な情報を調べる。
netsh wlan show profile

②表示された中に、例えばYOKOHAMA-WLANがあれば、以下を打ってxmlを出力する。
netsh wlan export profile name="YOKOHAMA-WLAN" folder=C:\

入れたいPCでバッチ実行。
バッチは以下のように書く。keymaterialはSSIDのパスワード。
上述のXMLを指定して実行する。

@echo off
 
SET wifi_prof="%~dp0WIFI\Wi-Fi-YOKOHAMA-WLAN.xml
netsh wlan add profile filename=%wifi_prof%
netsh wlan set profileparameter name=YOKOHAMA-WLAN nonBroadcast=yes keymaterial=SSID_PASSWORD connectionmode=manual

pause
end
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?