無線網絡命令行設置

1、查看無線網絡配置文件

     Netsh WLAN show profiles

2、查看WIFI密碼

   Netsh WLAN profile name="WIFI的名稱" key=clear

3、導出無線網絡配置文件

   Netsh WLAN export profile name="名稱" folder="路徑" key=clear

4、導入無線網絡配置文件

   Netsh WLAN add profile filename="路徑+文件名"

 

如下爲一個無線網絡的配置文件實例

<?xml version="1.0"?>
<WLANProfile xmlns="http://www.microsoft.com/networking/WLAN/profile/v1">
	<name>TESTWIFI</name>
	<SSIDConfig>
		<SSID>
			<hex>5445535457494649</hex>
			<name>TESTWIFI</name>
		</SSID>
	</SSIDConfig>
	<connectionType>ESS</connectionType>
	<connectionMode>auto</connectionMode>
	<MSM>
		<security>
			<authEncryption>
				<authentication>WPA2PSK</authentication>
				<encryption>AES</encryption>
				<useOneX>false</useOneX>
			</authEncryption>
			<sharedKey>
				<keyType>passPhrase</keyType>
				<protected>false</protected>
				<keyMaterial>12345678</keyMaterial>
			</sharedKey>
		</security>
	</MSM>
	<MacRandomization xmlns="http://www.microsoft.com/networking/WLAN/profile/v3">
		<enableRandomization>false</enableRandomization>
	</MacRandomization>
</WLANProfile>

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章