在 Microsoft Intune 中匯入 Windows 8.1 及更新版本之裝置的 Wi-Fi 設定Import Wi-Fi settings for Windows 8.1 and later devices in Microsoft Intune

適用對象:Azure 入口網站的 IntuneApplies to: Intune in the Azure portal
您需要傳統入口網站的 Intune 相關文件嗎?Looking for documentation about Intune in the classic portal? 請參閱本 Intune 簡介Read the introduction to Intune.

針對執行 Windows 8.1、Windows 10 Desktop 或行動裝置版、或 Windows Holographic for Business 的裝置,您可以匯入先前已匯出至檔案的 Wi-Fi 組態設定檔。For devices that run Windows 8.1, Windows 10 desktop or mobile, or Windows Holographic for Business, you can import a Wi-Fi configuration profile that was previously exported to a file.

從 Windows 裝置匯出 Wi-Fi 設定Export Wi-Fi settings from a Windows device

在 Windows 中,您可以使用 netsh wlan 公用程式,將現有的 Wi-Fi 設定檔匯出到 Intune 能夠讀取的 XML 檔案。In Windows, use the netsh wlan utility to export an existing Wi-Fi profile to an XML file readable by Intune. 必須以純文字格式匯出金鑰,才能順利使用設定檔。The key must be exported in plain text to successfully use the profile.

在已安裝必要 WiFi 設定檔的 Windows 電腦上,請使用下列步驟:On a Windows computer that already has the required WiFi profile installed, use the following steps:

  1. 為匯出 W-Fi 設定檔建立本機資料夾,例如 c:\WiFiCreate a local folder for the exported W-Fi- profiles, such as c:\WiFi.
  2. 以系統管理員身分開啟命令提示字元。Open up a Command Prompt as an administrator.
  3. 執行 netsh wlan show profiles 命令,並記下您想要匯出設定檔的名稱。Run the netsh wlan show profiles command, and note the name of the profile you'd like to export. 在此範例中,設定檔名稱是 WiFiNameIn this example, the profile name is WiFiName.
  4. 執行 netsh wlan export profile name="ProfileName" folder=c:\Wifi 命令。這會在目標資料夾中建立名為 Wi-Fi-WiFiName.xml 的 Wi-Fi 設定檔。Run the netsh wlan export profile name="ProfileName" folder=c:\Wifi command.This creates a Wi-Fi profile file named Wi-Fi-WiFiName.xml in your target folder.

將 Wi-Fi 設定匯入 IntuneImport the Wi-Fi settings into Intune

  1. 登入 Azure 入口網站Sign in to the Azure portal.

  2. 選取 [All services] (所有服務),篩選 [Intune],然後選取 [Microsoft Intune]。Select All services, filter on Intune, and select Microsoft Intune.

  3. 選取 [裝置設定] > [設定檔] > [建立設定檔]。Select Device configuration > Profiles > Create profile.

  4. 輸入裝置限制設定檔的 [名稱] 和 [描述]。Enter a Name and Description for the device restriction profile.

    重要

    • 名稱必須與 Wi-Fi 設定檔 XML 中的名稱屬性相同。The name must be the same as the name attribute in the Wi-Fi profile xml. 否則,就會發生失敗。Otherwise, it fails.
    • 如果您要匯出包含預先共用金鑰的 Wi-Fi 設定檔,就必須key=clear 新增至命令中。If you are exporting a Wi-Fi profile that includes a pre-shared key, you must add key=clear to the command. 例如,輸入:netsh wlan export profile name="ProfileName" key=clear folder=c:\WifiFor example, enter: netsh wlan export profile name="ProfileName" key=clear folder=c:\Wifi
    • 搭配 Windows 10 使用預先共用金鑰會導致在 Intune 中出現補救錯誤。Using a pre-shared key with Windows 10 causes a remediation error to appear in Intune. 發生這種情況時,系統會將 Wi-Fi 設定檔適當地指派給裝置,而該設定檔將如預期般運作。When this happens, the Wi-Fi profile is properly assigned to the device, and the profile works as expected.
    • 如果您要匯出包含預先共用金鑰的 Wi-Fi 設定檔,請確定該檔案受到保護。If you export a Wi-Fi profile that includes a pre-shared key, be sure the file is protected. 該金鑰會採用存文字格式,因此您需負責保護該金鑰。The key is in plain text, so it's your responsibility to protect the key.
  5. 在 [平台] 中,選取 [Windows 8.1 及更新版本]。In Platform, select Windows 8.1 and later.

  6. 在 [設定檔類型] 中,選取 [Wi-Fi 匯入]。In Profile type, select Wi-Fi import.

  7. 進行以下設定:Configure the following settings:

  • 連線名稱:輸入 Wi-Fi 連線的名稱。Connection name: Enter a name for the Wi-Fi connection. 當使用者瀏覽可用的 Wi-Fi 網路時,會看到此名稱。This name is displayed to end users when they browse available Wi-Fi networks.
  • 設定檔 XML:選取 [瀏覽] 按鈕以選取 XML 檔案,其中包含了您要匯入至 Intune 的 Wi-Fi 設定檔。Profile XML: Select the browse button to select the XML file containing the Wi-Fi profile settings that you want to import into Intune.
  • 檔案內容:顯示所選組態設定檔的 XML 程式碼。File contents: Shows the XML code for the configuration profile you selected.
  1. 完成時,選擇 [確定],然後建立設定檔。When you're done, choose OK, and then Create the profile.

設定檔隨即建立,並列在設定檔清單中。The profile is created, and is in the profiles list.