適用于現有裝置的 Windows Autopilot DeploymentWindows Autopilot Deployment for existing devices

適用于: Windows 10Applies to: Windows 10

使用 Windows Autopilot 的新式桌面部署可協助您輕鬆地將最新版的 Windows 10 部署到現有的裝置。Modern desktop deployment with Windows Autopilot helps you easily deploy the latest version of Windows 10 to your existing devices. 您需要的工作應用程式可以自動安裝。The apps you need for work can be automatically installed. 您的工作設定檔已同步處理,因此您可以立即繼續工作。Your work profile is synchronized, so you can resume working right away.

本主題說明如何使用 (,將 Windows 7 或 Windows 8.1 已加入網域的電腦轉換成加入 Azure Active Directory 或 Active Directory 混合式 Azure AD Join) Windows Autopilot 的 Windows 10 裝置。This topic describes how to convert Windows 7 or Windows 8.1 domain-joined computers to Windows 10 devices joined to either Azure Active Directory or Active Directory (Hybrid Azure AD Join) by using Windows Autopilot.

注意

適用現有裝置的 Windows Autopilot 只支援使用者導向的 Azure Active Directory 和混合式 Azure AD 設定檔。Windows Autopilot for existing devices only supports user-driven Azure Active Directory and Hybrid Azure AD profiles. 不支援自我部署設定檔。Self-deploying profiles are not supported.

先決條件Prerequisites

  • 目前支援的 Microsoft Endpoint Configuration Manager 最新分支或 technical preview 分支版本。A currently supported version of Microsoft Endpoint Configuration Manager current branch or technical preview branch.
  • WINDOWS ADK 1803 或更新版本The Windows ADK 1803 or later
  • 指派的 Microsoft Intune 授權Assigned Microsoft Intune Licenses
  • Azure Active Directory PremiumAzure Active Directory Premium
  • Windows 10 1809 版或更新版本匯入 Configuration Manager 作為作業系統映射Windows 10 version 1809 or later imported into Configuration Manager as an Operating System Image
    • 重要事項:如果您使用 Windows 10 1903 搭配 Configuration Manager 內建的Windows Autopilot 現有裝置工作順序範本,請參閱已知問題Important: See Known issues if you're using Windows 10 1903 with Configuration Manager’s built-in Windows Autopilot existing device task sequence template. 目前,您必須編輯此工作順序中的其中一個步驟,才能與 Windows 10 1903 版正常搭配運作。Currently, one of the steps in this task sequence must be edited to work properly with Windows 10, version 1903.

程序Procedures

(選用) 設定註冊狀態頁面Configure the Enrollment Status Page (optional)

如果您想要的話,可以使用 Intune 設定 Autopilot 的 註冊狀態頁面If you want, you can set up an enrollment status page for Autopilot using Intune.

若要啟用及設定註冊和狀態頁面:To enable and configure the enrollment and status page:

  1. 在 Azure 入口網站中開啟 IntuneOpen Intune in the Azure portal.
  2. 存取 Intune > 裝置註冊 > Windows 註冊設定註冊狀態頁面Access Intune > Device enrollment > Windows enrollment and Set up an enrollment status page.
  3. 存取 Azure Active Directory > 行動 (mdm 和 MAM) > Microsoft Intune設定自動 mdm 註冊 ,以及設定部分或所有使用者的 mdm 使用者範圍。Access Azure Active Directory > Mobility (MDM and MAM) > Microsoft Intune and Configure automatic MDM enrollment and configure the MDM user scope for some or all users.

請參閱以下範例。See the following examples.

註冊狀態頁面enrollment status page

mdmmdm

建立 JSON 檔案Create the JSON file

提示

若要在執行 Windows Server 2012/2012 R2 或 Windows 7/8.1 的電腦上執行下列命令,您必須先下載並安裝 Windows Management FrameworkTo run the following commands on a computer running Windows Server 2012/2012 R2 or Windows 7/8.1, you must first download and install the Windows Management Framework.

  1. 在連線到網際網路的 Windows 電腦或伺服器上,開啟提高許可權的 Windows PowerShell 命令視窗On an Internet connected Windows PC or server, open an elevated Windows PowerShell command window

  2. 輸入下列幾行來安裝必要的模組Enter the following lines to install the necessary modules

    安裝必要的模組Install required modules

    Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
    Install-Module AzureAD -Force
    Install-Module WindowsAutopilotIntune -Force
    Install-Module Microsoft.Graph.Intune -Force
    
  3. 輸入下列幾行,並提供 Intune 系統管理認證:Enter the following lines and provide Intune administrative credentials:

    • 請確定您指定的使用者帳戶具有足夠的系統管理許可權。Be sure that the user account you specify has sufficient administrative rights.

      Connect-MSGraph
      

      系統將會使用標準 Azure AD 表單要求您帳戶的使用者和密碼。The user and password for your account will be requested using a standard Azure AD form. 輸入您的使用者名稱和密碼,然後按一下 [登 ]。Type your username and password and then click Sign in.
      請參閱下列範例:See the following example:

      Azure AD 驗證

      如果這是您第一次使用 Intune 圖形 Api,系統會提示您啟用 Microsoft Intune PowerShell 讀取和寫入權限。If this is the first time you’ve used the Intune Graph APIs, you’ll be prompted to enable Microsoft Intune PowerShell read and write permissions. 若要啟用這些許可權:To enable these permissions:

    • 代表或您的組織選取同意Select Consent on behalf or your organization

    • 按一下 [接受]Click Accept

  4. 接下來,以 JSON 格式取得並顯示指定之 Intune 租使用者中可用的所有 Autopilot 設定檔:Next, retrieve and display all the Autopilot profiles available in the specified Intune tenant in JSON format:

    針對現有裝置 JSON 格式取得 Autopilot 中的設定檔Retrieve profiles in Autopilot for existing devices JSON format

    Get-AutopilotProfile | ConvertTo-AutopilotConfigurationJSON
    

    請參閱下列範例輸出: (使用底部的水準捲軸來查看長行) See the following sample output: (use the horizontal scroll bar at the bottom to view long lines)

     PS C:\> Get-AutopilotProfile | ConvertTo-AutopilotConfigurationJSON
     {
         "CloudAssignedTenantId": "1537de22-988c-4e93-b8a5-83890f34a69b",
         "CloudAssignedForcedEnrollment": 1,
         "Version": 2049,
         "Comment_File": "Profile Autopilot Profile",
         "CloudAssignedAadServerData": "{\"ZeroTouchConfig\":{\"CloudAssignedTenantUpn\":\"\",\"ForcedEnrollment\":1,\"CloudAssignedTenantDomain\":\"M365x373186.onmicrosoft.com\"}}",
         "CloudAssignedTenantDomain": "M365x373186.onmicrosoft.com",
         "CloudAssignedDomainJoinMethod": 0,
         "CloudAssignedOobeConfig": 28,
         "ZtdCorrelationId": "7F9E6025-1E13-45F3-BF82-A3E8C5B59EAC"
     }

    每個設定檔都會封裝在大括弧 {} 內。Each profile is encapsulated within braces { }. 在上述範例中,會顯示單一設定檔。In the previous example, a single profile is displayed.

    請參閱下表,以取得 JSON 檔案中使用的屬性描述。See the following table for a description of properties used in the JSON file.

    屬性Property 描述Description
    版本 (號碼,選擇性) Version (number, optional) 識別 JSON 檔案格式的版本號碼。The version number that identifies the format of the JSON file. 若為 Windows 10 1809,指定的版本必須是2049。For Windows 10 1809, the version specified must be 2049.
    CloudAssignedTenantId (guid,必要的) CloudAssignedTenantId (guid, required) 應使用的 Azure Active Directory 租使用者識別碼。The Azure Active Directory tenant ID that should be used. 這個屬性是租使用者的 GUID,可以在租使用者的屬性中找到。This property is the GUID for the tenant, and can be found in properties of the tenant. 值不應包含大括弧。The value shouldn't include braces.
    CloudAssignedTenantDomain (字串,必要) CloudAssignedTenantDomain (string, required) 應使用的 Azure Active Directory 租使用者名稱,例如: tenant.onmicrosoft.com。The Azure Active Directory tenant name that should be used, for example: tenant.onmicrosoft.com.
    CloudAssignedOobeConfig (number,required) CloudAssignedOobeConfig (number, required) 這個屬性是顯示已設定 Autopilot 設定的點陣圖。This property is a bitmap that shows which Autopilot settings were configured. 值包括: SkipCortanaOptIn = 1、OobeUserNotLocalAdmin = 2、SkipExpressSettings = 4、SkipOemRegistration = 8、SkipEula = 16Values include: SkipCortanaOptIn = 1, OobeUserNotLocalAdmin = 2, SkipExpressSettings = 4, SkipOemRegistration = 8, SkipEula = 16
    CloudAssignedDomainJoinMethod (number,required) CloudAssignedDomainJoinMethod (number, required) 這個屬性會指定裝置是否應加入 Azure Active Directory 或 Active Directory (混合式 Azure AD Join) 。This property specifies whether the device should join Azure Active Directory or Active Directory (Hybrid Azure AD Join). 值包括: Active AD Join = 0,混合式 Azure AD Join = 1Values include: Active AD Join = 0, Hybrid Azure AD Join = 1
    CloudAssignedForcedEnrollment (number,required) CloudAssignedForcedEnrollment (number, required) 指定裝置應該需要 Azure AD 聯結和 MDM 註冊。Specifies that the device should require Azure AD Join and MDM enrollment.
    0 = 不需要,1 = 必要。0 = not required, 1 = required.
    ZtdCorrelationId (guid,必要的) ZtdCorrelationId (guid, required) 唯一的 GUID (沒有大括弧) ,在註冊過程中會提供給 Intune。A unique GUID (without braces) that will be provided to Intune as part of the registration process. ZtdCorrelationId 將會以 "OfflineAutoPilotEnrollmentCorrelator" 的形式包含在註冊訊息中。ZtdCorrelationId will be included in enrollment message as “OfflineAutoPilotEnrollmentCorrelator”. 只有當註冊是在透過離線註冊進行零觸控布建的裝置上進行註冊時,才會顯示此屬性。This attribute will be present only if the enrollment is taking place on a device registered with Zero Touch Provisioning via offline registration.
    CloudAssignedAadServerData (編碼的 JSON 字串,必要) CloudAssignedAadServerData (encoded JSON string, required) 用於商標的內嵌 JSON 字串。An embedded JSON string used for branding. 它需要啟用 Azure AD corp 商標。It requires Azure AD corp branding enabled.
    範例值: "CloudAssignedAadServerData": "{ " ZeroTouchConfig " : { " CloudAssignedTenantUpn " : " " , " CloudAssignedTenantDomain " : " tenant.onmicrosoft.com " }}"Example value: "CloudAssignedAadServerData": "{"ZeroTouchConfig":{"CloudAssignedTenantUpn":"","CloudAssignedTenantDomain":"tenant.onmicrosoft.com"}}"
    CloudAssignedDeviceName (字串,選擇性) CloudAssignedDeviceName (string, optional) 自動指派給電腦的名稱。The name automatically assigned to the computer. 這會遵循 Intune Autopilot 設定檔中設定的命名模式慣例。This follows the naming pattern convention configured in Intune Autopilot profile. 或者,您可以指定要使用的明確名稱。Or you can specify an explicit name to use.
  5. Autopilot 設定檔必須儲存為 ASCII 或 ANSI 格式的 JSON 檔案。The Autopilot profile must be saved as a JSON file in ASCII or ANSI format. Windows PowerShell 預設為 Unicode 格式。Windows PowerShell defaults to Unicode format. 因此,如果您將命令的輸出重新導向至檔案,也請指定檔案格式。So, if you redirect output of the commands to a file, also specify the file format. 例如,若要使用 Windows PowerShell 將檔案儲存為 ASCII 格式,您可以建立目錄 (例如: c:\Autopilot) 並儲存設定檔,如下所示:如有需要,請 (使用底部的水準捲軸來查看整個命令字串) For example, to save the file in ASCII format using Windows PowerShell, you can create a directory (ex: c:\Autopilot) and save the profile as shown below: (use the horizontal scroll bar at the bottom if needed to view the entire command string)

    Get-AutopilotProfile | ConvertTo-AutopilotConfigurationJSON | Out-File c:\Autopilot\AutopilotConfigurationFile.json -Encoding ASCII
    

    重要事項:檔案名必須命名為 AutopilotConfigurationFile.js ,並將其編碼為 ASCII/ANSI。IMPORTANT: The file name must be named AutopilotConfigurationFile.json and be encoded as ASCII/ANSI.

    如果您想要的話,可以將設定檔儲存到文字檔中,然後在 [記事本] 中編輯。If preferred, you can save the profile to a text file and edit in Notepad. 在 [記事本] 中,選擇 [ 另存 新檔] 時,必須選取 [另存新檔類型: 所有 檔案],然後從 [ 編碼] 旁的下拉式清單選擇 [ANSI]。In Notepad, when you choose Save as you must select Save as type: All Files and choose ANSI from the drop-down list next to Encoding. 請參閱下列範例。See the following example.

    記事本 JSON

    儲存檔案之後,請將檔案移到適合做為 Microsoft Endpoint Configuration Manager 套件來源的位置。After saving the file, move the file to a location suitable as a Microsoft Endpoint Configuration Manager package source.

    重要

    您可以使用多個 JSON 設定檔檔案,但每個設定檔都必須命名為 AutopilotConfigurationFile.js ,才能讓 OOBE 遵循 Autopilot 體驗。Multiple JSON profile files can be used, but each must be named AutopilotConfigurationFile.json in order for OOBE to follow the Autopilot experience. 檔案也必須編碼為 ANSI。The file also must be encoded as ANSI.

    使用 Unicode 或 utf-8 編碼來儲存檔案,或使用不同的檔案名儲存檔案,會導致 WINDOWS 10 OOBE 無法遵循 Autopilot 體驗Saving the file with Unicode or UTF-8 encoding or saving it with a different file name will cause Windows 10 OOBE to not follow the Autopilot experience.

建立包含 JSON 檔案的封裝Create a package containing the JSON file

  1. 在 Configuration Manager 中,流覽至 \Software Library\Overview\Application Management\PackagesIn Configuration Manager, navigate to \Software Library\Overview\Application Management\Packages
  2. 在功能區中,按一下 [建立套件]On the ribbon, click Create Package
  3. 在 [ 建立封裝和程式] 中,輸入下列 封裝程式類型 詳細資料:In the Create Package and Program Wizard enter the following Package and Program Type details:
    • 名稱現有裝置設定的 AutopilotName: Autopilot for existing devices config
    • 選取 [ 此套件包含來源檔案]。Select This package contains source files.
    • 源資料夾:按一下 [流覽] ,並指定包含檔案 AutopilotConfigurationFile.js的 UNC 路徑。Source folder: Click Browse and specify a UNC path containing the AutopilotConfigurationFile.json file.
    • 按一下 [確定],然後按 [下一步]Click OK and then click Next.
    • 程式類型不要建立程式Program Type: Don't create a program
  4. 按一下 [下一步] 兩次,然後按一下 [關閉].Click Next twice and then click Close.

注意:如果您在 Intune 中變更使用者導向的 Autopilot 設定檔設定,您也必須更新 JSON 檔案,並重新發佈相關聯的 Configuration Manager 套件。NOTE: If you change user-driven Autopilot profile settings in Intune at a later date, you must also update the JSON file and redistribute the associated Configuration Manager package.

建立目標集合Create a target collection

注意

您也可以選擇重複使用現有的集合You can also choose to reuse an existing collection

  1. 流覽至 \Assets 和 Compliance\Overview\Device 集合Navigate to \Assets and Compliance\Overview\Device Collections

  2. 在功能區上,按一下 [建立],然後按一下 [建立裝置集合]。On the ribbon, click Create and then click Create Device Collection

  3. 在 [ 建立裝置集合] 中,輸入下列 一般 詳細資料:In the Create Device Collection Wizard enter the following General details:

    • 名稱現有裝置集合的 AutopilotName: Autopilot for existing devices collection

    • 批註: (選擇性) Comment: (optional)

    • 限制集合:按一下 [流覽] ,然後選取 [所有系統]Limiting collection: Click Browse and select All Systems

      注意

      您可以選擇性地選擇針對限制集合使用替代集合。You can optionally choose to use an alternative collection for the limiting collection. 要升級的裝置必須在您選取的集合中執行 ConfigMgr 代理程式。The device to be upgraded must be running the ConfigMgr agent in the collection that you select.

  4. [下一步],然後輸入下列 成員資格規則 詳細資料:Click Next, then enter the following Membership Rules details:

    • 按一下 [ 新增規則 ],並指定 [直接] 或 [以查詢為基礎] 集合規則,將目標測試 Windows 7 裝置新增至新的集合。Click Add Rule and specify either a direct or query-based collection rule to add the target test Windows 7 devices to the new collection.
    • 例如,如果要抹除和重載的電腦主機名稱是 PC-01,而您想要使用 Name 作為屬性:For example, if the hostname of the computer to be wiped and reloaded is PC-01 and you want to use Name as the attribute:
      1. 按一下 [新增規則] > 直接規則] > (wizard 開啟) > 下一步Click Add Rule > Direct Rule > (wizard opens) > Next.

      2. 在 [] 旁輸入PC-01Enter PC-01 next to Value.

      3. 按一下 [資源]) 下的 [下一 > 台電腦-01 (]。 ResourcesClick Next > PC-01 (under Resources). 請參閱以下範例。See the following examples.

        尋找資源對話方塊  選取資源對話方塊Locate resources dialog box Select resources dialog box

  5. 繼續使用預設設定來建立裝置集合:Continue creating the device collection with the default settings:

    • 針對此集合使用累加式更新:未選取Use incremental updates for this collection: not selected
    • 排程此集合的完整更新:預設值Schedule a full update on this collection: default
    • 按兩次 [下一步] ,然後按一下 [關閉]Click Next twice and then click Close

建立現有裝置工作順序的 AutopilotCreate an Autopilot for existing devices Task Sequence

提示

下一個程式需要適用于 Windows 10 1803 或更新版本的開機映射。The next procedure requires a boot image for Windows 10 1803 or later. 在 [ 軟體 Library\Overview\Operating Systems\Boot 映射 ] 下的 [Configuration Manager 主控台] 中,檢查您可用的開機映射,並確認 作業系統版本 是 10.0.17134.1 (Windows 10 1803 版) 或更新版本。Review your available boot images in the Configuration Manager conole under Software Library\Overview\Operating Systems\Boot images and verify that the OS Version is 10.0.17134.1 (Windows 10 version 1803) or later.

  1. 在 Configuration Manager 主控台中,流覽至**\Software Library\Overview\Operating Systems\Task** sequenceIn the Configuration Manager console, navigate to \Software Library\Overview\Operating Systems\Task Sequences

  2. 在 [首頁] 功能區中,按一下 [建立工作順序]On the Home ribbon, click Create Task Sequence

  3. 選取 [ 安裝現有的映射套件 ],然後按 [下一步]Select Install an existing image package and then click Next

  4. 在 [建立工作順序] 嚮導中,輸入下列詳細資料:In the Create Task Sequence Wizard enter the following details:

    • 工作順序名稱適用于現有裝置的 AutopilotTask sequence name: Autopilot for existing devices

    • 開機映射:按一下 [流覽] ,然後選取 (1803 或更新版本的 Windows 10 開機映射) Boot Image: Click Browse and select a Windows 10 boot image (1803 or later)

    • 按一下 [下一步 > ] ,> 選取 Windows 10映射套件映射索引1803 版或更新版本。Click Next > Browse > select a Windows 10 Image package and Image Index, version 1803 or later.

    • 先選取磁碟分割並格式化目的電腦,再安裝作業系統 核取方塊。Select the Partition and format the target computer before installing the operating system checkbox.

    • 選取或清除 [ 設定工作順序以搭配 BitLocker 使用 ] 核取方塊。Select or clear Configure task sequence for use with BitLocker checkbox. 這是選擇性的。This is optional.

    • 產品金鑰伺服器授權模式:選擇性地輸入產品金鑰和伺服器授權模式。Product Key and Server licensing mode: Optionally enter a product key and server licensing mode.

    • 隨機產生本機系統管理員密碼,並停用所有支援平臺上的帳戶, (建議的) :選擇性。Randomly generate the local administrator password and disable the account on all support platforms (recommended): Optional.

    • 啟用帳戶並指定本機系統管理員密碼:選擇性。Enable the account and specify the local administrator password: Optional.

    • 按 [ 下一步],然後在 [設定網路] 頁面上選擇 [ 加入工作組 ],然後在 [ 工作組] 旁邊指定名稱 (例如: workgroup) 。Click Next, and then on the Configure Network page choose Join a workgroup and specify a name (ex: workgroup) next to Workgroup.

      重要

      適用于現有裝置的 Autopilot 工作順序將會執行「 準備 Windows 以取得 」動作,此動作會使用系統準備工具 (sysprep) 。The Autopilot for existing devices task sequence will run the Prepare Windows for capture action which uses the System Preparation Tool (sysprep). 如果目的電腦已加入網域,此動作將會失敗。This action will fail if the target machine is joined to a domain.

      重要

      系統準備工具 (sysprep) 將會使用/Generalize 參數執行,在 Windows 10 版本1903和1909上,將會刪除 Autopilot 設定檔,而電腦將會開機進入 OOBE 階段而不是 Autopilot 階段。The System Preparation Tool (sysprep) will run with the /Generalize parameter which, on Windows 10 versions 1903 and 1909, will delete the Autopilot profile file and the machine will boot into OOBE phase instead of Autopilot phase. 若要修正此問題,請參閱 Windows Autopilot 已知問題To fix this issue, please see Windows Autopilot - known issues.

  5. 按 [ 下一步],然後再按 [ 下一步] ,接受 [安裝 Configuration Manager] 頁面上的預設設定。Click Next, and then click Next again to accept the default settings on the Install Configuration Manager page.

  6. 在 [狀態遷移] 頁面上,輸入下列詳細資料:On the State Migration page, enter the following details:

    • 清除 [ Capture user settings and files ] 核取方塊。Clear the Capture user settings and files checkbox.

    • 清除 [ 捕捉網路設定 ] 核取方塊。Clear the Capture network settings checkbox.

    • 清除 [ 捕獲 Microsoft Windows 設定 ] 核取方塊。Clear the Capture Microsoft Windows settings checkbox.

    • 按 [下一步] 。Click Next.

      注意

      由於現有裝置的 Autopilot 工作順序會在 Windows PE 中完成,因此不支援使用者狀態遷移工具組 (USMT) 資料移轉,因為無法將使用者狀態還原到新的作業系統。Because the Autopilot for existing devices task sequence completes while in Windows PE, User State Migration Toolkit (USMT) data migration isn't supported as there is no way to restore the user state into the new OS. 此外, (USMT) 的使用者狀態遷移工具組不支援 Azure AD 加入的裝置。Also, the User State Migration Toolkit (USMT) does not support Azure AD-joined devices.

  7. 在 [包含更新] 頁面上,選擇三個可用選項的其中一個。On the Include Updates page, choose one of the three available options. 這是選擇性選項。This selection is optional.

  8. 在 [安裝應用程式] 頁面上,您可以選擇性地新增應用程式。On the Install applications page, you can optionally add applications.

  9. [下一步],確認設定,按 [下一步],然後按一下 [ 關閉]Click Next, confirm settings, click Next, and then click Close.

  10. 以滑鼠右鍵按一下現有裝置工作順序的 [Autopilot],然後按一下 [ 編輯]。Right click on the Autopilot for existing devices task sequence and click Edit.

  11. 在 [ 安裝作業系統 ] 群組底下的 [工作順序編輯器] 中,按一下 [套用 Windows 設定 ] 動作。In the Task Sequence Editor under the Install Operating System group, click the Apply Windows Settings action.

  12. 按一下 [ 加入 ],然後按一下 [ 新增群組]。Click Add then click New Group.

  13. 現有裝置設定的組新群組變更為 Autopilot。Change the group Name from New Group to Autopilot for existing devices config.

  14. 按一下 [ 新增],指向 [一般],然後按一下 [ 執行命令列]。Click Add, point to General, then click Run Command-line.

  15. 確認 執行命令列 步驟是否嵌套在 現有裝置 設定群組的 Autopilot 下。Verify that the Run Command-line step is nested under the Autopilot for existing devices config group.

  16. 變更名稱以套用現有裝置設定檔的 Autopilot,將下列程式碼貼入 >適用命令列文字方塊中:Change the Name to Apply Autopilot for existing devices config file, paste the following into the Command line text box > Apply:

    cmd.exe /c xcopy AutopilotConfigurationFile.json %OSDTargetSystemDrive%\windows\provisioning\Autopilot\ /c
    
    • AutopilotConfigurationFile.json 必須是在先前建立的現有裝置封裝的 Autopilot 中出現的 JSON 檔案名。AutopilotConfigurationFile.json must be the name of the JSON file present in the Autopilot for existing devices package that was created earlier.
  17. 在 [套用現有裝置設定檔的 Autopilot ] 步驟中,選取 [封裝 > 流覽]In the Apply Autopilot for existing devices config file step, select the Package > Browse.

  18. 選取稍早建立的 現有裝置 設定套件 Autopilot,然後按一下 [確定]Select the Autopilot for existing devices config package created earlier and click OK. 本章節結尾會顯示一個範例。An example is displayed at the end of this section.

  19. 在 [ 安裝作業系統 ] 群組底下,按一下 [ 設定 Windows] 和 [Configuration Manager 工作]。Under the Setup Operating System group, click the Setup Windows and Configuration Manager task.

  20. 按一下 [ 加入 ],然後按一下 [ 新增群組]。Click Add and then click New Group.

  21. 名稱新群組 變更為 準備裝置以進行 AutopilotChange Name from New Group to Prepare Device for Autopilot

  22. 確認 Autopilot 群組的「 準備裝置 」是工作順序中的最後一個步驟。Verify that the Prepare Device for Autopilot group is the last step in the task sequence. 如有必要,請使用 [ 下移 ] 按鈕。Use the Move Down button if necessary.

  23. 在 [ 準備裝置以 Autopilot ] 群組中選取之後,按一下 [ 新增],指向 [ 映射 ],然後按一下 [ 準備 ConfigMgr 用戶端以進行 Capture]。With the Prepare device for Autopilot group selected, click Add, point to Images and then click Prepare ConfigMgr Client for Capture.

  24. 新增第二個步驟,方法是按一下 [ 新增]、指向 [ 映射],然後按一下 [ 準備 Windows 以進行 Capture]。Add a second step by clicking Add, pointing to Images, and clicking Prepare Windows for Capture. 請在此步驟中使用下列設定:Use the following settings in this step:

    • 自動建立大型儲存驅動程式清單未選取Automatically build mass storage driver list: Not selected
    • 不要重設啟用旗標: 未選取Don't reset activation flag: Not selected
    • 執行此動作後將電腦關機選擇性Shut down the computer after running this action: Optional

    Autopilot 工作順序

  25. 按一下 [確定] 以關閉 [工作順序編輯器]。Click OK to close the Task Sequence Editor.

注意

在 Windows 10 1903 和1909上,的 AutopilotConfigurationFile.js 會由「 準備 Windows 進行捕捉 」步驟所刪除。On Windows 10 1903 and 1909, the AutopilotConfigurationFile.json is deleted by the Prepare Windows for Capture step. 如需詳細資訊和因應措施,請參閱 Windows Autopilot 已知問題For more information and a workaround, see Windows Autopilot - known issues.

將內容部署至發佈點Deploy Content to Distribution Points

接下來,請確定工作順序所需的所有內容都已部署至發佈點。Next, ensure that all content required for the task sequence is deployed to distribution points.

  1. 以滑鼠右鍵按一下 現有裝置 工作順序的 [Autopilot],然後按一下 [ 發佈內容]。Right click on the Autopilot for existing devices task sequence and click Distribute Content.
  2. 按 [ 下一步]檢查要發佈的內容,然後按 [下一步]Click Next, Review the content to distribute, and then click Next.
  3. 在 [指定內容發佈] 頁面上,按一下 [ 新增 ] 以指定 發佈點發佈點群組On the Specify the content distribution page, click Add to specify either a Distribution Point or Distribution Point Group.
  4. 在 [新增發佈點] 或 [新增發佈點群組] 中,指定可讓工作順序取得 JSON 檔案的內容目的地。On the Add Distribution Points or Add Distribution Point Groups wizard, specify content destinations that let the task sequence retrieve the JSON file.
  5. 當您完成指定內容發佈之後,按兩次 [下一步] ,然後按一下 [ 關閉]。When you're finished specifying content distribution, click Next twice then click Close.

使用 Autopilot 工作順序部署 OSDeploy the OS with Autopilot Task Sequence

  1. 以滑鼠右鍵按一下 [ 現有裝置的 Autopilot ] 工作順序,然後按一下 [ 部署]。Right click on the Autopilot for existing devices task sequence and then click Deploy.
  2. 在 [部署軟體] 中,輸入下列 一般部署設定 詳細資料:In the Deploy Software Wizard enter the following General and Deployment Settings details:
    • 工作順序適用于現有裝置的 AutopilotTask Sequence: Autopilot for existing devices.
    • 集合:按一下 [流覽] ,然後選取 [ Autopilot 現有裝置集合 (或您偏好) 的其他集合。Collection: Click Browse and then select Autopilot for existing devices collection (or another collection you prefer).
    • [下一步] 指定 部署設定Click Next to specify Deployment Settings.
    • 動作安裝Action: Install.
    • 目的提供Purpose: Available. 您可以選擇性地選取 [ 必要 ],而不是 [ 可用]。You can optionally select Required instead of Available. 在測試期間不建議使用此設定,因為不慎設定可能會造成負面影響。This setting isn't recommended during the test because inadvertent configurations may have negative impact.
    • 提供下列各項: 僅 Configuration Manager 用戶端Make available to the following: Only Configuration Manager Clients. 注意:請在此處選擇與您的測試內容相關的選項。Note: Choose the option here that is relevant for the context of your test. 如果目標用戶端沒有安裝 Configuration Manager 代理程式或 Windows,您必須選取包含 PXE 或開機媒體的選項。If the target client doesn't have the Configuration Manager agent or Windows installed, you must select an option that includes PXE or Boot Media.
    • [下一步] 指定 排程 詳細資料。Click Next to specify Scheduling details.
    • 排程此部署的可用時間:選擇性Schedule when this deployment will become available: Optional
    • 排程此部署的到期時間:選擇性Schedule when this deployment will expire: Optional
    • [下一步] 以指定 使用者體驗 詳細資料。Click Next to specify User Experience details.
    • 顯示工作順序進度:已選取。Show Task Sequence progress: Selected.
    • 軟體安裝:未選取。Software Installation: Not selected.
    • 必要時重新開機系統 (,以完成安裝) :未選取。System restart (if necessary to complete the installation): Not selected.
    • 認可在到期時或在維護期間變更時 (需要重新開機) :選擇性。Commit changed at deadline or during a maintenance windows (requires restart): Optional.
    • 允許工作順序針對網際網路上的用戶端執行:選擇性Allow task sequence to be run for client on the Internet: Optional
    • 按一下 [下一步] 以指定 警示 詳細資料。Click Next to specify Alerts details.
    • 當閾值高於下列值時,請建立部署警示:選擇性。Create a deployment alert when the threshold is higher than the following: Optional.
    • [下一步] 以指定 發佈點 詳細資料。Click Next to specify Distribution Points details.
    • 部署選項在執行中工作順序需要時將內容下載到本機Deployment options: Download content locally when needed by the running task sequence.
    • 當沒有本機發佈點可用時,使用遠端發佈點:選擇性。When no local distribution point is available, use a remote distribution point: Optional.
    • 允許用戶端使用預設網站界限群組中的發佈點:選擇性。Allow clients to use distribution points from the default site boundary group: Optional.
    • [下一步],確認設定,按 [下一步],然後按一下 [ 關閉]Click Next, confirm settings, click Next, and then click Close.

完成用戶端安裝程式Complete the client installation process

  1. 在目標 Windows 7 或 Windows 8.1 用戶端電腦上,選擇 [開始] > 輸入 軟體中心 > 按下 enter。On the target Windows 7 or Windows 8.1 client computer, choose Start > type Software Center > press Enter.

  2. 在 [軟體程式庫] 中, 為現有裝置 選取 [Autopilot],然後按一下 [ 安裝]。In the software library, select Autopilot for existing devices and click Install. 請參閱下列範例:See the following example:

    Autopilot 現有裝置頁面  確認對話方塊Autopilot for existing devices page Confirmation dialog box

工作順序將會:The Task Sequence will:

  1. 下載內容Download content
  2. 重新開機裝置Reboot the device
  3. 格式化磁片磁碟機Format the drives
  4. 安裝 Windows 10Install Windows 10
  5. 準備 AutopilotPrepare for Autopilot

工作順序完成之後,裝置將會開機進入 OOBE 並提供 Autopilot 體驗。After the task sequence has completed, the device will boot into OOBE and provide an Autopilot experience.

重新整理-1 重新整理-2 重新整理   -3refresh-1 refresh-2 refresh-3

注意

如果將裝置加入 Active Directory (混合式 Azure AD Join) ,則必須建立以「所有裝置」為目標的「網域加入」裝置設定設定檔,因為該電腦沒有 (的裝置物件可執行以群組為基礎的目標 Azure Active Directory。If joining devices to Active Directory (Hybrid Azure AD Join), it is necessary to create a Domain Join device configuration profile that is targeted to "All Devices" (since there is no Azure Active Directory device object for the computer to do group-based targeting). 如需詳細資訊,請參閱 混合式 Azure Active Directory 聯結的使用者導向模式For more information, see User-driven mode for hybrid Azure Active Directory join.

註冊裝置以進行 Windows AutopilotRegister the device for Windows Autopilot

以 Autopilot 布建的裝置只會在第一次開機時獲得引導式 OOBE Autopilot 體驗。Devices provisioned with Autopilot only receive the guided OOBE Autopilot experience on first boot. 更新為 Windows 10 之後,請務必註冊裝置,使其在電腦重設時具有 Autopilot 體驗。After updating to Windows 10, make sure to register the device so it has the Autopilot experience when the PC resets. 您可以使用 [ 將所有目標裝置轉換為 Autopilot ] 設定,為指派的群組啟用自動註冊。You can enable automatic registration for an assigned group using the Convert all targeted devices to Autopilot setting. 如需詳細資訊,請參閱建立 Autopilot 部署設定檔For more information, see Create an Autopilot deployment profile.

另請參閱 將裝置新增至 Windows AutopilotAlso see Adding devices to Windows Autopilot.

加速部署流程Speeding up the deployment process

若要從部署程式移除大約20分鐘的時間,請參閱 Michael Niehaus 的 blog,以取得 加速適用現有裝置的 Windows Autopilot的指示。To remove around 20 minutes from the deployment process, see Michael Niehaus's blog with instructions for Speeding up Windows Autopilot for existing devices.