2016-11-08 98 views

回答

1

幾天後,我建立了一個很好的解決方案。

1:創建例如.xml文件 「C:\ NOSSID.XML」 並保存下面的代碼到其中:

<?xml version="1.0" encoding="US-ASCII"?> 
 
<WLANProfile xmlns="http://www.microsoft.com/networking/WLAN/profile/v1"> 
 
    <name>SampleWPA2PSK</name> 
 
    <SSIDConfig> 
 
     <SSID> 
 
      <name>D.Mainoffice.Access</name> 
 
     </SSID> 
 
    </SSIDConfig> 
 
    <connectionType>ESS</connectionType> 
 
    <connectionMode>auto</connectionMode> 
 
    <autoSwitch>true</autoSwitch> 
 
    <MSM> 
 
     <security> 
 
      <authEncryption> 
 
       <authentication>WPA2PSK</authentication> 
 
       <encryption>AES</encryption> 
 
       <useOneX>false</useOneX> 
 
      </authEncryption> \t \t 
 
\t \t \t <sharedKey> 
 
\t \t \t \t <keyType>passPhrase</keyType> 
 
\t \t \t \t <protected>false</protected> 
 
\t \t \t \t <keyMaterial>**** password ****</keyMaterial> 
 
\t \t \t </sharedKey> 
 
     </security> 
 
    </MSM> 
 
</WLANProfile>

2:運行netsh命令:

Netsh wlan add profile filename="c:\noSSID.xml" 

你可以改變你自己隱藏的SSID在<name>標籤和密碼<keymaterial>標籤!!!

這很容易,我希望對他人有用。

相關問題