共用方式為


WPA-Personal設定檔範例

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

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

Windows XP 搭配 SP3 和適用于 Windows XP 的無線區域網路 API 與 SP2:會忽略 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>

無線設定檔範例