共用方式為


WPA-Personal 設定檔範例

此範例配置檔會使用預先共用金鑰進行網路驗證。 金鑰會與用戶端和存取點共用。 此範例設定檔已設定為使用 Wi-Fi 受保護的存取安全,在個人模式中執行 (WPA-Personal)。 時態金鑰完整性通訊協定 (TKIP) 用於加密。

已安裝無線 LAN 服務的 Windows 7 和 Windows Server 2008 R2: Windows 7 和 Windows Server 2008 R2 上實作變更,並已安裝無線 LAN 服務,以優化無線網路效能。 未在無線 LAN 設定檔中設定這個專案時,autoSwitch 的預設設定已更改為。 在已安裝無線 LAN 服務的 Windows 7 和 Windows Server 2008 R2 上,預設設定會變更為 “false”。 Windows Server 2008 和 Windows Vista 上的預設設定為 “true”。 如需詳細資訊,請參閱 autoSwitch 架構元素描述。

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>SampleWPAPSK</name>
    <SSIDConfig>
        <SSID>
            <name>SampleWPAPSK</name>
        </SSID>
    </SSIDConfig>
    <connectionType>ESS</connectionType>
    <connectionMode>auto</connectionMode>
    <autoSwitch>false</autoSwitch>
    <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>

無線配置檔範例