建立獨立媒體Create stand-alone media

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

Configuration Manager 中的獨立媒體包含在沒有網路連線的電腦上部署 OS 所需的所有內容。Stand-alone media in Configuration Manager contains everything required to deploy the OS on a computer without a network connection.

搭配使用獨立媒體與下列 OS 部署案例:Use stand-alone media with the following OS deployment scenarios:


獨立媒體包含的工作順序會自動安裝作業系統和所有其他必要內容的步驟。Stand-alone media includes the task sequence that automates the steps to install the OS, and all other required content. 此內容包括開機映像、OS 映像及裝置驅動程式。This content includes the boot image, OS image, and device drivers. 由於獨立媒體儲存用於部署 OS 的所有項目,因此它需要比其他類型媒體更多的磁碟空間。Because the stand-alone media stores everything to deploy the OS, it requires more disk space than required for other types of media.

當您在管理中心網站上建立獨立媒體時,用戶端會從 Active Directory 擷取其指派的站台碼。When you create stand-alone media on a central administration site, the client retrieves its assigned site code from Active Directory. 建立於子站台上的獨立媒體會將該站台的站台碼自動指派給用戶端。Stand-alone media created at child sites automatically assigns to the client the site code for that site.


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

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

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

獨立媒體不支援的動作Unsupported actions for stand-alone media

獨立媒體不支援下列動作:The following actions aren't supported for stand-alone media:

  • 工作順序中的 自動套用驅動程式 步驟。The Auto Apply Drivers step in the task sequence. 獨立媒體不支援從驅動程式類別目錄自動套用裝置驅動程式。Stand-alone media doesn't support automatic application of device drivers from the driver catalog. 使用 套用驅動程式套件 步驟可讓 Windows 安裝程式使用一組指定的驅動程式。Use the Apply Driver Package step to make a specified set of drivers available to Windows Setup.

  • 工作順序中的 下載套件內容 步驟。The Download Package Content step in the task sequence. 管理點資訊無法在獨立媒體上使用,因此嘗試列舉內容位置的步驟會失敗。The management point information isn't available on stand-alone media, so the step fails trying to enumerate content locations.

  • 安裝軟體更新。Installing software updates.

  • 在部署 OS 之前安裝軟體。Installing software before deploying the OS.

  • 適用於非 OS 部署的自訂工作順序。Custom task sequences for non-OS deployments.

  • 為使用者與目的地電腦建立關聯,以支援使用者裝置親和性。Associating users with the destination computer to support user device affinity.

  • 動態套件會透過安裝套件步驟進行安裝。Dynamic package installs via the Install Packages step.

  • 動態應用程式會透過安裝應用程式步驟進行安裝。Dynamic application installs via the Install Application step.

  • [設定 Windows 和 ConfigMgr] 工作順序步驟中的 [使用生產前的用戶端封裝 (如可使用)] 設定。The Use pre-production client package when available setting in the Setup Windows and ConfigMgr task sequence step. 如需此設定的詳細資訊,請參閱設定 Windows 和 ConfigMgrFor more information about this setting, see Setup Windows and ConfigMgr.


如果您的工作順序包含安裝套件步驟,而且您在管理中心網站建立獨立媒體,就有可能會發生錯誤。An error might occur if your task sequence includes the Install Package step and you create the stand-alone media at a central administration site. 管理中心網站並沒有必要的用戶端設定原則。The central administration site doesn't have the necessary client configuration policies. 需要這些原則才能在執行工作順序期間啟用軟體發佈代理程式。These policies are required to enable the software distribution agent when the task sequence runs. CreateTsMedia.log 檔案中可能會出現下列錯誤:The following error might appear in the CreateTsMedia.log file:

WMI method SMS_TaskSequencePackage.GetClientConfigPolicies failed (0x80041001)

如果是包含 [安裝套件] 步驟的獨立媒體,請在已啟用軟體發佈代理程式的主要網站上建立獨立媒體。For stand-alone media that includes an Install Package step, create the stand-alone media at a primary site that has the software distribution agent enabled.

或者,請使用自訂的執行命令列步驟。Alternatively, use a custom Run Command Line step. 將它加入至設定 Windows 和 ConfigMgr 步驟之後,以及 [安裝套件] 步驟之前。Add it after the Setup Windows and ConfigMgr step and before the first Install Package step. [執行命令列] 步驟會執行下列 WMIC 命令,在第一個 [安裝套件] 步驟執行之前啟用軟體發佈代理程式:The Run Command Line step runs the following WMIC command to enable the software distribution agent before the first Install Package step:

WMIC /namespace:\\root\ccm\policy\machine\requestedconfig path ccm_SoftwareDistributionClientConfig CREATE ComponentName="Enable SWDist", Enabled="true", LockSettings="TRUE", PolicySource="local", PolicyVersion="1.0", SiteSettingsKey="1" /NOINTERACTIVE

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

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

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

建立輸出資料夾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.


  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 Stand-alone 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. 在 [媒體類型] 頁面上,指定媒體為 [卸除式 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.

      如果您同時部署應用程式與 OS,且該應用程式無法容納在單一媒體上,Configuration Manager 會將該應用程式存放在多個媒體上。If you deploy an application along with the OS, and the application can't fit on a single media, Configuration Manager stores the application across multiple media. 獨立媒體執行時,Configuration Manager 會提示使用者儲存應用程式的下一個媒體。When the stand-alone media is run, Configuration Manager prompts the user for the next media where the application is stored.


      如果您選取現有的 .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 a lot of temporary drive space. 根據預設,這個位置類似於下列路徑:%UserProfile%\AppData\Local\TempBy default this location is similar to the following path: %UserProfile%\AppData\Local\Temp. 從 1902 版開始,為了提升這些暫存檔存放位置的彈性,您可以將此值變更為另一個磁碟機和路徑。Starting in version 1902, to give you greater flexibility with where to store these temporary files, change this value to another drive and path.

    • 媒體標籤Media label:從 1902 版開始,可以將標籤新增至工作順序媒體。: Starting in version 1902, 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.

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

    • 使用密碼保護媒體:輸入強式密碼來協助防範他人未經授權存取媒體。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 media.


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

      在獨立媒體上,系統只會加密工作順序步驟與其變數。On stand-alone media, it only encrypts the task sequence steps and their variables. 系統不會加密其餘的媒體內容。It doesn't encrypt the remaining content of the media. 請不要在工作順序指令碼中包含任何敏感性資訊。Don't include any sensitive information in task sequence scripts. 使用工作順序變數儲存與實作所有敏感資訊。Store and implement all sensitive information by using task sequence variables.

    • 選取此獨立媒體的有效時間範圍:在媒體上設定選擇性的開始和到期日期。Select date range for this stand-alone media to be valid: Set optional start and expiration dates on the media. 預設會停用此設定。This setting is disabled by default. 在獨立媒體執行之前,會將這些日期與電腦上的系統時間進行比較。The dates are compared to the system time on the computer before the stand-alone media runs. 當系統時間早於開始時間或晚於到期時間時,獨立媒體便不會啟動。When the system time is earlier than the start time or later than the expiration time, the stand-alone media doesn't start. 使用 New-CMStandaloneMedia (英文) PowerShell Cmdlet 時也可以使用這些選項。These options are also available by using the New-CMStandaloneMedia PowerShell cmdlet.

  6. 在 [獨立 CD/DVD] 頁面上,選取會部署 OS 的工作順序。On the Stand-Alone CD/DVD page, select the task sequence that deploys the OS. 您只能選取那些與開機映像相關聯的工作順序。You can only select those task sequences that are associated with a boot image. 確認由工作順序參考的內容清單。Verify the list of content referenced by the task sequence.

    • 偵測相關聯的應用程式相依性,並將其新增至此媒體:同時也會針對應用程式相依性將內容新增至媒體。Detect associated application dependencies and add them to this media: Also add content to the media for application dependencies.


      如果您沒有看見預期的應用程式相依性,請取消選取此選項,然後再重新選取它以重新整理清單。If you don't see expected application dependencies, deselect and then reselect this option to refresh the list.

  7. 在 [選取應用程式] 頁面上,指定要包含為媒體檔案之一部分的額外應用程式內容。On the Select Application page, specify additional application content to include as part of the media file.

  8. 在 [選取套件] 頁面上,指定要包含為媒體檔案之一部分的額外套件內容。On the Select Package page, specify additional package content to include as part of the media file.

  9. 在 [選取驅動程式套件] 頁面上,指定要包含為媒體檔案之一部分的額外驅動程式套件內容。On the Select Driver Package page, specify additional driver package content to include as part of the media file.

  10. 在 [發佈點] 頁面上,指定包含必要內容的發佈點。On the Distribution Points page, specify the distribution points that contain the required content.

    Configuration Manager 只會顯示擁有內容的發佈點。Configuration Manager only displays distribution points that have the content. 先將所有與工作順序建立關聯的內容發佈到至少一個發佈點,才能繼續。Distribute all of the content associated with the task sequence to at least one distribution point before you continue. 發佈內容之後,重新整理發佈點清單。After you distribute the content, refresh the distribution point list. 移除您已在這個頁面上選取的任何發佈點、移至上一頁,然後回到 [發佈點] 頁面。Remove any distribution points that you already selected on this page, go to the previous page, and then back to the Distribution Points page. 或者,重新啟動精靈。Alternatively, restart the wizard. 如需詳細資訊,請參閱發佈工作順序所參考的內容管理內容與內容基礎結構For more information, see Distribute content referenced by a task sequence and Manage content and content infrastructure.

  11. 在 [自訂] 頁面上,指定下列選項: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.

  12. 完成精靈。Complete the wizard.

獨立媒體檔案 (.ISO) 已於目的地資料夾中建立。The stand-alone media files (.ISO) are created in the destination folder. 如果您已選取 [CD/DVD 集] ,請將輸出檔案複製到一組 CD 或 DVD。If you selected CD/DVD set, copy the output files to a set of CDs or DVDs.

後續步驟Next steps

使用獨立媒體,而不使用網路來部署 WindowsUse stand-alone media to deploy Windows without using the network