配置任务序列的预先缓存内容Configure pre-cache content for task sequences

适用范围:Configuration Manager (Current Branch)Applies to: Configuration Manager (current branch)

对于任务序列的可用部署,可使用预先缓存功能让客户端在用户安装任务序列之前下载相关内容。The pre-cache feature for available deployments of task sequences lets clients download relevant content before a user installs the task sequence. 客户端可以预先缓存升级 OS安装 OS 映像的任务序列的内容。The client can pre-cache content for task sequences that upgrade an OS or install an OS image.

备注

在版本 1910 中,Configuration Manager 默认启用此功能。In version 1910, Configuration Manager enables this feature by default. 在版本 1906 或更早版本中,Configuration Manager 默认不启用此项可选功能。In version 1906 or earlier, Configuration Manager doesn't enable this optional feature by default. 必须在使用前启用此功能。You must enable this feature before using it. 有关详细信息,请参阅启用更新中的可选功能For more information, see Enable optional features from updates.

例如,仅需为所有用户提供就地升级任务序列,并拥有许多体系结构和语言。For example, you only want a single in-place upgrade task sequence for all users, and have many architectures and languages. 在以前的版本中,当用户从软件中心安装可用的任务序列部署时,就会开始下载内容。In previous versions, the content starts to download when the user installs an available task sequence deployment from Software Center. 此延迟在安装准备启动之前增加了额外时间。This delay adds additional time before the installation is ready to start. 将下载任务序列中引用的所有内容。All content referenced in the task sequence is downloaded. 此内容包括所有语言和体系结构的 OS 升级包。This content includes the OS upgrade package for all languages and architectures. 如果每个升级包的大小约 3 GB,总内容会非常大。If each upgrade package is roughly 3 GB in size, the total content is very large.

借助预先缓存内容,可选择让客户端在收到部署后仅下载适用的内容以及引用的所有其他内容。Pre-cache content gives you the option for the client to only download the applicable content and all other referenced content as soon as it receives the deployment. 在用户单击软件中心内的“安装”时,内容便准备就绪。When the user clicks Install in Software Center, the content is ready. 安装可以快速启动,因为内容位于本地硬盘上。The installation starts quickly because the content is on the local hard drive.

在 Configuration Manager 版本 1902 及更低版本中,此行为仅适用于 OS 升级包。In Configuration Manager version 1902 and earlier, this behavior only applies to the OS upgrade package. 该包是你指定匹配体系结构或语言的唯一内容。That package is the only content on which you specify the matching architecture or language. 例如,如果任务序列还引用多个驱动程序包,则客户端会下载所有驱动程序包。For example, if the task sequence also references multiple driver packages, the client downloads them all. 任务序列引擎在运行任务序列时(而不是提前)评估步骤条件。The task sequence engine evaluates the conditions on the steps when the task sequence runs, not in advance. 客户端使用包属性上的标记来确定要预缓存的内容。The client uses the tags on the package properties to determine which content to pre-cache.

从版本 1906 开始,Starting in version 1906, 可以使用预先缓存来减少以下内容类型的带宽消耗:you can use pre-caching to reduce bandwidth consumption of the following content types:

  • OS 升级包OS upgrade packages
  • OS 映像OS images
  • 驱动程序包Driver packages
  • Packages

配置预先缓存Configure pre-caching

可通过三个步骤配置预先缓存功能:There are three steps to configure the pre-cache feature:

  1. 创建和配置包Create and configure the packages
  2. 使用条件步骤创建任务序列Create a task sequence with conditional steps
  3. 部署任务序列并启用预先缓存Deploy the task sequence and enable pre-caching

1.创建和配置包1. Create and configure the packages

客户端可评估包的特性,以确定其在预先缓存过程中下载的内容。The client evaluates attributes of the packages to determine which content it downloads during pre-caching.

OS 升级包OS upgrade package

创建特定体系结构和语言的 OS 升级包Create OS upgrade packages for specific architectures and languages. 在包属性的“数据源”选项卡上指定“体系结构”和“语言”。Specify the Architecture and Language on the Data Source tab of its properties.

OS 映像OS image

创建特定体系结构和语言的 OS 映像Create OS images for specific architectures and languages. 在包属性的“数据源”选项卡上指定“体系结构”和“语言”。Specify the Architecture and Language on the Data Source tab of its properties.

驱动程序包Driver package

创建特定硬件模型的驱动程序包Create driver packages for specific hardware models. 在包属性的“常规”选项卡上指定“模型” 。Specify the Model on the General tab of its properties.

为了确定在预缓存期间下载哪个驱动程序包,客户端根据 Win32_ComputerSystemProduct WMI 类的“名称”属性评估模型。 To determine which driver package it downloads during pre-caching, the client evaluates the model against the Name property of the Win32_ComputerSystemProduct WMI class.

提示

实际查询使用带有通配符的 LIKE 语句:select * from win32_computersystemproduct where name like "%yourstring%"The actual query uses a LIKE statement with wildcards: select * from win32_computersystemproduct where name like "%yourstring%". 例如,如果将 Surface 指定为模型,则查询可与包含该字符串的所有模型匹配。For example, if you specify Surface as the model, the query matches all models that include that string.

Package

创建特定体系结构和语言的Create packages for specific architectures and languages. 在包属性的“常规”选项卡上指定“体系结构”和“语言”。Specify the Architecture and Language on the General tab of its properties.

2.创建任务序列2. Create a task sequence

为不同的语言和体系结构或驱动程序包的不同硬件型号创建具有条件步骤的任务序列。Create a task sequence with conditional steps for the different languages and architectures, or different hardware models for driver packages.

ContentContent 步骤Step
OS 升级包OS upgrade package 升级 OSUpgrade OS
OS 映像OS image 应用 OS 映像Apply OS Image
驱动程序包Driver package 应用驱动程序包Apply Driver Package
Package 安装包Install Package

例如,以下“升级 OS”步骤使用英语版本:For example, the following Upgrade OS step uses the English version:

显示 ENU、DEU 和 JPN 的多个升级 OS 步骤的任务序列编辑器

任务序列编辑器,“选项”选项卡,显示区域设置和 OSArchitecture 的 WMI WQL 查询

提示

建议为英语(美国)OS 和 64 位体系结构使用以下 WMI 查询:The following WMI query is recommended for the English (United States) OS and 64-bit architecture:

SELECT * FROM Win32_OperatingSystem WHERE OSArchitecture LIKE '%64%' AND OSLanguage='1033'

首先,通过选择“操作系统语言”条件来添加语言。First add the language by selecting the Operating System Language condition. 然后编辑 WMI 查询以包括体系结构子句。Then edit the WMI query to include the architecture clause.

3.部署任务序列3. Deploy the task sequence

部署任务序列Deploy the task sequence. 对于预先缓存功能,请配置以下设置:For the pre-cache feature, configure the following settings:

  • 在“常规”选项卡上,选择“此任务序列的预下载内容”。On the General tab, select Pre-download content for this task sequence.

  • 在“部署设置”选项卡上,将任务序列配置为“可用” 。On the Deployment settings tab, configure the task sequence as Available.

  • 在“计划”选项卡上的“当此部署可用时进行计划”设置处,选择当前所选时间 。On the Scheduling tab, choose the currently selected time for the setting, Schedule when this deployment will be available. 客户端在部署的可用时间预先缓存内容。The client starts pre-caching content at the deployment's available time. 目标客户端收到此策略时,可用时间是过去的时间,因此预先缓存下载会立即开始。When a targeted client receives this policy, the available time is in the past, thus pre-cache download starts right away. 如果客户端收到此策略,但可用时间是将来的时间,则客户端在可用时间之前不会开始预先缓存内容。If the client receives this policy but the available time is in the future, the client doesn't start pre-caching content until the available time occurs.

  • 在“分发点”选项卡上,配置“部署选项”设置。On the Distribution Points tab, configure the Deployment options settings. 如果用户开始安装前没有预先缓存内容,则客户端使用这些设置。If the content isn't pre-cached before a user starts the installation, the client uses these settings.

    重要

    对于安装 OS 映像的任务序列,请不要使用部署选项“运行中的任务序列需要时,从本地下载内容”。For a task sequence that installs an OS image, don't use the deployment option to Download content locally when needed by the running task sequence. 当任务序列在应用 OS 映像之前擦除磁盘时,会删除客户端缓存。When the task sequence wipes the disk before it applies the OS image, it removes the client cache. 由于内容已消失,任务序列失败。Since the content is gone, the task sequence fails. 这些部署选项是动态的,基于你为部署选择的其他选项。These deployment options are dynamic based on other options you select for the deployment. 有关详细信息,请参阅 Deploy a task sequenceFor more information, see Deploy a task sequence.

用户体验User experience

  • 客户端收到部署策略时,将在部署的可用时间之后开始预缓存内容。When the client receives the deployment policy, it starts to pre-cache the content after the deployment's available time. 此内容包含引用的所有包,但仅包含与包上的体系结构和语言属性相匹配的 OS 升级包。This content includes all referenced packages, but only the OS upgrade package that matches the architecture and language attributes on the package.

  • 当客户端使部署可供用户使用时,将显示一条通知,告知用户有关新部署的信息。When the client makes the deployment available to users, a notification displays to inform users about the new deployment. 现在,任务序列在软件中心内可见。Now the task sequence is visible in Software Center. 用户可转到软件中心并单击“安装”以开始安装。The user can go to Software Center and click Install to start the installation.

  • 如果用户安装任务序列时客户端没有完全预先缓存内容,则客户端使用部署的“部署选项”选项卡上指定的设置。If the client hasn't fully pre-cached the content when the user installs the task sequence, then the client uses the settings that you specify on the Deployment Option tab of the deployment.

另请参阅See also