建立可開機媒體Create bootable media

適用於: Configuration Manager (最新分支)Applies to: Configuration Manager (current branch)

Configuration Manager 中的可開機媒體包含開機映像、選擇性的啟動前置命令和相關聯檔案,以及 Configuration Manager 檔案。Bootable media in Configuration Manager contains the boot image, optional prestart commands and associated files, and Configuration Manager files. 針對下列 OS 部署案例,請使用可開機媒體:Use bootable media for the following OS deployment scenarios:

使用方式Usage

以可開機媒體開機時,會發生下列流程:The following process occurs when you boot to bootable media:

  1. 來源電腦啟動The destination computer starts

  2. 它會連線到網路It connects to the network

  3. 它會從網站擷取下列內容:It retrieves the following content from the site:

    • 指定的工作順序The specified task sequence

    • 作業系統映像OS image

    • 任何其他必要的內容Any other required content

由於工作順序不在媒體上,因此不需要重新建立媒體即可變更工作順序或內容。Because the task sequence isn't on the media, you can change the task sequence or content without having to recreate the media.

可開機媒體上的套件並未加密。The packages on bootable media aren't encrypted. 若要確定套件內容免受未經授權的使用者的侵害,請採取適當的安全性措施。To make sure that the package contents are secured from unauthorized users, take appropriate security measures. 例如,為媒體加上密碼。For example, add a password to the media.

從 2006 版開始,可開機媒體可以下載雲端式內容。Starting in version 2006, bootable media can download cloud-based content. 裝置仍需要與管理點之間的內部網路連線。The device still needs an intranet connection to the management point. 其可以從啟用內容的雲端管理閘道 (CMG) 或雲端發佈點取得內容。It can get content from a content-enabled cloud management gateway (CMG) or cloud distribution point. 如需詳細資訊,請參閱對雲端式內容的支援For more information, see Support for cloud-based content.

PrerequisitesPrerequisites

使用 [建立工作順序媒體精靈] 建立可開機媒體之前,請先確定符合所有條件。Before you create bootable media by using the Create Task Sequence Media Wizard, be sure that all of these conditions are met.

開機映像Boot image

請針對您將在工作順序中用來部署 OS 的開機映像,考慮下列相關要點:Consider the following points about the boot image that you use in the task sequence to deploy the OS:

  • 開機映像的架構必須適用於目的電腦的架構。The architecture of the boot image must be appropriate for the architecture of the destination computer. 例如,x64 目的地電腦可以啟動並執行 x86 或 x64 開機映像。For example, an x64 destination computer can boot and run an x86 or x64 boot image. 不過,x86 目的地電腦只能啟動並執行 x86 開機映像。However, an x86 destination computer can boot and run only an x86 boot image.
  • 確定開機映像包含佈建目的電腦所需的網路及儲存體驅動程式。Make sure that the boot image contains the network and storage drivers that are required to provision the destination computer.

建立部署 OS 的工作順序Create a task sequence to deploy an OS

作為可開機媒體的一部分,請指定工作順序以部署 OS。As part of the bootable media, specify the task sequence to deploy the OS. 如需詳細資訊,請參閱建立工作順序以安裝 OSFor more information, see Create a task sequence to install an OS.

發佈與工作順序相關聯的所有內容Distribute all content associated with the task sequence

將工作順序所需的所有內容都發佈到至少一個發佈點。Distribute all content that the task sequence requires to at least one distribution point. 此內容包括開機映像,以及其他相關聯的啟動前置檔案。This content includes the boot image and other associated prestart files. 精靈會在建立可開機媒體時從發佈點收集內容。The wizard gathers the content from the distribution point when it creates the bootable media.

您的使用者帳戶至少需要該發佈點上內容庫的 [讀取]**** 存取。Your user account needs at least Read access rights to the content library on that distribution point. 如需詳細資訊,請參閱發佈內容For more information, see Distribute content.

準備卸除式 USB 磁碟機Prepare the removable USB drive

如果您使用的是卸除式 USB 磁碟機,請將它連接到執行 [建立工作順序媒體精靈] 的電腦。If you're using a removable USB drive, connect it to the computer where you run the Create Task Sequence Media wizard. 該 USB 磁碟機必須可由 Windows 偵測為卸除式裝置。The USB drive must be detectable by Windows as a removal device. 精靈會在建立媒體時直接寫入 USB 磁碟機。The wizard writes directly to the USB drive when it creates the media.

建立輸出資料夾Create an output folder

在您執行 [建立工作順序媒體精靈] 來針對 CD 或 DVD 組建立媒體之前,請先為精靈所建立的輸出檔案建立資料夾。Before you run the Create Task Sequence Media Wizard to create media for a CD or DVD set, create a folder for the output files it creates. 精靈針對 CD 或 DVD 組所建立的媒體會以 .ISO 檔案的形式直接寫入該資料夾中。Media that it creates for a CD or DVD set is written as an .ISO file directly in the folder.

處理序Process

注意

針對 PKI 環境,由於您在主要站台上指定根憑證授權單位 (CA),因此請務必在主要站台上建立可開機媒體。For PKI environments, since you specify the root certificate authority (CA) at the primary site, make sure to create the bootable media at the primary site. 管理中心網站 (CAS) 沒有根 CA 資訊,因此無法正確建立可開機媒體。The central administration site (CAS) doesn't have the root CA information to properly create the bootable media.

  1. 在 Configuration Manager 主控台中,移至 [軟體程式庫] 工作區,展開 [作業系統],然後選取 [工作順序] 節點。In the Configuration Manager console, go to the Software Library workspace, expand Operating Systems, and select the Task Sequences node.

  2. 在功能區的 [首頁]**** 索引標籤上,選取 [建立]**** 群組中的 [建立工作順序媒體]****。On the Home tab of the ribbon, in the Create group, select Create Task Sequence Media. 這個動作會啟動 [建立工作順序媒體精靈]。This action starts the Create Task Sequence Media Wizard.

  3. 在 [選取媒體類型]**** 頁面,指定下列選項:On the Select Media Type page, specify the following options:

    • 選取 [可開機媒體]****。Select Bootable media.

    • 如果您只想要允許部署 OS,而不需要使用者輸入,可以選擇性地選取 [允許自動部署作業系統]****。Optionally, if you want to only allow the OS to be deployed without requiring user input, select Allow unattended operating system deployment.

      重要

      當您選取此選項時,系統就不會提示使用者提供網路設定資訊或選擇性的工作順序。When you select this option, the user isn't prompted for network configuration information or for optional task sequences. 如果媒體已設定密碼保護,系統仍然會提示使用者輸入密碼。If you configure the media for password protection, the user is still prompted for a password.

  4. 在 [媒體管理]**** 頁面上,指定下列其中一個選項:On the Media Management page, specify one of the following options:

    • 動態媒體:允許管理點根據用戶端在網站界限中的位置,將媒體重新導向至其他管理點。Dynamic media: Allow a management point to redirect the media to another management point, based on the client location in the site boundaries.

    • [以站台為基礎的媒體]****:媒體僅會連絡指定的管理點。Site-based media: The media only contacts the specified management point.

  5. 在 [媒體類型]**** 頁面上,指定媒體是 [卸除式 USB 磁碟機]**** 還是 [CD/DVD 組]****。On the Media Type page, specify whether the media is a Removable USB drive or a CD/DVD set. 然後,設定下列選項:Then configure the following options:

    重要

    媒體會使用 FAT32 檔案系統。Media uses a FAT32 file system. 您無法在內容包含大小超過 4 GB 之檔案的 USB 磁碟機上建立媒體。You can't create media on a USB drive whose content contains a file over 4 GB in size.

    • 如果您選取 [卸除式 USB 磁碟機]****,請選取要在其中儲存內容的磁碟機。If you select Removable USB drive, select the drive where you want to store the content.

      • 格式化卸除式 USB 磁碟機 (FAT32) 並使其為可開機:根據預設,讓 Configuration Manager 準備 USB 磁碟機。Format removable USB drive (FAT32) and make bootable: By default, let Configuration Manager prepare the USB drive. 許多較新的 UEFI 裝置需要可開機的 FAT32 磁碟分割。Many newer UEFI devices require a bootable FAT32 partition. 不過,這個格式也會限制檔案大小和磁碟機的整體容量。However, this format also limits the size of files and overall capacity of the drive. 如果您已經格式化並設定卸除式磁碟機,請停用此選項。If you've already formatted and configured the removable drive, disable this option.
    • 如果您選取 [CD/DVD 組]****,請指定媒體的容量 ([媒體大小]****),以及輸出檔案的名稱和路徑 ([媒體檔案]****)。If you select CD/DVD set, specify the capacity of the media (Media size) and the name and path of the output file (Media file). 精靈會將輸出檔案寫入此位置。The wizard writes the output files to this location. 例如:\\servername\folder\outputfile.isoFor example: \\servername\folder\outputfile.iso

      如果媒體容量太小而無法儲存整個內容,便會建立多個檔案。If the capacity of the media is too small to store the entire content, it creates multiple files. 然後,您需要將內容儲存在多個 CD 或 DVD 上。Then you need to store the content on multiple CDs or DVDs. 當它需要多個媒體檔案時,Configuration Manager 會在其所建立的每個輸出檔案名稱上加入序號。When it requires multiple media files, Configuration Manager adds a sequence number to the name of each output file that it creates.

      重要

      如果您選取現有的 .iso 映像,[工作順序媒體精靈] 會在您繼續進行精靈的下一頁時從磁碟機或共用刪除映像。If you select an existing .iso image, the Task Sequence Media Wizard deletes that image from the drive or share as soon as you proceed to the next page of the wizard. 即使您取消精靈,還是會刪除現有映像。The existing image is deleted, even if you then cancel the wizard.

    • 複寫用快取資料夾Staging folder:媒體建立程序可能會需要許多暫存磁碟機空間。: The media creation process can require much temporary drive space. 根據預設,這個位置類似於下列路徑:%UserProfile%\AppData\Local\TempBy default this location is similar to the following path: %UserProfile%\AppData\Local\Temp. 為了提升這些暫存檔存放位置的彈性,您可以將此值變更為另一個磁碟機與路徑。To give you greater flexibility with where to store these temporary files, you can change this value to another drive and path.

    • 媒體標籤Media label:將標籤新增至工作順序媒體。: Add a label to task sequence media. 此標籤可協助您在建立媒體之後更輕鬆識別媒體。This label helps you better identify the media after you create it. 預設值是 Configuration ManagerThe default value is Configuration Manager. 此文字欄位會出現在下列位置:This text field appears in the following locations:

      • 如果您掛接 ISO 檔案,Windows 就會顯示此標籤作為掛接磁碟機的名稱。If you mount an ISO file, Windows displays this label as the name of the mounted drive.

      • 如果您格式化 USB 磁碟機,其會使用標籤的前 11 個字元作為其名稱。If you format a USB drive, it uses the first 11 characters of the label as its name.

      • Configuration Manager 會將稱為 MediaLabel.txt 的文字檔案寫入媒體的根目錄。Configuration Manager writes a text file called MediaLabel.txt to the root of the media. 根據預設,此檔案包含一行文字:label=Configuration ManagerBy default, the file includes a single line of text: label=Configuration Manager. 如果您自訂媒體標籤,則這一行文字會使用您的自訂標籤,而不是預設值。If you customize the label for media, this line uses your custom label instead of the default value.

    • 將 autorun.inf 檔案加入媒體Include autorun.inf file on media從 1906 版開始,Configuration Manager 預設就不會新增 autorun.inf 檔案。: Starting in version 1906, Configuration Manager doesn't add an autorun.inf file by default. 此檔案通常會遭到反惡意程式碼軟體產品的封鎖。This file is commonly blocked by antimalware products. 如需 Windows 自動執行功能的詳細資訊,請參閱 Creating an AutoRun-enabled CD-ROM Application (建立已啟用自動執行的 CD-ROM 應用程式)。For more information on the AutoRun feature of Windows, see Creating an AutoRun-enabled CD-ROM Application. 如果您的案例仍有此需要,請選取此選項來包含該檔案。If still necessary for your scenario, select this option to include the file.

  6. 在 [安全性]**** 頁面上,指定下列選項:On the Security page, specify the following options:

    • 啟用未知電腦支援:允許媒體將 OS 部署至未受 Configuration Manager 管理的電腦。Enable unknown computer support: Allow the media to deploy an OS to a computer that's not managed by Configuration Manager. Configuration Manager 資料庫中不會有這些電腦的記錄。There's no record of these computers in the Configuration Manager database. 如需詳細資訊,請參閱準備未知電腦部署For more information, see Prepare for unknown computer deployments.

    • [使用密碼保護媒體]****:輸入強式密碼,協助防範他人未經授權存取媒體。Protect media with a password: Enter a strong password to help protect the media from unauthorized access. 當您指定密碼時,使用者必須提供該密碼才能使用可開機媒體。When you specify a password, the user must provide that password to use the bootable media.

      重要

      基於安全性最佳作法,一律指派密碼保護可開機媒體。As a security best practice, always assign a password to help protect the bootable media.

    • 針對 HTTP 通訊,請選取 [建立自我簽署媒體憑證]****。For HTTP communications, select Create self-signed media certificate. 然後指定憑證的開始日期和到期日期。Then specify the start and expiration date for the certificate.

      注意

      如果選取此選項,就無法在此精靈的 [開機映像] 頁面上選取任何 HTTPS 管理點。If you select this option, you can't select any HTTPS management point on the Boot image page of this wizard.

    • 針對 HTTPS 通訊,請選取 [匯入 PKI 憑證]****。For HTTPS communications, select Import PKI certificate. 然後指定要匯入的憑證及其密碼。Then specify the certificate to import and its password.

      如需開機映像使用之此用戶端憑證的詳細資訊,請參閱 PKI 憑證需求For more information about this client certificate that boot images use, see PKI certificate requirements.

    • 使用者裝置親和性:若要在 Configuration Manager 中支援使用者為中心的管理,請指定要如何讓媒體為使用者與目的電腦建立關聯。User device affinity: To support user-centric management in Configuration Manager, specify how you want the media to associate users with the destination computer. 如需 OS 部署如何支援使用者裝置親和性的詳細資訊,請參閱將使用者與目的地電腦建立關聯For more information about how OS deployment supports user device affinity, see Associate users with a destination computer.

      • 允許自動核准使用者裝置親和性:媒體會自動為使用者與目的電腦建立關聯。Allow user device affinity with auto-approval: The media automatically associates users with the destination computer. 此功能是以部署 OS 之工作順序的動作為基礎。This functionality is based on the actions of the task sequence that deploys the OS. 在此案例中,工作順序會在將 OS 部署至目的地電腦時,為指定的使用者和目的地電腦建立關聯。In this scenario, the task sequence creates a relationship between the specified users and destination computer when it deploys the OS to the destination computer.

      • [允許使用者親和性等待系統管理員核准]****:媒體在授與核准後,為使用者與目的地電腦建立關聯。Allow user device affinity pending administrator approval: The media associates users with the destination computer after approval is granted. 此功能是以部署 OS 之工作順序的範圍為基礎。This functionality is based on the scope of the task sequence that deploys the OS. 在此情況下,工作順序會在所指定使用者與目的電腦之間建立關聯性。In this scenario, the task sequence creates a relationship between the specified users and the destination computer. 接著,其會先等待系統管理使用者核准,然後才部署 OS。It then waits for approval from an administrative user before it deploys the OS.

      • [不使用使用者裝置親和性]****:媒體不會為使用者與目的地電腦建立關聯。Do not allow user device affinity: The media doesn't associate users with the destination computer. 在此案例中,工作順序在部署 OS 時,不會為使用者與目的電腦建立關聯性。In this scenario, the task sequence doesn't associate users with the destination computer when it deploys the OS.

  7. 在 [開機映像]**** 頁面上,指定下列選項:On the Boot image page, specify the following options:

    重要

    您發佈之開機映像的架構必須適用於目的電腦的架構。The architecture of the boot image that you distribute must be appropriate for the architecture of the destination computer. 例如,x64 目的地電腦可以啟動並執行 x86 或 x64 開機映像。For example, an x64 destination computer can boot and run an x86 or x64 boot image. 不過,x86 目的電腦只能開機並執行 x86 開機映像。However, an x86 destination computer can only boot and run an x86 boot image.

    • 開機映像:選取要用來啟動目的電腦的開機映像。Boot image: Select the boot image to start the destination computer.

    • 發佈點:選取具有開機映像的發佈點。Distribution point: Select the distribution point that has the boot image. 精靈會從發佈點擷取開機映像,並將其寫入至媒體。The wizard retrieves the boot image from the distribution point and writes it to the media.

      注意

      您的使用者帳戶至少需要該發佈點上內容庫的 [讀取]**** 權限。Your user account needs at least Read permissions to the content library on the distribution point.

    • 管理點:僅適用於「以站台為基礎的媒體」**,請選取來自主要站台的管理點。Management point: Only for site-based media, select a management point from a primary site.

    • 相關聯的管理點:僅適用於「動態媒體」**,請選取要使用的主要站台管理點,以及適用於初始通訊的優先順序。Associated management points: Only for dynamic media, select the primary site management points to use, and a priority order for the initial communication.

      注意

      當您在此精靈的 [安全性] 頁面上指定 PKI 憑證時,此頁面只會顯示啟用 HTTPS 的管理點。When you specify a PKI certificate on the Security page of this wizard, this page only displays HTTPS-enabled management points.

  8. 在 [自訂]**** 頁面上,指定下列選項:On the Customization page, specify the following options:

    • 加入工作順序會使用的任何變數。Add any variables that the task sequence uses.

    • 啟用啟動前置命令:指定您要在工作順序執行前執行的任何啟動前置命令。Enable prestart command: Specify any prestart commands that you want to run before the task sequence runs. 啟動前置命令是在工作順序執行之前,能夠在 Windows PE 中與使用者互動的指令碼或可執行檔。Prestart commands are a script or an executable that can interact with the user in Windows PE before the task sequence runs. 如需詳細資訊,請參閱工作順序媒體的啟動前置命令For more information, see Prestart commands for task sequence media.

      提示

      在建立媒體時,工作順序會將套件識別碼和啟動前置命令列 (包括任何工作順序變數的值) 寫入執行 Configuration Manager 主控台之電腦的 CreateTSMedia.log 檔案中。During media creation, the task sequence writes the package ID and prestart command-line, including the value for any task sequence variables, to the CreateTSMedia.log file on the computer that runs the Configuration Manager console. 您可以檢閱這個記錄檔來驗證工作順序變數的值。You can review this log file to verify the value for the task sequence variables.

      如果啟動前置命令需要任何內容,請選取 [包含啟動前置命令的檔案]**** 的選項。If the prestart command requires any content, select the option to Include files for the prestart command.

  9. 完成精靈。Complete the wizard.

替代方法Alternate method

當磁碟機未連線到執行 Configuration Manager 主控台的電腦時,可以在卸除式 USB 磁碟機上建立可開機媒體。You can create bootable media on a removable USB drive when the drive isn't connected to the computer running the Configuration Manager console.

  1. 建立工作順序開機媒體Create the task sequence boot media. 在 [媒體類型]**** 頁面上,選取 [CD/DVD 組]****。On the Media type page, select CD/DVD set. 精靈會將輸出檔案寫入您指定的位置。The wizard writes the output files to the location that you specify. 例如: \\servername\folder\outputfile.isoFor example: \\servername\folder\outputfile.iso.

  2. 準備卸除式 USB 磁碟機。Prepare the removable USB drive. 磁碟機必須格式化、清空且可開機。The drive must be formatted, empty, and bootable.

  3. 從共用位置掛接 ISO,並將檔案從 ISO 傳送到 USB 磁碟機。Mount the ISO from the share location and transfer the files from the ISO to the USB drive.

後續步驟Next steps

透過網路使用可開機媒體部署 WindowsUse bootable media to deploy Windows over the network