共用方式為


啟動程式設定檔範例

Bootstrap 設定檔範例可用來在計算機加入網域之前,第一次向無線網路進行驗證。

此設定檔不會驗證遠端驗證撥入使用者服務 (RADIUS) 伺服器所提供的憑證,而且不應該在電腦加入網域之後使用。

此範例已設定為使用在企業模式中執行的Wi-Fi受保護存取2安全性(WPA2-Enterprise)。 只要驗證方法是PEAP-MSCHAPv2,就可以使用其他安全性類型。

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

Windows XP with SP3 and Wireless LAN API for Windows XP with SP2:the name child of the WLANProfile element is ignored. 設定檔的名稱,如儲存在設定檔存放區中,衍生自 SSID 元素的名稱 子系。 不支援 OneX 元素的 cacheUserData authMode singleSignOn 子系,而且在使用之前應該從設定檔中移除。

<?xml version="1.0" encoding="US-ASCII"?>
<WLANProfile xmlns="https://www.microsoft.com/networking/WLAN/profile/v1">
    <name>SampleBootstrap</name>
    <SSIDConfig>
        <SSID>
            <name>SampleBootstrap</name>
        </SSID>
    </SSIDConfig>
    <connectionType>ESS</connectionType>
    <connectionMode>auto</connectionMode>
    <autoSwitch>false</autoSwitch>
    <MSM>
        <security>
            <authEncryption>
                <authentication>WPA2</authentication>
                <encryption>AES</encryption>
                <useOneX>true</useOneX>
            </authEncryption>
            <OneX xmlns="https://www.microsoft.com/networking/OneX/v1">
                <cacheUserData>true</cacheUserData>
                <authMode>machineOrUser</authMode>
                <singleSignOn>
                    <type>preLogon</type>
                    <maxDelay>10</maxDelay>
                </singleSignOn>
               <EAPConfig>
                    <EapHostConfig xmlns="https://www.microsoft.com/provisioning/EapHostConfig" 
                                   xmlns:eapCommon="https://www.microsoft.com/provisioning/EapCommon" 
                                   xmlns:baseEap="https://www.microsoft.com/provisioning/BaseEapMethodConfig">
                        <EapMethod>
                            <eapCommon:Type>25</eapCommon:Type> 
                            <eapCommon:AuthorId>0</eapCommon:AuthorId> 
                       </EapMethod>
                       <Config xmlns:baseEap="https://www.microsoft.com/provisioning/BaseEapConnectionPropertiesV1" 
                               xmlns:msPeap="https://www.microsoft.com/provisioning/MsPeapConnectionPropertiesV1" 
                               xmlns:msChapV2="https://www.microsoft.com/provisioning/MsChapV2ConnectionPropertiesV1">
                           <baseEap:Eap>
                               <baseEap:Type>25</baseEap:Type> 
                               <msPeap:EapType>
                                   <msPeap:ServerValidation>
                                       <msPeap:DisableUserPromptForServerValidation>false</msPeap:DisableUserPromptForServerValidation> 
                                       <msPeap:TrustedRootCA /> 
                                   </msPeap:ServerValidation>
                                   <msPeap:FastReconnect>true</msPeap:FastReconnect> 
                                   <msPeap:InnerEapOptional>0</msPeap:InnerEapOptional> 
                                   <baseEap:Eap>
                                       <baseEap:Type>26</baseEap:Type> 
                                       <msChapV2:EapType>
                                           <msChapV2:UseWinLogonCredentials>true</msChapV2:UseWinLogonCredentials> 
                                       </msChapV2:EapType>
                                   </baseEap:Eap>
                                   <msPeap:EnableQuarantineChecks>false</msPeap:EnableQuarantineChecks> 
                                   <msPeap:RequireCryptoBinding>false</msPeap:RequireCryptoBinding> 
                                   <msPeap:PeapExtensions /> 
                               </msPeap:EapType>
                           </baseEap:Eap>
                       </Config>
                   </EapHostConfig>
                </EAPConfig>
               </EAPConfig>
           </OneX>
        </security>
    </MSM>
</WLANProfile>