適用於 Windows 10 裝置的自訂 OMA-URI 設定 - IntuneCustom OMA-URI settings for Windows 10 devices - Intune

使用適用於 Windows 10 和 Windows 10 行動裝置版的 Microsoft Intune 自訂設定檔,部署 OMA-URI (開放行動聯盟的統一資源識別項) 設定。Use the Microsoft Intune custom profile for Windows 10 and Windows 10 Mobile to deploy OMA-URI (Open Mobile Alliance Uniform Resource Identifier) settings. 這些設定可用來控制裝置上的功能。These settings are used to control features on devices. Windows 10 讓許多設定服務提供者 (CSP) 設定可供使用,例如原則設定服務提供者 (原則 CSP)Windows 10 makes many Configuration Service Provider (CSP) settings available, such as Policy Configuration Service Provider (Policy CSP).

如果您正在尋找特定設定,請記住 Windows 10 裝置限制設定檔包含許多內建於 Intune 的設定,而且不需要自訂值。If you're looking for a specific setting, remember that the Windows 10 device restriction profile contains many settings that are built in to Intune, and don't require custom values.

設定自訂設定Configure custom settings

  1. 使用自訂設定檔類型來建立新的組態設定檔。Create a new configuration profile using the Custom profile type. 如何設定自訂裝置設定列出步驟。How to configure custom device settings lists the steps.
  2. 在 [自訂 OMA-URI 設定]中,選取 [新增] 建立新的設定。In Custom OMA-URI Settings, select Add to create a new setting. 您也可以按一下 [匯出],建立所有值的清單 (以逗號分隔值 (.csv) 的方式設定的檔案)。You can also click Export to create a list of all the values you configured in a comma-separated values (.csv) file.
  3. 針對要新增的各個 OMA-URI 設定,輸入下列資訊:For each OMA-URI setting you want to add, enter the following information:
  • 名稱:輸入 OMA-URI 設定的唯一名稱,協助您在設定清單中識別該設定。Name: Enter a unique name for the OMA-URI setting to help you identify it in the list of settings.
  • 描述:選擇性輸入設定的描述。Description: Optionally, enter a description for the setting.
  • OMA-URI (區分大小寫):輸入您想要為其提供設定的 OMA-URI。OMA-URI (case sensitive): Enter the OMA-URI you want to supply a setting for.
  • 資料類型:從以下項目選擇︰Data type: Choose from:
    • 字串String
    • 字串 (XML)String (XML)
    • 日期和時間Date and time
    • 整數Integer
    • 浮點數Floating point
    • 布林值Boolean
    • Base64Base64
  • :輸入要與您所輸入 OMA-URI 建立關聯的值或檔案。Value: Enter the value or file to associate with the OMA-URI you entered.
  1. 完成後,請選取 [確定]。When you're done, select OK. 在 [建立設定檔] 中,選取 [建立]。In Create profile, and select Create. 設定檔隨即建立,並顯示在設定檔清單中。The profile is created, and is shown in the profiles list.

範例Example

在下列範例中,已啟用 Connectivity/AllowVPNOverCellular 設定。In the following example, the Connectivity/AllowVPNOverCellular setting is enabled. 此設定可讓 Windows 10 裝置在行動電話通訊網路上時,開啟 VPN 連線。This setting allows a Windows 10 device to open a VPN connection when on a cellular network.

包含 VPN 設定的自訂原則範例

尋找可設定的原則Find the policies you can configure

Configuration service provider reference (設定服務提供者參考) 中,可以找到 Windows 10 所支援所有設定服務提供者 (CSP) 的完整清單。You’ll find a complete list of all configuration service providers (CSPs) that Windows 10 supports in the Configuration service provider reference.

並非所有設定都與所有的 Windows 10 版本相容。Not all settings are compatible with all Windows 10 versions. Configuration service provider reference (設定服務提供者參考) 告訴您每個 CSP 所支援的版本。Configuration service provider reference tells you which versions are supported for each CSP.

此外,Intune 不支援列出的所有設定。Additionally, Intune doesn't support all the settings listed. 若要了解 Intune 是否支援您想要的設定,請開啟該設定的文章。To find out if Intune supports the setting you want, open the article for that setting. 每個設定頁面都會顯示它所支援的作業。Each setting page shows it’s supported operation. 若要使用 Intune,該設定必須支援「新增」或「取代」作業。To work with Intune, the setting must support the Add or Replace operations.