非廣播配置範例
非廣播配置檔範例可用來連線到未廣播其網路名稱或 SSID 的網路。
此範例配置檔已設定為使用在個人模式中執行的受保護存取安全性 Wi-Fi (WPA-Personal)。 時態金鑰完整性通訊協定 (TKIP) 用於加密。 使用其他安全性和加密類型的配置檔也可以設定為非廣播配置檔。
Windows XP 搭配 SP3 以及適用於 Windows XP SP2 的無線 LAN API: 會忽略 名稱這個 子系的 WLANProfile 元素。 配置檔的名稱,是在配置檔存放區中儲存的,衍生自 SSID 元素的 名稱 子項。
<?xml version="1.0" encoding="US-ASCII"?>
<WLANProfile xmlns="https://www.microsoft.com/networking/WLAN/profile/v1">
<name>SampleNonBroadcast</name>
<SSIDConfig>
<SSID>
<name>SampleNonBroadcast</name>
</SSID>
<nonBroadcast>true</nonBroadcast>
</SSIDConfig>
<connectionType>ESS</connectionType>
<connectionMode>auto</connectionMode>
<MSM>
<security>
<authEncryption>
<authentication>WPAPSK</authentication>
<encryption>TKIP</encryption>
<useOneX>false</useOneX>
</authEncryption>
</security>
</MSM>
</WLANProfile>
共用金鑰已從這個範例設定檔中省略。 如果您嘗試使用此範例設定檔來連線到網路,系統會提示您輸入共用密鑰。 您可以將 sharedKey 子元素新增至 安全性 元素,緊接在 authEncryption 元素之後,以避免出現此提示。
下列代碼段顯示包含未加密索引鍵的 sharedKey 元素。 您必須先將批註 <!-- insert key here -->
取代為實際的未加密金鑰,才能在配置檔中使用此代碼段。
<sharedKey>
<keyType>passPhrase</keyType>
<protected>false</protected>
<keyMaterial> <!-- insert key here --> </keyMaterial>
</sharedKey>
相關主題