Mem Configmgr Osd
Mem Configmgr Osd
OS deployment documentation
Use Configuration Manager to deploy Windows via different methods and automate
tasks.
About OS deployment
e OVERVIEW
Introduction to OS deployment
Infrastructure requirements
p CONCEPT
OS deployment scenarios
OS deployment methods
Get started
c HOW-TO GUIDE
Technical reference
i REFERENCE
Identify Windows device drivers that are required to start the boot image or install
the operating system image that you have to deploy.
Identify the boot image that you want to use to start the destination computer.
Use a task sequence to capture an image of the operating system that you will
deploy. Alternatively, you can use a default operating system image.
Distribute the boot image, operating system image, and any related content to a
distribution point.
Create a task sequence with the steps to deploy the boot image and the operating
system image.
Bootable media deployments: Bootable media deployments let you deploy the
operating system when the destination computer starts. When the destination
computer starts, it retrieves the task sequence, the operating system image, and
any other required content from the network. Because that content is not included
on the media, you can update the content without having to re-create the media.
For more information, see Create bootable media.
Later in the Configuration Manager environment, the computer starts by using the
boot image provided by the media, and then connects to the site management
point for available task sequences that complete the download process. This
method of deployment can reduce network traffic because the boot image and
operating system image are already on the destination computer. You can specify
applications, packages, and driver packages to include in the pre-staged media.
For more information, see Create prestaged media.
Boot images
A boot image in Configuration Manager is a Windows PE (WinPE) image that is used
during an operating system deployment. Boot images are used to start a computer in
WinPE, which is a minimal operating system with limited components and services that
prepare the destination computer for Windows installation. Configuration Manager
provides two boot images: One to support x86 platforms and one to support x64
platforms. These are considered default boot images. Boot images that you create and
add to Configuration Manager are considered custom images. Default boot images can
be automatically replaced when you update Configuration Manager. For more
information about boot images, see Manage boot images.
Device drivers
You can install device drivers on destination computers without including them in the
operating system image that is being deployed. Configuration Manager provides a
driver catalog that contains references to all the device drivers that you import into
Configuration Manager. The driver catalog is located in the Software Library workspace
and consists of two nodes: Drivers and Driver Packages. The Drivers node lists all the
drivers that you have imported into the driver catalog. You can use this node to discover
the details about each imported driver, to change what driver package or boot image a
driver belongs to, to enable or disable a driver, and more. For more information, see
Manage drivers.
You can store the user state data remotely by configuring a state migration point.
The Capture task sequence sends the data to the state migration point. Then, after
the operating system is deployed, the Restore task sequence retrieves the data and
restores the user state on the destination computer.
You can store the user state data locally to a specific location. In this scenario, the
Capture task sequence copies the user data to a specific location on the
destination computer. Then, after the operating system is deployed, the Restore
task sequence retrieves the user data from that location.
You can specify hard links that can be used to restore the user data to its original
location. In this scenario, the user state data remains on the drive when the old
operating system is removed. Then, after the operating system is deployed, the
Restore task sequence uses the hard links to restore the user state data to its
original location.
Windows ADK
The Windows Assessment and Deployment Kit (ADK) is a set of tools and
documentation that support the configuration and deployment of Windows.
Configuration Manager uses the Windows ADK to automate actions such as installing
Windows, capturing images, and migrating user profiles and data.
) Important
Make sure to download both the Windows ADK and the Windows PE add-on
for the ADK.
Site systems
The Windows ADK is a prerequisite for the following site systems servers:
The site server of the top-level site in the hierarchy
7 Note
Manually install the Windows ADK on each site server before you install the
Configuration Manager site.
7 Note
) Important
For a list of the versions of the Windows ADK that you can use with different versions of
Configuration Manager, see Support for the Windows ADK.
Windows PE
Windows PE is used for boot images to start a computer. It's a Windows version with
limited services that's used during the pre-installation and deployment of Windows. For
more information about boot images, see Manage boot images.
OS image
OS images in Configuration Manager are stored in the Windows Imaging (WIM) file
format. They represent a compressed collection of reference files and folders. These
images are required to successfully install and configure an OS on a computer. For more
information, see Manage OS images.
Driver catalog
To deploy a device driver, import the device driver, enable it, and make it available on a
distribution point that the Configuration Manager client can access. For more
information about the driver catalog, see Manage drivers.
Management point
Management points transfer information between clients and the Configuration
Manager site. The client uses a management point to run the task sequence to complete
the OS deployment. For more information about task sequences, see Planning
considerations for automating tasks.
Distribution point
Distribution points are used in most deployments to store the data that's used to deploy
an OS, such as the image or driver packages. Task sequences typically retrieve data from
a distribution point to deploy the OS. For more information about how to install
distribution points and manage content, see Manage content and content infrastructure.
For more about how to configure the state migration point, see State migration point.
For more information about how to capture and restore user state, see Manage user
state.
Boot Image Package: Create, Delete, Modify, Modify Folder, Move Object, Read,
Set Security Scope
Device Drivers: Create, Delete, Modify, Modify Folder, Modify Report, Move
Object, Read, Run Report
Driver Package: Create, Delete, Modify, Modify Folder, Move Object, Read, Set
Security Scope
Operating System Image: Create, Delete, Modify, Modify Folder, Move Object,
Read, Set Security Scope
Operating System Upgrade Package: Create, Delete, Modify, Modify Folder, Move
Object, Read, Set Security Scope
Task Sequence Package: Create, Create Task Sequence Media, Delete, Modify,
Modify Folder, Modify Report, Move Object, Read, Run Report, Set Security Scope
You can also enable PXE on a distribution point without WDS. For more information, see
the Enable a PXE responder without Windows Deployment Service option in Install
and configure distribution points.
WDS requirements
The WDS installation on the server requires that the administrator is a member of
the local Administrators group.
If the provider is installed on a remote server, install WDS on the site server and
the remote provider.
7 Note
Port 67 (DHCP)
Port 69 (TFTP)
7 Note
If DHCP authorization is required on the server, you need DHCP client port
68 to be open on the server.
DHCP and WDS both require port number 67. If you co-host WDS and DHCP, you
can move DHCP or the distribution point that's configured for PXE to a separate
server. Or, you can use the following procedure to configure the WDS server to
listen on a different port.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WDSServer\Providers\WDSP
XE
3. For the new configuration to take effect, run the following command on the server:
7 Note
When you enable a PXE responder on a distribution point without WDS, it can be
on the same server as the DHCP service. For more information, see Configure at
least one distribution point to accept PXE requests.
Supported operating systems
All Windows operating systems listed as supported clients in Supported operating
systems for clients and devices are supported for OS deployment.
Spanned volumes
If the reference disk has a basic disk, you can't capture and apply the image to a
destination computer with a dynamic disk.
Next steps
Prepare site system roles for OS deployments
Prepare for OS deployment
Plan for automating tasks in
Configuration Manager
Article • 10/04/2022
You can create task sequences to automate tasks in your Configuration Manager
environment. These tasks range from capturing an OS on a reference computer to
deploying the OS to one or more destination computers. The actions of the task
sequence are defined in the individual steps of the sequence. When the task sequence
runs, it runs the actions of each step at the command-line level in the Local System
context. This behavior means the task sequence runs fully automated with no user
intervention.
The actions of the step define the commands of a task sequence step. There are two
types of actions:
Task sequence steps can also include conditions that control how the step behaves.
These behaviors include stopping the task sequence, or continuing the task sequence if
an error occurs. One type of condition is a task sequence variable. For example, use the
SMSTSLastActionRetCode variable to test the condition of the previous step. Add
conditions to a single step or a group of steps.
The task sequence processes steps sequentially. This sequence includes the action of the
step and any conditions on the step. When Configuration Manager starts to process a
task sequence step, it doesn't start the next step until the previous action is complete.
For example, if the step of a task sequence can't locate a referenced image or package
on a distribution point, the task sequence includes a broken reference. Configuration
Manager stops running the task sequence at that point, unless the failed step has a
condition to continue when an error occurs.
) Important
By default, a task sequence fails after one step or action fails. If you want the task
sequence to continue even when a step fails, edit the task sequence, switch to the
Options tab, and then select Continue on error.
For more information about the steps that can be added to a task sequence, see Task
sequence steps.
Assign a name to task sequence groups. It doesn't have to be unique. You can also
provide an optional description for the task sequence group.
) Important
By default, a task sequence group fails when any step or embedded group within
the group fails. If you want the task sequence to continue when a step or
embedded group fails, set the Continue on error option on the step or group.
The following table shows how the Continue on error option works when you group
steps.
In this example, there are two groups of task sequences that include three task
sequence steps each.
If task sequence step 1 fails, the task sequence continues with task sequence step
2.
If task sequence step 2 fails, the task sequence doesn't run task sequence step 3.
Because task sequence group 1 is configured to Continue on error, the task
sequence continues to task sequence group 2. It runs task sequence step 4 next.
If task sequence step 4 fails, no more steps are run. The task sequence fails
because the Continue on error setting isn't configured for task sequence group 2.
7 Note
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.
Task sequence variables
Task sequence variables are a set of name and value pairs. They supply configuration
and OS deployment settings for computer, OS, and user state configuration tasks on a
Configuration Manager client. Task sequence variables provide a mechanism to
configure and customize the steps in a task sequence.
When you run a task sequence, it stores many of the task sequence settings as
environment variables. You can access or change the values of built-in task sequence
variables. You can also create new task sequence variables to customize the way a task
sequence runs on a destination computer.
Evaluate a condition that determines whether a task sequence step or group runs
For example, you have a task sequence that includes a Join Domain or Workgroup task
sequence step. Deploy the task sequence to different collections, where the membership
of the collection is determined by domain membership. Specify a per-collection task
sequence variable for each collection's domain name. Then use that task sequence
variable to supply the appropriate domain name in the task sequence.
) Important
If the task sequence has any unassociated references to an object as a result of the
edit, the editor requires you fix the reference before it can close. Possible actions
include:
For more information about how to edit task sequences, see Use the task sequence
editor.
) Important
Each destination computer that receives the task sequence runs the task sequence
according to the settings specified in the deployment. The task sequences itself doesn't
contain associated files or programs. Any files that a task sequence references must
already be present on the destination computer or stored on a distribution point that
clients can access.
7 Note
The task sequence installs packages that are referenced by programs, even if the
program or package is already installed on the destination computer.
If the task sequence installs an application, the application installs only if the
requirement rules for the application are met, and the application isn't already
installed, based on the detection method that's specified for the application.
The Configuration Manager client runs a task sequence deployment when it downloads
client policy. To trigger this action rather than wait until the next polling cycle, see
Initiate policy retrieval for a Configuration Manager client.
When you deploy task sequences to Windows Embedded devices that are enabled with
a write filter, you can specify whether to disable the write filter on the device during the
deployment and then restart the device after the deployment. If the write filter isn't
disabled, the task sequence is deployed to a temporary overlay and it won't be available
when the device restarts.
7 Note
When you deploy a task sequence to a Windows Embedded device, ensure that the
device is a member of a collection that has a configured maintenance window. This
allows you to manage when the write filter is disabled and enabled, and when the
device restarts.
7 Note
The task sequence step Run Command Line provides the ability to run a command
as a different account.
If you configure a task sequence deployment to download and run, the Configuration
Manager client downloads all dependent content to its cache. If the client cache size is
too small or the content can't be found, the task sequence fails. The client generates a
status message.
You can also specify that the client downloads the content only when it's required. To do
this action, select Download content locally when needed by running task sequence in
the task sequence deployment. Another option is to Run program from distribution
point. With this option, the client installs the files directly from the distribution point
without downloading them into the cache first.
When you configure the task sequence deployment as Available, if the client can't
locate dependent content for the task sequence, it immediately sends an error. For a
Required deployment, the Configuration Manager client waits in this situation. It retries
to download the content until the deadline, in case the content isn't yet replicated to a
content location that the client can access.
) Important
If a task sequence step requires the computer to restart, the client must be able to
boot to a formatted disk partition. Otherwise, the task sequence fails regardless of
any error handling that you specify in the task sequence.
When a dependent object of a task sequence is updated to a newer version, any task
sequence that references the package is automatically updated. It references the newest
version, no matter how many updates you've deployed.
) Important
When you configure a maintenance window to run a task sequence, once the task
sequences starts it continues to run even if the maintenance window closes.
If a device has more than one maintenance window applied, the client may ignore an All
deployments maintenance window. Starting in version 1810, use the following client
setting to control this behavior: Enable installation of software updates in "All
deployments" maintenance window when "Software Update" maintenance window is
available. For more information, see About client settings
) Important
Some OS deployment scenarios don't require use of the network access account.
For more information, see Enhanced HTTP.
Although task sequences run only in the context of the Local System account, you might
need to configure the network access account in the following circumstances:
7 Note
The network access account is never used as the security context for running
programs, installing applications, installing updates, or running task sequences. The
network access account is only used to access the associated resources on the
network.
For more information about the network access account, see Network access account.
Enhanced HTTP
When you enable Enhanced HTTP, the following scenarios don't require a network
access account to download content from a distribution point:
These task sequences can be for OS deployment or custom. It's also supported for
workgroup computers.
7 Note
The following OS deployment scenarios still require the use of a network access
account:
Create media
You can write task sequences and their related files and dependencies to several types
of media. Configuration Manager supports removable media such as a DVD or a USB
flash drive for capture, stand-alone, and bootable media. Prestaged media uses a
Windows image (WIM) file.
When you create media, specify a password to control access. Then a person must enter
the password at the target computer to run the task sequence.
When you run a task sequence from media, the specified processor architecture of the
media isn't recognized. If the specified architecture doesn't match the target computer,
the task sequence still attempts to run. If the architecture of the media doesn't match
the architecture of the target computer, the task sequence fails.
Media types
Configuration Manager supports the following types of media:
Capture media
This media captures an OS image that you configure and create outside of the
Configuration Manager infrastructure. Capture media can contain custom programs that
can run before a task sequence runs. The custom program can interact with the desktop,
prompt the user for input values, or create variables to be used by the task sequence.
Stand-alone media
Stand-alone media contains the task sequence and all associated objects that are
necessary for the task sequence to run. Stand-alone media task sequences can run when
Configuration Manager has limited or no connectivity to the network. Run stand-alone
media in the following ways:
If the destination computer isn't booted, the Windows PE image associated with
the task sequence is used from the stand-alone media, and the task sequence
begins.
Manually start the stand-alone media. If a user is signed in to the computer, they
can initiate the task sequence from the media.
) Important
The steps of a stand-alone media task sequence must be able to run without
retrieving any data from the network. Otherwise, the task sequence step that tries
to retrieve the data fails. For example, a task sequence step that requires a
distribution point to obtain a package fails. If the stand-alone media contains the
necessary package, the task sequence step succeeds.
Bootable media
Bootable media contains the required files to start a destination computer so that it can
connect to the Configuration Manager infrastructure. It then determines which task
sequences to run based on its collection memberships. This media doesn't include the
task sequence or dependent objects. Instead, the client downloads the content over the
network. This method is useful for new computers or bare-metal deployments, when no
OS is on the destination computer.
Prestaged media
This scenario applies to all supported versions of Windows client and Windows Server.
This scenario applies to all supported versions of Windows client and Windows Server.
For more information, see Refresh an existing computer with a new version of Windows.
This scenario applies to all supported versions of Windows client and Windows Server.
For more information, see Install a new version of Windows on a new computer (bare
metal).
This scenario applies to all supported versions of Windows client and Windows Server.
For more information, see Replace an existing computer and transfer settings.
Upgrade Windows to the latest version
with Configuration Manager
Article • 10/04/2022
This article provides the steps in Configuration Manager to upgrade the Windows OS on
a computer. You can choose from different deployment methods, such as stand-alone
media or Software Center. The in-place upgrade scenario has the following features:
7 Note
Starting in version 2103, you can upgrade by using a feature update deployed with the
task sequence. This integration combines the simplicity of Windows servicing with the
flexibility of task sequences. Servicing uses content that you synchronize through the
software update point. This process simplifies the need to manually get, import, and
maintain the Windows image content used with a standard task sequence to upgrade
Windows. The size of the servicing ESD file is generally smaller than the OS upgrade
package and WIM image file. You can also use Windows features such as Dynamic
Update and Delivery Optimization. The user experience with a feature update in a task
sequence is the same as with an OS upgrade package.
Supported versions
Upgrade version
Only create OS upgrade packages to upgrade to the following OS versions:
Windows 11
Windows 10
Windows Server 2016
Windows Server 2019
Windows Server 2022
Original version
Devices must run one of the following OS versions to target an OS upgrade task
sequence:
Windows client
Windows 7
Windows 8.1
An earlier version of Windows 10 or Windows 11. For example, you can upgrade
Windows 10, version 2004 to Windows 10, version 21H1.
7 Note
Windows Server
For more information about Windows Server supported upgrade paths, see Windows
Server 2016 supported upgrade paths and Windows Server Upgrade Center.
Plan
Task sequence requirements and limitations
Review the following requirements and limitations for the task sequence to upgrade an
OS to make sure it meets your needs:
Only add task sequence steps that are related to the core task of upgrading the
OS. These steps primarily include installing packages, applications, or updates. Also
use steps that run command lines, PowerShell, or set dynamic variables.
Review drivers and applications that are installed on computers. Before you deploy
the upgrade task sequence, make sure the drivers are compatible with the target
version of Windows.
The following tasks aren't compatible with the in-place upgrade. They require you to use
traditional OS deployments:
You have custom requirements including using a custom base image, using third-
party disk encryption, or require WinPE offline operations.
Infrastructure requirements
The only infrastructure prerequisite for the upgrade scenario is to have a distribution
point available. Distribute the OS upgrade package or feature update, and any other
content that you include in the task sequence. For more information, see Install or
modify a distribution point.
Starting in version 2103, if you use a feature update with a Windows upgrade task
sequence, you need a software update point to synchronize the Upgrades classification.
For more information, see Install and configure a software update point.
Configure
Prepare the OS upgrade package
The Windows upgrade package contains the source files necessary to upgrade the OS
on the destination computer. The upgrade package must be the same edition,
architecture, and language as the clients that you upgrade. For more information, see
Manage OS upgrade packages.
7 Note
In version 2103 or later, if you use a feature update with a Windows upgrade task
sequence, you don't need the OS upgrade package.
7 Note
To create a task sequence to upgrade Windows, you typically use the steps in
Create a task sequence to upgrade an OS. The task sequence includes the
Upgrade OS step, as well as additional recommended steps and groups to handle
the end-to-end upgrade process.
You can create a custom task sequence and add the Upgrade OS step. This step is
the only one required to upgrade Windows. If you choose this method, to complete
the upgrade, also add the Restart Computer step after the Upgrade OS step. Make
sure to use the setting for The currently installed default operating system to
restart the computer into the installed OS and not Windows PE.
Next steps
First create a task sequence to upgrade an OS.
Then deploy the task sequence with one of the following deployment methods:
When you use stand-alone media, you must include a boot image in the task
sequence. This configuration makes the task sequence available in the Task
Sequence Media Wizard.
To monitor the task sequence deployment to upgrade the OS, see Monitor OS
deployments.
Windows Autopilot deployment for
existing devices
Article • 08/10/2023
Applies to:
Windows 11
Windows 10
Modern desktop deployment with Windows Autopilot helps you easily deploy the latest
version of Windows to your existing devices. The apps you need for work can be
automatically installed. If you manage Windows user data with OneDrive for Business,
your data is synchronized, so users can resume working right away.
Windows Autopilot for existing devices lets you reimage and provision a Windows
device for Autopilot user-driven mode using a single, native Configuration Manager task
sequence. The existing device can be on-premises domain-joined. The end result is a
Windows 10 or Windows 11 device joined to either Azure Active Directory (Azure AD) or
Active Directory (hybrid Azure AD join).
7 Note
The JSON file for Windows Autopilot for existing devices only supports user-driven
Azure AD and user-driven hybrid Azure AD Autopilot profiles. Self-deploying and
pre-provisioning Autopilot profiles aren't supported with JSON files due to these
scenarios requiring TPM attestation.
However, during the Windows Autopilot for existing devices deployment, if the
following conditions are true:
then the assigned Autopilot profile takes precedence over the JSON file installed by
the task sequence. In this scenario, if the assigned Autopilot profile is either a self-
deploying or pre-provisioning Autopilot profile, then the self-deploying and pre-
provisioning scenarios are supported.
Tip
Using Autopilot for existing devices could be used as a method to convert existing
hybrid Azure AD devices into Azure AD devices. Using the setting Converting all
targeted devices to Autopilot in the Autopilot profile doesn't automatically convert
existing hybrid Azure AD device in the assigned group(s) into an Azure AD device.
The setting only registers the devices in the assigned group(s) for the Autopilot
service.
Prerequisites
A currently supported version of Microsoft Configuration Manager current branch.
Assigned Microsoft Intune licenses.
Azure AD Premium.
A supported version of Windows 10 or Windows 11 imported into Configuration
Manager as an OS image.
7 Note
Typically, the target device isn't registered with the Windows Autopilot service. If
the device is already registered, the assigned profile takes precedence. The
Autopilot for existing devices profile only applies if that the online profile times out.
2. Go to Devices > Enroll Devices > Windows enrollment > Enrollment Status Page
and Set up the Enrollment Status Page.
3. Go to Azure Active Directory > Mobility (MDM and MAM) > Microsoft Intune
and enable Windows automatic enrollment. Configure the MDM user scope for
some or all users.
Tip
7 Note
The PowerShell code snippets in this section were updated in July of 2023 to use
the Microsoft Graph PowerShell modules instead of the deprecated AzureAD Graph
PowerShell modules. The Microsoft Graph PowerShell modules may require
approval of additional permissions in Azure AD when they're first used. It was also
updated to force using an updated version of the WindowsAutoPilot module. For
more information, see AzureAD and Important: Azure AD Graph Retirement and
PowerShell Module Deprecation .
2. Enter the following commands to install and import the necessary modules:
PowerShell
Make sure the user account you specify has sufficient administrative rights.
PowerShell
Windows requests the user and password for your account with a standard Azure
AD form. Type your username and password, and then select Sign in.
The first time Intune Graph APIs are used on a device, it prompts to enable
Microsoft Intune PowerShell read and write permissions. To enable these
permissions, select Consent on behalf or your organization and then Accept.
PowerShell
Get-AutopilotProfile | ConvertTo-AutopilotConfigurationJSON
PowerShell
Each profile is encapsulated within braces ( { } ). The previous example displays a single
profile.
Version
(Number, optional)
The version number that identifies the format of the JSON file.
CloudAssignedTenantId
(GUID, required)
The Azure AD tenant ID that should be used. This property is the GUID for the tenant,
and can be found in properties of the tenant. The value shouldn't include braces.
CloudAssignedTenantDomain
(String, required)
The Azure AD tenant name that should be used. For example: tenant.onmicrosoft.com .
CloudAssignedOobeConfig
(Number, required)
This property is a bitmap that shows which Autopilot settings were configured.
1: SkipCortanaOptIn
2: OobeUserNotLocalAdmin
4: SkipExpressSettings
8: SkipOemRegistration
16: SkipEula
CloudAssignedDomainJoinMethod
(Number, required)
This property specifies whether the device should join Azure AD or Active Directory
(hybrid Azure AD join).
0: Azure AD-joined
1: Hybrid Azure AD-joined
CloudAssignedForcedEnrollment
(Number, required)
Specifies that the device should require Azure AD join and MDM enrollment.
0: Not required
1: required
ZtdCorrelationId
(GUID, required)
A unique GUID (without braces) that's provided to Intune as part of the registration
process. This ID is included in the enrollment message as the
OfflineAutopilotEnrollmentCorrelator . This attribute is present only if enrollment
happens on a device registered with Zero Touch Provisioning via offline registration.
CloudAssignedAadServerData
(Encoded JSON string, required)
An embedded JSON string used for branding. It requires that you enable Azure AD
organization branding.
For example:
"CloudAssignedAadServerData": "{\"ZeroTouchConfig\":
{\"CloudAssignedTenantUpn\":\"\",\"CloudAssignedTenantDomain\":\"tenant.onmicrosoft
.com\"}}
CloudAssignedDeviceName
(String, optional)
The name that's automatically assigned to the computer. This name follows the naming
pattern convention configured in the Intune Autopilot profile. You can also specify an
explicit name to use.
but it can be changed to another location if desired. The subfolder has the name of the
Autopilot profile from Intune. If there are multiple Autopilot profiles, each profile has its
own subfolder. In each folder, there's a JSON file named
AutopilotConfigurationFile.json
PowerShell
Tip
If you use the PowerShell cmdlet Out-File to redirect the JSON output to a file, it
uses Unicode encoding by default. This cmdlet may also truncate long lines. Use
the Set-Content cmdlet with the -Encoding ASCII parameter to set the proper text
encoding.
) Important
You can also save the profile to a text file and edit in Notepad. In Notepad, when you
choose Save as, select the save as type: All Files, and then choose ANSI for the
Encoding.
After you save the file, move it to a location for a Microsoft Configuration Manager
package source.
) Important
The configuration file can only contain one profile. You can use multiple JSON
profile files, but each one must be named AutopilotConfigurationFile.json . This
requirement is for OOBE to follow the Autopilot experience. To use more than one
Autopilot profile, create separate Configuration Manager packages.
If you save the file with Unicode or UTF-8 encoding, or save it with a different file
name, the Windows OOBE won't follow the Autopilot experience.
4. For the program, select the Program Type: Don't create a program
7 Note
If you change user-driven Autopilot profile settings in Intune at a later date, make
sure to update the JSON file. Then redistribute the associated Configuration
Manager package.
7 Note
2. On the ribbon, select Create, and then choose Create Device Collection.
3. In the Create Device Collection Wizard, enter the following General details:
7 Note
You can optionally choose to use an alternative collection for the limiting
collection. The device to be upgraded must be running the
Configuration Manager client in the collection that you select.
4. On the Membership Rules page, select Add Rule. Specify either a direct or query-
based collection rule to add the target Windows devices to the new collection.
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:
a. Select Add Rule, select Direct Rule to open the Create Direct Membership Rule
Wizard, and select Next on the Welcome page.
3. On the Create new task sequence page, select the option to Deploy Windows
Autopilot for existing devices.
A name for the task sequence. For example, Autopilot for existing devices.
Optionally add a description to better describe the task sequence.
Select a boot image. For more information on supported boot image
versions, see Support for the Windows ADK in Configuration Manager.
5. On the Install Windows page, select the Windows Image package. Then configure
the following settings:
Image index: Select either Enterprise, Education, or Professional, as required
by your organization.
Enable the option to Partition and format the target computer before
installing the operating system.
Configure task sequence for use with Bitlocker: If you enable this option, the
task sequence includes the steps necessary to enable BitLocker.
Product key: If you need to specify a product key for Windows activation,
enter it here.
) Important
The Autopilot for existing devices task sequence runs the Prepare Windows
for capture step, which uses the Windows System Preparation Tool (Sysprep).
This action fails if the device is joined to a domain.
Tip
The task sequence only needs this information if the Configuration Manager
client components are needed during the task sequence before Sysprep runs.
For example, to install software updates or applications. If you're not doing
these actions, the client isn't needed. It's uninstalled before the task sequence
runs Sysprep.
8. The Include updates page selects by default the option to Do not install any
software updates.
Tip
Use offline image servicing to keep the image up to date with the latest
Windows cumulative updates. For more information, see Apply software
updates to an image.
9. On the Install applications page, you can select applications to install during the
task sequence. However, Microsoft recommends that you mirror the signature
image approach with this scenario. After the device provisions with Autopilot,
apply all applications and configurations from Microsoft Intune or Configuration
Manager co-management. This process provides a consistent experience between
users receiving new devices and those using Windows Autopilot for existing
devices.
10. On the System Preparation page, select the package that includes the Autopilot
configuration file. By default, the task sequence restarts the computer after it runs
Windows Sysprep. You can also select the option to Shutdown computer after this
task sequence completes. This option lets you prepare a device and then deliver it
to a user for a consistent Autopilot experience.
The Windows Autopilot for existing devices task sequence results in a device joined to
Azure AD.
For more information on creating the task sequence, including information on other
wizard options, see Create a task sequence to install an OS.
If you edit the task sequence, it's similar to the default task sequence to apply an
existing OS image. This task sequence includes the following extra steps:
Prepare Windows for Capture: This step runs Windows Sysprep, and has the
setting to Shutdown the computer after running this action. For more
information, see Prepare Windows for Capture.
For more information on editing the task sequence, see Use the task sequence editor
and Task sequence steps.
7 Note
To make sure the user's data is backed up before the Windows 10 upgrade, use
OneDrive for Business known folder move.
1. Select the Autopilot for existing devices task sequence, and in the ribbon select
Distribute Content.
2. On the Specify the content destination page, select Add to specify either a
Distribution Point or Distribution Point Group.
3. Specify content destinations that let the devices get the content.
General
Deployment Settings
Action: Install.
7 Note
Choose the option here that is relevant for the context of your test. 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.
Scheduling
Set a time for when this deployment becomes available
User Experience
Select Show Task Sequence progress
Distribution Points
Deployment options: Download content locally when needed by the
running task sequence
2. In the Software Library, under Operating Systems, select Autopilot for existing
devices, and then select Install. For example:
The task sequence runs and does the following actions:
1. Download content
6. After the task sequence completes, the device boots into OOBE for the Autopilot
experience:
7 Note
If you need to join devices to Active Directory for hybrid Azure AD join scenario,
create a Domain Join device configuration profile. Target the profile to All Devices,
since there's no Azure AD device object for the computer to do group-based
targeting. For more information, see User-driven mode for hybrid Azure Active
Directory join.
After you update Windows on an existing device, make sure to register the device so it
has the Autopilot experience when the PC resets. You can enable automatic registration
for a device by using the Convert all targeted devices to Autopilot setting in the
Autopilot profile that is assigned to a group that the device is a member of. For more
information, see Create an Autopilot deployment profile.
Use Configuration Manager to partition and format an existing computer and then
install a new OS. This process is sometimes called reimaging or wipe and load. For this
scenario, choose from many different deployment methods, such as PXE, bootable
media, or Software Center. You can also use a state migration point to store settings,
and then restore them to the new OS.
Plan
Configure
Distribute content
Prepare an OS image
The OS image contains the files necessary to install the OS on the destination computer.
Manage OS images
Distribute content
Deploy
Use one of the following deployment methods to deploy the OS:
7 Note
When you reimage a UEFI device, Windows Boot Manager creates a new entry in
the boot loader. This behavior is most noticeable when you repeatedly reimage a
device, such as in a test environment or a student lab. It generally doesn't impact
the performance or usage of the device. If the list gets too large, some specific
hardware devices may encounter functional issues. For example, not booting to an
external USB drive, or not able to select the current boot entry from the list. Use the
Windows bcdedit command to clear unused boot entries. For more information,
see BCDEdit /deletevalue.
Install a new version of Windows on a
new computer (bare metal) with
Configuration Manager
Article • 10/04/2022
This topic provides the general steps in Configuration Manager to install an operating
system on a new computer. For this scenario, you can choose from many different
deployment methods, such as PXE, OEM, or stand-alone media. If you are unsure that
this is the right operating system deployment scenario for you, see Scenarios to deploy
enterprise operating systems.
Use the following sections to refresh an existing computer with a new version of
Windows.
Plan
Plan for and implement infrastructure requirements
There are several infrastructure requirements that must be in place before you can
deploy operating systems, such as Windows ADK, Windows Deployment Services
(WDS), supported hard disk configurations, etc. For more information, see
Infrastructure requirements for operating system deployment.
Configure
1. Prepare a boot image
For more information about how to customize a boot image, see Customize
boot images.
Distribute the boot image to distribution points. For more information, see
Distribute content.
The operating system image contains the files necessary to install the operating
system on the destination computer. Use the following to prepare the operating
system image:
To learn more about how to create an operating system image, see Manage
operating system images.
7 Note
Use a task sequence to automate the installation of the operating system over the
network. Use the steps in Create a task sequence to install an operating system to
create the task sequence to deploy the operating system. Depending on the
deployment method that you choose, there might be additional considerations for
the task sequence.
Deploy
Use one of the following deployment methods to deploy the operating system:
Monitor
Monitor the task sequence deployment
To monitor the task sequence deployment to install the operating system, see
Monitor operating system deployments.
Replace an existing computer and
transfer settings with Configuration
Manager
Article • 10/04/2022
This topic provides the general steps in Configuration Manager to replace an existing
computer with a new computer. For this scenario, you can choose from many different
deployment methods, such as bootable media, multicast, or Software Center. You can
also choose to install a state migration point to store settings and then restore them to
the new operating system after it is installed. If you are unsure that this is the right
operating system deployment scenario for you, see Scenarios to deploy enterprise
operating systems.
Use the following sections to refresh an existing computer with a new version of
Windows.
Plan
Plan for and implement infrastructure requirements
There are several infrastructure requirements that must be in place before you can
deploy operating systems, such as Windows ADK, User State Migration Tool
(USMT), Windows Deployment Services (WDS), supported hard disk configurations,
etc. For more information, see Infrastructure requirements for operating system
deployment
When you are going to capture settings from the existing computer, and then
restore the settings to the new operating system, you must install a state migration
point. For more information, see State migration point.
Configure
1. Prepare a boot image
For more information about how to customize a boot image, see Customize
boot images.
Distribute the boot image to distribution points. For more information, see
Distribute content.
The operating system image contains the files necessary to install the operating
system on the destination computer. Use the following to prepare the operating
system image:
To learn more about how to create an operating system image, see Manage
operating system images.
Use a task sequence to automate the installation of the operating system over the
network. Use the steps in Create a task sequence to install an operating system to
create the task sequence to deploy the operating system. Depending on the
deployment method that you choose, there might be additional considerations for
the task sequence.
7 Note
In this scenario, if you capture and restore user settings and files, you can
choose to use a state migration point or save the files locally. For more
information, see Manage user state.
Deploy
Use one of the following deployment methods to deploy the operating system:
Monitor
Monitor the task sequence deployment
To monitor the task sequence deployment to install the operating system, see
Monitor operating system deployments.
Security and privacy for OS deployment
in Configuration Manager
Article • 10/04/2022
This article contains security and privacy information for the OS deployment feature in
Configuration Manager.
Control physical access to the media to prevent an attacker from using cryptographic
attacks to obtain the client authentication certificate.
To help prevent a client from installing content or client policy that has been tampered
with, the content is hashed and must be used with the original policy. If the content
hash fails or the check that the content matches the policy, the client won't use the
bootable media. Only the content is hashed. The policy isn't hashed, but it's encrypted
and secured when you specify a password. This behavior makes it more difficult for an
attacker to successfully modify the policy.
When you require a password to import the client authentication certificate that you use
for bootable media, this configuration helps to protect the certificate from an attacker.
Use SMB signing or IPsec between the network location and the site server to prevent
an attacker from tampering with the certificate file.
To deploy an OS by using bootable media and PXE boot, you must have a client
authentication certificate with a private key. If that certificate is compromised, block the
certificate in the Certificates node in the Administration workspace, Security node.
When you modify boot images and the SMS Provider is running on a server that isn't
the site server, the boot images are vulnerable to attack. Protect the network channel
between these computers by using SMB signing or IPsec.
A rogue distribution point that responds to PXE requests could provide a tampered
image to clients.
Use defense in depth to protect the network segments where clients access PXE-
enabled distribution points.
2 Warning
Because of these security risks, don't enable a distribution point for PXE
communication when it's in an untrusted network, such as a perimeter network.
Because of the inherent security risks involved with PXE boot and multicast, reduce the
risks if a rogue computer downloads the OS image.
When you deploy software by using task sequences variables, it might be installed on
computers and to users who aren't authorized to receive that software.
Secure the network channel when migrating user state
When you migrate user state, secure the network channel between the client and the
state migration point by using SMB signing or IPsec.
After the initial connection over HTTP, user state migration data is transferred by using
SMB. If you don't secure the network channel, an attacker can read and modify this data.
The latest version of USMT provides security enhancements and greater control for
when you migrate user state data.
Use SMB signing or IPsec between the network location and the site server to prevent
an attacker from tampering with the exported task sequence.
Never configure roaming profiles for this account. When the task sequence runs, it
downloads the roaming profile for the account, which leaves the profile vulnerable
to access on the local computer.
Limit the scope of the account. For example, create different task sequence run as
accounts for each task sequence. If one account is compromised, only the client
computers to which that account has access are compromised. If the command
line requires administrative access on the computer, consider creating a local
administrator account solely for the task sequence run as account. Create this local
account on all computers that run the task sequence, and delete the account as
soon as it's no longer required.
Protect the client authentication certificate that's used for bootable task sequence
media and for PXE boot deployment. When you capture a client authentication
certificate, this process gives an attacker an opportunity to obtain the private key in the
certificate. This certificate lets them impersonate a valid client on the network. In this
scenario, the rogue computer can download policy, which can contain sensitive data.
If clients use the network access account to access data stored on the state migration
point, these clients effectively share the same identity. They could access state migration
data from another client that uses the network access account. The data is encrypted so
only the original client can read it, but the data could be tampered with or deleted.
Configuration Manager stores the information on a state migration point, and encrypts
it during transmission and storage. Only the new computer associated with the state
information can retrieve the stored information. If the new computer loses the key to
retrieve the information, a Configuration Manager administrator with the View Recovery
Information right on computer association instance objects can access the information
and associate it with a new computer. After the new computer restores the state
information, it deletes the data after one day, by default. You can configure when the
state migration point removes data marked for deletion. Configuration Manager doesn't
store the state migration information in the site database, and doesn't send it to
Microsoft.
If you use boot media to deploy OS images, always use the default option to password-
protect the boot media. The password encrypts any variables stored in the task
sequence, but any information not stored in a variable might be vulnerable to
disclosure.
OS deployment can use task sequences to perform many different tasks during the
deployment process, which includes installing applications and software updates. When
you configure task sequences, you should also be aware of the privacy implications of
installing software.
See also
Diagnostics and usage data
When different Configuration Manager sites in a single hierarchy use different versions,
some Configuration Manager functionality isn't available. Typically, functionality from
the newer version of Configuration Manager isn't accessible at sites or by clients that
run a lower version. For more information, see Interoperability between different
versions of Configuration Manager.
Objects
Consider the following objects when you upgrade the top-level site in your hierarchy
and other sites in your hierarchy run Configuration Manager with a lower version:
You can't assign new version clients to sites that you haven't yet upgraded to the
new version. Assignment is blocked at the management point.
Boot images
When you upgrade the top-level site to the latest version of Configuration
Manager, it automatically updates the default boot images (x86 and x64). The
update uses the version of the Windows ADK and Windows PE that you've
installed. The files that are associated with the default boot images are updated
with the latest Configuration Manager version of the files. The site doesn't
automatically update custom boot images. You need to manually update custom
boot images, which include older Windows PE versions.
When your site hierarchy contains sites with different versions of Configuration
Manager, avoid the use of dynamic media. Instead, use site-based media to
contact a specific management point. After you update all sites to the same
version of Configuration Manager, you can use dynamic media again.
Verify that the latest Configuration Manager boot images include your
customizations. Then update all distribution points at the new version sites with
the latest version of the new boot images.
OS deployment media
When the site is updated to a new version, update all media with the new Configuration
Manager client package. These media types include bootable, capture, prestaged, and
stand-alone.
Task sequences that reference a custom client installation package continue to deploy
the version of the client that's contained in that custom package. Custom packages
likely include an earlier version of the Configuration Manager client. To avoid task
sequence deployment failures, update any custom client installation packages to the
latest version.
When you configure a task sequence to use a custom client installation package, do one
of the following actions:
Update the task sequence step to use the latest Configuration Manager version of
the client installation package
Update the custom package to use the latest Configuration Manager client
installation source
) Important
Don't deploy a task sequence that references the latest Configuration Manager
client installation package to clients in an older Configuration Manager site. When
clients assigned to an older Configuration Manager site are upgraded to the latest
Configuration Manager client version, Configuration Manager blocks the
assignment to the older Configuration Manager site. These clients are no longer
assigned to any site. Until you manually assign the client to the latest Configuration
Manager site, or reinstall the older Configuration Manager version of the client on
the computer, these clients are unmanaged.
Make a copy of a task sequence that you use to deploy to clients in the latest version of
Configuration Manager site. Then modify the task sequence so you can deploy it to
clients in an older Configuration Manager site. Configure the task sequence to reference
a custom client installation package that uses the older Configuration Manager client
installation source. If you don't already have a custom client installation package that
references the older Configuration Manager client installation source, manually create
one.
Next steps
Interoperability between different versions of Configuration Manager
To deploy operating systems in Configuration Manager, first prepare the following site
system roles that require specific configurations and considerations.
Distribution points
The distribution point site system role hosts source files for clients to download. This
content is for applications, software updates, OS images, boot images, and driver
packages. Control content distribution by using bandwidth, throttling, and scheduling
options.
It's important that you have enough distribution points to support the deployment of
operating systems to computers. It's also important that you plan for the placement of
these distribution points in your hierarchy. For more information, see Manage content
and content infrastructure. This article includes more planning considerations for
distribution points specific to OS deployment.
Manage the behavior for high-risk task sequence deployments. A high-risk deployment
automatically installs on a client and has the potential to cause unwanted results. For
example, a task sequence with a purpose of required that deploys an OS. To reduce the
risk of an unwanted high-risk deployment, configure deployment verification settings.
For more information, see Settings to manage high-risk deployments.
How many computers can receive an OS image at one time from a
single distribution point?
To estimate how many distribution points you need, consider the following variables:
For example, if you don't consider any other server resource factors, the maximum
number of computers that can process a 4-GB image package in one hour on a 100-
megabit/sec Ethernet network is 11 computers.
TFTP window size: TFTP requires an acknowledgment (ACK) packet for each block
of data that is sent. The server doesn't send the next block in the sequence until it
receives the ACK packet for the previous block. TFTP windowing enables you to
define how many data blocks it takes to fill a window. The server sends the data
blocks back-to-back until the window is filled, and then the client sends an ACK
packet. If you increase this window size, it reduces the number of round-trip delays
between the client and server, and it decreases the overall required time to
download a boot image.
Location: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SMS\DP
Name: RamDiskTFTPWindowSize
Type: REG_DWORD
Value: (customized window size)
The default value is 1 (one data block fills the
window).
To customize the RamDisk TFTP window size, add the following registry key on PXE-
enabled distribution points:
Location: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SMS\DP
Name: RamDiskTFTPBlockSize
Type: REG_DWORD
Value: (customized block size)
The default value is 4096 .
7 Note
Both Windows Deployment Services and the Configuration Manager PXE responder
service support these TFTP configurations.
Configure distribution points to support multicast
Multicast is a network optimization method. Use it on distribution points when multiple
clients are likely to download the same OS image at the same time. When you use
multicast, multiple computers can simultaneously download the OS image as it's
multicast by the distribution point. Without multicast, the distribution point sends a
copy of the data to each client over a separate connection. For more information, see
Use multicast to deploy Windows over the network.
Before you deploy the OS, configure a distribution point to support multicast. For more
information, see Install and configure distribution points.
For a description of different migration scenarios for USMT, see Common migration
scenarios in the Windows documentation.
Retention policy
When you configure the state migration point, specify the length of time to keep the
user state data that it stores. The length of time to keep the data on the state migration
point depends on two considerations:
The potential requirement to keep the data for a time in case you must migrate the
data again.
State migration occurs in two phases: capturing the data, and restoring the data. When
you capture data, the user state data is collected and saved to the state migration point.
When you restore the data, the user state data is retrieved from the state migration
point, written to the destination computer, and then the Release State Store task
sequence step releases the stored data. When the data is released, the retention timer
starts. If you select the option to delete migrated data immediately, the user state data
is deleted as soon as it's released. If you select the option to keep the data for a certain
period of time, the data is deleted when that period of time elapses after the state data
is released. The longer you set the retention period, the more disk space you're likely to
require.
Use the Add Site System Roles Wizard to add a state migration point to an
existing server.
When you use these wizards, you're prompted to provide the following information for
the state migration point:
The maximum number of clients that can store data on the state migration point.
The minimum free space for the state migration point to store user state data.
The deletion policy for the role. Either specify that the user state data is deleted
immediately after it's restored on a computer, or after a specific number of days
after the user data is restored on a computer.
Whether the state migration point responds only to requests to restore user state
data. When you enable this option, you can't use the state migration point to store
user state data.
For the steps to install a site system role, see Add site system roles.
Next steps
Prepare for OS deployment
Prepare for OS deployment in
Configuration Manager
Article • 10/04/2022
There are several things you must do in Configuration Manager before you can deploy
operating systems. Use the following articles to prepare for OS deployment:
Manage OS images
Manage drivers
OS image size
OS images are large in size. For example, the image size for Windows 7 is 3 GB or more.
The size of the image and the number of computers to which you simultaneously deploy
the OS affects the network performance and available bandwidth. Make sure to test the
network performance. Testing the impact better gauges the effect the image
deployment might have and the time it takes to complete the deployment.
Configuration Manager activities that affect network performance include distributing
the image to a distribution point, distributing the image from one site to another, and
downloading the image to the client.
Also make sure that you plan for sufficient disk storage space on the distribution points
that host the OS images.
For more information, see Additional planning considerations for distribution points.
When a Configuration Manager client must download an OS image, but there isn't
enough space in the cache, the client can clear space in its cache. It checks the other
packages in the cache to determine whether deleting any of the oldest packages will
free enough disk space to accommodate the image. If deleting packages doesn't free
enough space, the client doesn't download the image, and the deployment fails. This
behavior might occur if the cache has a large package that you configure to persist in
the cache. If deleting packages does free enough disk space in the cache, the client
deletes them, and then downloads the image into the cache.
The default cache size on Configuration Manager clients might not be large enough for
most OS image deployments. If you plan to download the full image to the client cache,
adjust the client cache size on the destination computers to accommodate the size of
the image that you're deploying.
Consider the following behaviors for any of the actions described for default boot
images:
The source driver objects must be valid. These objects include the driver source
files. If the objects aren't valid, the site doesn't add the drivers to the boot images.
Boot images that aren't based on the default boot images, even if they use the
same Windows PE version, aren't modified.
7 Note
The Configuration Manager log tool (CMTrace) is added to all boot images in the
Software Library. When you're in Windows PE, start the tool by typing cmtrace
from the command prompt.
CMTrace is the default viewer for log files in Windows PE.
7 Note
The site always uses the production version of the Configuration Manager client in
default boot images. Even if you configure automatic client upgrades to use a pre-
production collection, that feature doesn't apply to boot images.
You can reload the boot image with the latest version of WinPE from the Windows ADK
installation directory. The General page of the Update Distribution Points wizard
provides the following information:
) Important
This action is available for both default and custom boot images. During this
process to reload the boot image, the site doesn't retain any manual
customizations made outside of Configuration Manager. These customizations
include third-party extensions. This option rebuilds the boot image using the latest
version of WinPE and the latest client version. Only the configurations that you
specify on the properties of the boot image are reapplied.
The Boot Images node also includes a new column for (Client Version). Use this column
to quickly view the Configuration Manager client version in each boot image.
After you update the Windows ADK on the site server, the console won't immediately
show the new version. If you use one these actions to update a boot image, the site uses
the latest ADK version. To get the console to display the current ADK version, restart the
WMI service. For more information, see Starting and Stopping the WMI Service.
When a boot image is based on a different version of the Windows ADK installed on a
site, you must customize the boot images. Use another method to customize these boot
images, such as using the Deployment Image Servicing and Management (DISM)
command-line tool. DISM is part of the Windows ADK. For more information, see
Customize boot images.
Configuration Manager also supports Windows PE versions for boot images that aren't
customizable from the Configuration Manager console. For example, you install the
Windows ADK and WinPE add-on for Windows 11 on the site server. For x64 boot
images based on WinPE version 11 from the WinPE add-on for Windows 11, you can
customize them from the Configuration Manager console. However, while x86 boot
images based on WinPE version 10 are supported, you need to manually customize
them from a different computer. Use the version of DISM that's installed with the
Windows ADK for Windows 10. Then, you can add the boot image to the Configuration
Manager console.
2. On the Home tab of the ribbon, in the Create group, select Add Boot Image. This
action starts the Add Boot Image Wizard.
In the Path box, specify the path to the boot image WIM file. The specified
path must be a valid network path in the UNC format. For example:
\\ServerName\ShareName\BootImageName.wim
Select the boot image from the Boot Image drop-down list. If the WIM file
contains multiple boot images, select the appropriate image.
In the Name box, specify a unique name for the boot image.
In the Version box, specify a version number for the boot image.
In the Comment box, specify a brief description of how you use the boot
image.
Tip
In the Boot Image node of the console, the Size (KB) column displays the
decompressed size for each boot image. When the site sends a boot image over
the network, it sends a compressed copy. This copy is typically smaller than the size
listed in the Size (KB) column.
For more information on how to distribute a boot image, see Distribute content.
To use PXE to deploy an OS, consider the following points before you distribute the
boot image:
For more information about using PXE to deploy operating systems, see Use PXE to
deploy Windows over the network.
Before adding drivers to the boot image, import and enable them in the device
driver catalog.
When you modify a boot image, the boot image doesn't change any of the
associated packages that the boot image references.
After you make changes to a boot image, update the boot image on the
distribution points that already have it. This process makes the most current
version of the boot image available to clients. For more information, see Manage
content you've distributed.
3. On the Home tab of the ribbon, in the Properties group, select Properties.
4. Set any of the following settings to change the behavior of the boot image:
Images
On the Images tab, if you change the properties of the boot image by using an external
tool, select Reload.
Drivers
On the Drivers tab, add the Windows device drivers that WinPE requires to boot.
Consider the following points when you add device drivers:
Make sure that the drivers that you add to the boot image match the architecture
of the boot image.
To only display drivers for the architecture of the boot image, select Hide drivers
that do not match the architecture of the boot image. The architecture of the
driver is based on the architecture reported in the INF from the manufacturer.
WinPE already comes with many drivers built-in. Add only network and storage
drivers that aren't included in WinPE.
Add only network and storage drivers to the boot image, unless there are
requirements for other drivers in WinPE.
To only display storage and network drivers, select Hide drivers that are not in a
storage or network class (for boot images). This option also hides other drivers
that aren't typically needed for boot images, such as video or modem drivers.
To hide drivers that don't have a valid digital signature, select Hide drivers that are
not digitally signed.
7 Note
Import device drivers into the drivers catalog before you add them to a boot
image. For information about how to import device drivers, see Manage drivers.
Customization
On the Customization tab, select any of the following settings:
Select the Enable Prestart Commands option to specify a command to run before
the task sequence runs. When you enable this option, also specify the command
line to run and any support files required by the command.
2 Warning
Add cmd /c to the start of the command line. If you don't specify cmd /c , the
command won't close after it runs. The deployment continues to wait for the
command to finish and won't start any other configured commands or
actions.
Tip
During task sequence media creation, the wizard writes the package ID and
prestart command line to the CreateTSMedia.log file. This information
includes the value for any task sequence variables. This log is on the computer
that runs the Configuration Manager console. Review this log file to verify the
values for the task sequence variables.
Set the Windows PE Background settings to specify whether you want to use the
default WinPE background or a custom background.
Configure the Windows PE scratch space (MB), which is temporary storage (RAM
drive) used by WinPE. For example, when an application is run within WinPE and
needs to write temporary files, WinPE redirects the files to the scratch space in
memory to simulate the presence of a hard disk. By default, this amount is 512 MB
for devices with more than 1 GB of RAM, otherwise the default is 32 MB.
Select Enable command support (testing only) to open a command prompt by
using the F8 key while the boot image is deployed. This option is useful for
troubleshooting while you're testing your deployment. Using this setting in a
production deployment isn't advised because of security concerns.
Set default keyboard layout in WinPE: Configure the default keyboard layout for a
boot image. If you select a language other than en-us, Configuration Manager still
includes en-us in the available input locales. On the device, the initial keyboard
layout is the selected locale, but the user can switch the device to en-us if needed.
Tip
Optional Components
On the Optional Components tab, specify the components that are added to Windows
PE for use with Configuration Manager. For more information about available optional
components, see WinPE: Add packages (Optional Components Reference).
The following components are required by Configuration Manager and always added to
boot images:
Scripting (WinPE-Scripting)
Startup (WinPE-SecureStartup)
Network (WinPE-WDS-Tools)
Scripting (WinPE-WMI)
The Components list shows additional items that are added to this boot image. To add
more components, select the gold asterisk. To remove a component, select it from the
list, and then select the red X.
For more information about adding languages, see Configure multiple languages.
Data Source
On the Data Source tab, update any of the following settings:
To change the source file of the boot image, set Image path and Image index.
To create a schedule for when the site updates the boot image, select Update
distribution points on a schedule.
If you don't want the content of this package to age out of the client cache to
make room for other content, select Persist content in client cache.
To specify that the site only distributes changed files when it updates the boot
image package on the distribution point, select Enable binary differential
replication (BDR). This setting minimizes the network traffic between sites. BDR is
especially useful when the boot image package is large and the changes are
relatively small.
If you use the boot image in a PXE-enabled deployment, select Deploy this boot
image from the PXE-enabled distribution point. For more information, see Use
PXE to deploy Windows over the network.
Data Access
On the Data Access tab, you can configure package share settings. If needed in your
environment, set the option to Copy the content in this package to a package share on
distribution points. You then have the additional option to Use a custom name for the
package share and specify the custom Share name. Additional disk space is required on
distribution points when you enable this option. It applies to all distribution points that
receive this boot image.
Distribution Settings
On the Distribution Settings tab, select any of the following settings:
In the Distribution priority list, specify the priority level. Configuration Manager
uses this priority list when the site distributes multiple packages to the same
distribution point.
If you want to enable on-demand content distribution to preferred distribution
points, select Enable for on-demand distribution. When you enable this setting, if
a client requests the content for the package and the content isn't available on any
distribution points, then the management point distributes the content. For more
information, see On-demand content distribution.
To specify how you want the site to distribute the boot image to distribution points
that are enabled for prestaged content, set the Prestaged distribution point
settings. For more information about prestaged content, see Prestage content.
Content Locations
On the Content Locations tab, select the distribution point or distribution point group,
and use the following actions:
Validate: Check the integrity of the boot image package on the selected
distribution point or distribution point group.
Remove: Delete the boot image from the selected distribution point or distribution
point group.
Security
On the Security tab, view the administrative users that have permissions to this object.
3. On the Home tab of the ribbon, in the Properties group, select Properties.
4. On the Data Source tab, select Deploy this boot image from the PXE-enabled
distribution point. For more information, see Use PXE to deploy Windows over the
network.
Configure multiple languages
Tip
You can configure the default keyboard layout on the properties of a boot image.
For more information, see Customization.
Boot images are language neutral. This functionality allows you to use one boot image
to display the task sequence text in multiple languages while in WinPE. Include the
appropriate language support from the boot image Optional Components tab. Then set
the appropriate task sequence variable to indicate which language to display. The
language of the deployed OS is independent from the language in WinPE. The language
that WinPE displays to the user is determined as follows:
When a user runs the task sequence from an existing OS, Configuration Manager
automatically uses the language configured for the user. When the task sequence
automatically runs as the result of a mandatory deployment deadline,
Configuration Manager uses the language of the OS.
For OS deployments that use PXE or media, set the language ID value in the
SMSTSLanguageFolder variable as part of a prestart command. When the
computer boots to WinPE, messages are displayed in the language that you
specified in the variable. If there's an error accessing the language resource file in
the specified folder, or you don't set the variable, WinPE displays messages in the
default language.
7 Note
When you protect media with a password, the text that prompts the user for
the password is always displayed in the WinPE language.
Use the following procedure to set the WinPE language for PXE or media-initiated OS
deployments.
Next steps
Customize boot images
Manage OS images
Customize boot images with
Configuration Manager
Article • 10/04/2022
For boot images with other versions of WinPE, customize them by using another
method. For example, use the Deployment Image Servicing and Management (DISM)
command-line tool. Then import the boot images into Configuration Manager to use
with OS deployments.
For example, you install the Windows ADK and WinPE add-on for Windows 11 on the
site server. For x64 boot images based on WinPE version 11 from the WinPE add-on for
Windows 11, you can customize them from the Configuration Manager console.
However, while x86 boot images based on WinPE version 10 are supported, you need to
manually customize them from a different computer. Use the version of DISM that's
installed with the Windows ADK for Windows 10. Then, you can add the boot image to
the Configuration Manager console.
) Important
The 32-bit versions of Windows PE (WinPE) in the WinPE add-ons for Windows 11
and Windows Server 2022 aren't supported. The last supported version of 32-bit
WinPE is available in the WinPE add-on for Windows 10, version 2004. For more
information, see Download and install the Windows ADK.
The following steps summarize the process to customize an x86 boot image that uses
WinPE version 10:
Install the Windows ADK and WinPE add-on for Windows 10, version 2004
Use the DISM command-line tool to:
Mount the x86 boot image
Add optional components
Add drivers
Commit the changes to the boot image
Import the customized boot image to Configuration Manager
Required components
The procedures in this article demonstrate how to add the WinPE optional components
that Configuration Manager requires:
There are other WinPE packages available to add. For more information, see WinPE
optional components reference.
Tip
You only need to install the Deployment Tools component for this process.
2. Copy the boot image ( winpe.wim ) from the WinPE installation folder, which by
default is C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment
Kit\Windows Preinstallation Environment\x86\en-us . Create a working directory
on the computer where you'll customize the boot image, and copy the default
image file to it. This procedure uses C:\WinPE as the folder name. For example:
PowerShell
3. Create a new folder to use as the mount point for the boot image. This procedure
uses C:\WinPEMount as the folder name.
PowerShell
4. Use DISM to mount the boot image to a local Windows PE folder. For example,
type the following command line:
) Important
Make sure you're using the version of DISM from the installed Windows ADK.
Windows may default to the OS version, which may not technically support
the version of WinPE that you're servicing. For more information, see DISM
supported platforms.
PowerShell
Tip
5. After you mount the boot image, use DISM to add optional components to the
boot image. By default, the optional components are located in C:\Program Files
(x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation
Environment\x86\WinPE_OCs .
7 Note
This procedure uses the default location and en-us locale for the optional
components. The path you use might be different depending on the version
and installation options you choose for the Windows ADK, and the locale of
the boot image.
Type the following commands to install the optional components that
Configuration Manager requires:
PowerShell
Tip
For more information about the different packages that you can add to the
boot image, see WinPE optional components reference.
6. If needed, use DISM to add specific drivers to the boot image. For example, type
the following command to add a driver to the boot image:
PowerShell
7. When you're done making changes, type the following command to unmount the
boot image file and commit the changes:
PowerShell
) Important
Whether or not you will use this customized image, make sure to unmount it
when you're done. To not save your changes but still unmount the image, use
the /discard parameter instead of the /commit option.
8. Copy the customized boot image to your site's centralized package source
location.
2. On the Home tab of the ribbon, in the Create group, select Add Boot Image. This
action starts the Add Boot Image Wizard.
Specify the Path to the updated boot image file. The specified path must be a
valid network path in the UNC format. For example:
\\server\share\WinPE10x86\winpe.wim
Choose the specific boot image from the Boot Image list. If the WIM file
contains multiple images, each image is listed.
Version: Specify a version number for the boot image. This value doesn't
have to be the OS version, it's a string that you maintain for the boot image
version.
Use the following steps to enable the command shell on a custom boot image:
2. Find the new boot image in the list and identify the package ID for the image. You
can find the package ID in the Image ID column for the boot image.
6. Select Refresh Object, and then in the Properties pane select EnableLabShell.
7. Select Edit Property, change the value to TRUE, and select Save Property.
8. Select Save Object, and then exit the Windows Management Instrumentation
Tester.
7 Note
When you boot to WinPE from a customized boot image that includes tools that
you added, you can open a command prompt from WinPE and type the file name
of the tool to run it. The location of these tools are automatically added to the path
variable.
Distribute content
Before you can use the boot image in a task sequence, distribute the boot image to
distribution points. Use the following steps to distribute the boot image:
1. In the Configuration Manager console, go to the Software Library workspace,
expand Operating Systems, and then select the Boot Images node.
3. On the Home tab of the ribbon, in the Deployment group, select Update
Distribution Points.
Next steps
Manage boot images
OS images in Configuration Manager are stored in the Windows image (WIM) file
format. These images are a compressed collection of reference files and folders use to
install and configure a new OS on a computer. Many OS deployment scenarios require
an OS image.
OS image types
You can use a default OS image, or build the OS image from a reference computer that
you configure. When you build the reference computer, you add OS files, drivers,
support files, software updates, tools, and applications to the OS. Then you capture it to
create the image file.
Default image
The Windows installation files include the default OS image. This image is a basic OS
image that contains a standard set of drivers. When you use the default OS image, use
task sequence steps to install apps and make other configurations after the OS installs
on a device. Locate the default OS image in the Windows source files:
\Sources\install.wim .
Installing apps and configurations with task sequence steps is more dynamic. For
example, change the configurations and apps that install in the task sequence,
without having to reimage the device.
OS installation can take more time. The application installation and other
configurations occur after the OS installation completes.
Captured image from a reference computer
To create a customized OS image, build a reference computer with the desired OS. Then
install applications and configure settings. Capture the OS image from the reference
computer to create the WIM file. Manually build the reference computer, or use a task
sequence to automate some or all of the build steps. For more information, see
Customize OS images.
Need to create a new image when you require updates for applications and tools.
Add an OS image
Before you can use an OS image, add it to your Configuration Manager site.
2. On the Home tab of the ribbon, in the Create group, select Add Operating System
Image. This action starts the Add Operating System Image Wizard.
Extract a specific image index from the specified WIM file and then select
an image index from the list. Starting in version 1902, this option
automatically imports a single index rather than all image indexes in the file.
Using this option results in a smaller image file, and faster offline servicing. It
also supports the process to Optimize image servicing, for a smaller image
file after applying software updates.
7 Note
This extraction process can fail for extremely large image files, for
example over 60 GB. The DISM error is Not enough storage is available
to process this command. The command line that Configuration
Manager uses is in the smsprov.log and dism.log. Manually run the same
command and then import the image.
4. On the General page, specify the following information. This information is useful
for identification purposes when you have more than one OS image.
Name: A unique name for the image. By default, the name comes from the
WIM file name.
For the PowerShell cmdlet equivalent of this console wizard, see New-
CMOperatingSystemImage.
This section applies to both OS images and OS upgrade packages. It uses the
general term "image" to refer to the Windows image file (WIM). Both of these
objects have a WIM, which contains Windows installation files. Software updates
are applicable to these files in both objects. The behavior of this process is the
same between both objects.
Each month there are new software updates applicable to the image. Before you can
apply software updates to it, you need the following prerequisites:
) Important
While you can select any software update that's applicable to the image based on
version, DISM can only apply certain types of updates to the image. The
OfflineServicingMgr.log file shows the following entry: Not applying this update
binary, it is not supported .
The site database stores information about the image, including the software updates
that were applied at the time of the import. Software updates that you apply to the
image since it was initially added are also stored in the site database. When you start the
wizard to apply software updates, it retrieves the list of applicable software updates that
the site hasn't yet applied to the image. Configuration Manager copies the software
updates that you select from the content library on the site server. It then applies the
software updates to the image.
Servicing process
1. In the Configuration Manager console, go to the Software Library workspace,
expand Operating Systems, and then select either Operating System Images or
Operating System Upgrade Packages.
4. On the Choose Updates page, select the software updates to apply to the image. It
may take some time for the list of updates to appear in the wizard. Use the Filter
to search for strings in the metadata. Use the System architecture drop-down list
to filter on X86, X64, or All. You can select one, many, or all updates in the list.
When you're finished selecting updates, select Next.
5. On the Set Schedule page, specify the following settings, and then select Next.
a. Schedule: Specify the schedule for when the site applies the software updates
to the image.
c. Update distribution points with the image: Select this option to update the
image on distribution points after the site applies the software updates.
7 Note
To minimize the payload size, the servicing of OS upgrade packages and OS images
removes the older version.
Servicing operations
In the Configuration Manager console, in either the OS Images or OS Upgrade
Packages node, add the following columns to the view:
Scheduled Updates Date: This property shows the next schedule that you've
defined.
Scheduled Updates Status: This property shows the status. For example,
Successful or In Process.
Select a specific image object, and then switch to the Update Status tab in the details
pane. This tab shows the list of updates in the image.
Select a specific image object, and select Properties in the ribbon. The Installed
Updates tab shows the list of updates in the image. The Servicing tab is a read-only
view of the current servicing schedule and the updates that you've scheduled to apply.
When the status is In Process, you can select Cancel Scheduled Updates on the ribbon.
This action cancels the active servicing process.
To troubleshoot this process, view the OfflineServicingMgr.log and dism.log files on the
site server. For more information, see Log files.
2. On the Offline Servicing tab, specify the option for A local drive to be used by
offline servicing of images.
By default, this setting is Automatic. With this value, Configuration Manager selects the
drive on which it's installed.
If you select a drive that doesn't exist on the site server, Configuration Manager behaves
the same as if you select Automatic.
During offline servicing, Configuration Manager stores temporary files in the folder,
<drive>:\ConfigMgr_OfflineImageServicing . It also mounts the OS image in this folder.
When you schedule the site to apply software updates to an OS image, it uses the
Windows Deployment Image Servicing and Management (DISM) command-line tool.
During the servicing process, this change introduces the following two additional steps:
It runs DISM against the mounted offline image with the parameters /Cleanup-
Image /StartComponentCleanup /ResetBase . If this command fails, the current
servicing process fails. It doesn't commit any changes to the image.
After Configuration Manager commits changes to the image and unmounts it from
the file system, it exports the image to another file. This step uses the DISM
parameter /Export-Image . It removes unneeded files from the image, which
reduces the size.
Microsoft recommends that you regularly apply updates to your offline images. You
don't have to use this option every time you service an image. When you do this process
each month, this option provides you the greatest advantage by using it over time. For
more information, see Recommendations for Install Software Updates step.
While this option helps reduce the overall size of the serviced image, it does take longer
to complete the process. Use the wizard to schedule servicing during convenient times.
It also requires additional storage on the site server. You can customize the site to use
an alternate location. For more information, see Specify the drive for offline OS image
servicing.
2. On the Set Schedule page, select the option to Remove superseded updates after
the image is updated. This option isn't automatically enabled. If the image has
more than one index, you can't use this option.
3. On the Home tab of the ribbon, in the Properties group, select Properties.
4. Switch to the Distribution Settings tab, and configure the following options:
Allow this package to be transferred via multicast (WinPE only): Select this
option for Configuration Manager to simultaneously deploy OS images using
multicast.
Encrypt multicast packages: Specify whether the site encrypts the image
before it's sent to the distribution point. If the image contains sensitive
information, use this option. If the image isn't encrypted, its contents are
visible in clear text on the network. Then an unauthorized user could
intercept and view the image contents.
Transfer this package only via multicast: Specify whether you want the
distribution point to deploy the image only during a multicast session.
If you select Transfer this package only via multicast, you must also specify
the task sequence deployment option to Download content locally when
needed by the running task sequence. For more information, see Deploy a
task sequence.
Operating system images in Configuration Manager are WIM files and represent a
compressed collection of reference files and folders that are required to successfully
install and configure an operating system on a computer. A custom operating system
image is built and captured from a reference computer that you configure with all the
required operating system files, support files, software updates, tools, and other
software apps. The extent to which you manually configure the reference computer is up
to you. You can completely automate the configuration of the reference computer by
using a build and capture task sequence, you can manually configure certain aspects of
the reference computer and then automate the rest by using task sequences, or you can
manually configure the reference computer without using task sequences. Use the
following sections to customize an operating system.
Automated configuration
Advantages
You can reuse the task sequence to repeat the configuration of additional
reference computers with a high level of confidence.
The initial action to build a task sequence can take a long time to create and test.
Manual configuration
Advantages
You do not have to create a task sequence or take the time to test and
troubleshoot the task sequence.
You can install directly from CDs without putting all the software packages
(including Windows itself) into a Configuration Manager package.
Disadvantages
You must still verify and test that the reference computer is configured correctly.
The reference computer must be installed with the operating system that you
intend to deploy to your destination computers. For more information about the
operating systems that you can deploy, see Infrastructure requirements for
operating system deployment.
The reference computer must be installed with the operating system that you
intend to deploy to your destination computers.
Workgroup membership
Sysprep
The System Preparation (Sysprep) tool is a technology that you can use with other
deployment tools to install Windows operating systems onto new hardware.
Sysprep prepares a computer for disk imaging or delivery to a customer by
configuring the computer to create a new computer security identifier (SID) when
the computer is restarted. In addition, Sysprep cleans up user and computer-
specific settings and data that must not be copied to a destination computer.
You can manually Sysprep the reference computer by running the following
command:
The /generalize option instructs Sysprep to remove system-specific data from the
Windows installation. System-specific information includes event logs, unique
security IDs (SIDs), and other unique information. After the unique system
information is removed, the computer restarts.
You can automate Sysprep by using the Prepare Windows for Capture task
sequence step or capture media.
) Important
The Prepare Windows for Capture task sequence step attempts to reset the
local administrator password on the reference computer to a blank value
before Sysprep runs. If the Local Security policy Password must meet
complexity requirements is enabled, this task sequence step fails to reset the
administrator password. In this scenario, disable this policy before you run the
task sequence.
For more information about Sysprep, see Sysprep (System Preparation) overview.
You can configure the reference computer with the desktop customization
properties that you want to include when you capture the operating system image
from the reference computer. Desktop properties include wallpaper, organizational
branding, and a standard default user profile.
7 Note
When you manually build the reference computer, you can capture the operating
system image by using capture media. For more information, see Create capture
media.
2. Configure the reference computer with the appropriate operating system and any
other software that is required to create the operating system image that you want
to deploy.
2 Warning
4. Reset the local Administrator password on the reference computer so that the
password value is blank.
5. Run Sysprep by using the command: sysprep /quiet /generalize /reboot. The
/generalize option instructs Sysprep to remove system-specific data from the
Windows installation. System-specific information includes event logs, unique
security IDs (SIDs), and other unique information. After the unique system
information is removed, the computer restarts.
After the reference computer is ready, use a task sequence to capture the
operating system image from the reference computer. For detailed steps, see
Capture an operating system image from an existing reference computer.
Use a task sequence to build and capture the operating system image from the
reference computer. For detailed steps, see Use a task sequence to build and
capture a reference computer.
Manage OS upgrade packages with
Configuration Manager
Article • 10/04/2022
7 Note
OS upgrade packages can also be used for new installations of Windows. However
it is dependent on drivers being compatible with this method. When performing
new installations of Windows from an OS upgrade package, drivers are installed
while still in Windows PE versus simply being injected while in Windows PE. Some
drivers are not compatible with being installed while in Windows PE. If drivers are
not compatible with being installed while in Windows PE, then use an OS image,
such as install.wim, instead.
2. On the Home tab of the ribbon, in the Create group, select Add Operating System
Upgrade Package. This action starts the Add Operating System Upgrade Wizard.
The network Path to the installation source files of the OS upgrade package.
For example, \\server\share\path .
7 Note
The installation source files contain setup.exe and other files and folders
to install the OS.
) Important
Starting in version 2107, review and agree to the license terms for this OS
media on behalf of your organization.
) Important
4. On the General page, specify the following information. This information is useful
for identification purposes when you have more than one OS upgrade package.
7 Note
This section applies to both OS images and OS upgrade packages. It uses the
general term "image" to refer to the Windows image file (WIM). Both of these
objects have a WIM, which contains Windows installation files. Software updates
are applicable to these files in both objects. The behavior of this process is the
same between both objects.
Each month there are new software updates applicable to the image. Before you can
apply software updates to it, you need the following prerequisites:
) Important
While you can select any software update that's applicable to the image based on
version, DISM can only apply certain types of updates to the image. The
OfflineServicingMgr.log file shows the following entry: Not applying this update
binary, it is not supported .
The site database stores information about the image, including the software updates
that were applied at the time of the import. Software updates that you apply to the
image since it was initially added are also stored in the site database. When you start the
wizard to apply software updates, it retrieves the list of applicable software updates that
the site hasn't yet applied to the image. Configuration Manager copies the software
updates that you select from the content library on the site server. It then applies the
software updates to the image.
Servicing process
1. In the Configuration Manager console, go to the Software Library workspace,
expand Operating Systems, and then select either Operating System Images or
Operating System Upgrade Packages.
4. On the Choose Updates page, select the software updates to apply to the image. It
may take some time for the list of updates to appear in the wizard. Use the Filter
to search for strings in the metadata. Use the System architecture drop-down list
to filter on X86, X64, or All. You can select one, many, or all updates in the list.
When you're finished selecting updates, select Next.
5. On the Set Schedule page, specify the following settings, and then select Next.
a. Schedule: Specify the schedule for when the site applies the software updates
to the image.
c. Update distribution points with the image: Select this option to update the
image on distribution points after the site applies the software updates.
7 Note
To minimize the payload size, the servicing of OS upgrade packages and OS images
removes the older version.
Servicing operations
In the Configuration Manager console, in either the OS Images or OS Upgrade
Packages node, add the following columns to the view:
Scheduled Updates Date: This property shows the next schedule that you've
defined.
Scheduled Updates Status: This property shows the status. For example,
Successful or In Process.
Select a specific image object, and then switch to the Update Status tab in the details
pane. This tab shows the list of updates in the image.
Select a specific image object, and select Properties in the ribbon. The Installed
Updates tab shows the list of updates in the image. The Servicing tab is a read-only
view of the current servicing schedule and the updates that you've scheduled to apply.
When the status is In Process, you can select Cancel Scheduled Updates on the ribbon.
This action cancels the active servicing process.
To troubleshoot this process, view the OfflineServicingMgr.log and dism.log files on the
site server. For more information, see Log files.
2. On the Offline Servicing tab, specify the option for A local drive to be used by
offline servicing of images.
By default, this setting is Automatic. With this value, Configuration Manager selects the
drive on which it's installed.
If you select a drive that doesn't exist on the site server, Configuration Manager behaves
the same as if you select Automatic.
During offline servicing, Configuration Manager stores temporary files in the folder,
<drive>:\ConfigMgr_OfflineImageServicing . It also mounts the OS image in this folder.
Optimized image servicing
When you apply software updates to an OS image, you can optimize the output by
removing any superseded updates. The optimization to offline servicing only applies to
images with a single index.
When you schedule the site to apply software updates to an OS image, it uses the
Windows Deployment Image Servicing and Management (DISM) command-line tool.
During the servicing process, this change introduces the following two additional steps:
It runs DISM against the mounted offline image with the parameters /Cleanup-
Image /StartComponentCleanup /ResetBase . If this command fails, the current
After Configuration Manager commits changes to the image and unmounts it from
the file system, it exports the image to another file. This step uses the DISM
parameter /Export-Image . It removes unneeded files from the image, which
reduces the size.
Microsoft recommends that you regularly apply updates to your offline images. You
don't have to use this option every time you service an image. When you do this process
each month, this option provides you the greatest advantage by using it over time. For
more information, see Recommendations for Install Software Updates step.
While this option helps reduce the overall size of the serviced image, it does take longer
to complete the process. Use the wizard to schedule servicing during convenient times.
It also requires additional storage on the site server. You can customize the site to use
an alternate location. For more information, see Specify the drive for offline OS image
servicing.
2. On the Set Schedule page, select the option to Remove superseded updates after
the image is updated. This option isn't automatically enabled. If the image has
more than one index, you can't use this option.
Next steps
Create a task sequence to upgrade an OS
Manage drivers in Configuration
Manager
Article • 10/04/2022
Configuration Manager provides a driver catalog that you can use to manage the
Windows device drivers in your Configuration Manager environment. Use the driver
catalog to import device drivers into Configuration Manager, to group them in
packages, and to distribute those packages to distribution points. Device drivers can be
used when you install the full OS on the destination computer and when you use
Windows PE in a boot image. Windows device drivers consist of a setup information
(INF) file and any additional files that are required to support the device. When you
deploy an OS, Configuration Manager obtains the hardware and platform information
for the device from its INF file.
Driver categories
When you import device drivers, you can assign the device drivers to a category. Device
driver categories help group similarly used device drivers together in the driver catalog.
For example, set all network adapter device drivers to a specific category. Then, when
you create a task sequence that includes the Auto Apply Drivers step, specify a category
of device drivers. Configuration Manager then scans the hardware and selects the
applicable drivers from that category to stage on the system for Windows Setup to use.
Driver packages
Group similar device drivers in packages to help streamline OS deployments. For
example, create a driver package for each computer manufacturer on your network. You
can create a driver package when importing drivers into the driver catalog directly in the
Driver Packages node. After you create a driver package, distribute it to distribution
points. Then Configuration Manager client computers can install the drivers as required.
When you create a driver package, the source location of the package must point
to an empty network share that's not used by another driver package. The SMS
Provider must have Full control permissions to that location.
When you add device drivers to a driver package, Configuration Manager copies it
to the package source location. You can add to a driver package only device
drivers that you've imported and that are enabled in the driver catalog.
You can copy a subset of the device drivers from an existing driver package. First,
create a new driver package. Then add the subset of device drivers to the new
package, and then distribute the new package to a distribution point.
When you use task sequences to install drivers, create driver packages that contain
less than 500 device drivers.
) Important
To create a driver package, you must have an empty network folder that's not used
by another driver package. In most cases, create a new folder before you start this
procedure.
2. On the Home tab of the ribbon, in the Create group, select Create Driver Package.
4. Enter an optional Comment for the driver package. Use this description to provide
information about the contents or the purpose of the driver package.
5. In the Path box, specify an empty source folder for the driver package. Each driver
package must use a unique folder. This path is required as a network location.
) Important
The site server account must have Full control permissions to the specified
source folder.
The new driver package doesn't contain any drivers. The next step adds drivers to the
package.
If the Driver Packages node contains several packages, you can add folders to the node
to separate the packages into logical groups.
Additional actions for driver packages
You can do additional actions to manage driver packages when you select one or more
driver packages from the Driver Packages node.
Creates files that you can use to manually import content and its associated metadata.
Use prestaged content when you have low network bandwidth between the site server
and the distribution points where the driver package is stored.
Distribute content
Distributes the driver package to distribution points, distribution point groups, and
distribution point groups that are associated with collections.
Tip
Starting in version 2010, when you import an object in the Configuration Manager
console, it now imports to the current folder. Previously, Configuration Manager
always put imported objects in the root node.
Moves the driver package to another folder in the Driver Packages node.
Opens the Properties window. Review and change the content and properties of the
driver. For example, change the name and description of the driver, enable or disable it,
and specify on which platforms it can run.
Driver packages have metadata fields for Manufacturer and Model. Use these fields to
tag driver packages with information to assist in general housekeeping, or to identify
old and duplicate drivers that you can delete. On the General tab, select an existing
value, or enter a string to create a new entry.
In the Driver Packages node, these fields display in the list as the Driver Manufacturer
and Driver Model columns. They can also be used as search criteria.
Starting in version 1906, use these attributes to pre-cache content on a client. For more
information, see Configure pre-cache content.
Show members
Updates the driver package on all the distribution points where the site stores it. This
action copies only the content that has changed after the last time it was distributed.
Device drivers
You can install drivers on destination computers without including them in the OS image
that is deployed. Configuration Manager provides a driver catalog that contains
references to all the drivers that you import into Configuration Manager. The driver
catalog is located in the Software Library workspace and consists of two nodes: Drivers
and Driver Packages. The Drivers node lists all the drivers that you've imported into the
driver catalog.
Import device drivers into the driver catalog
Before you can use a driver when you deploy an OS, import it into the driver catalog. To
better manage them, import only the drivers that you plan to install as part of your OS
deployments. Store multiple versions of drivers in the catalog to provide an easy way to
upgrade existing drivers when hardware device requirements change on your network.
As part of the import process for the device driver, Configuration Manager reads the
following properties about the driver:
Provider
Class
Version
Signature
Supported hardware
Supported platform information
By default, the driver is named after the first hardware device that it supports. You can
rename the device driver later. The supported platforms list is based on the information
in the INF file of the driver. Because the accuracy of this information can vary, manually
verify that the driver is supported after you import it into the catalog.
After you import device drivers into the catalog, add them to driver packages or boot
image packages.
) Important
You can't import device drivers directly into a subfolder of the Drivers node. To
import a device driver into a subfolder, first import the device driver into the
Drivers node, and then move the driver to the subfolder.
2. On the Home tab of the ribbon, in the Create group, select Import Driver to start
the Import New Driver Wizard.
Import all drivers in the following network path (UNC): To import all the
device drivers in a specific folder, specify its network path. For example:
\\servername\share\folder .
7 Note
If there are a lot of subfolders and a lot of driver INF files, this process
can take time.
Import a specific driver: To import a specific driver from a folder, specify the
network path to the Windows device driver INF file.
Specify the option for duplicate drivers: Select how you want Configuration
Manager to manage driver categories when you import a duplicate device
driver
Import the driver and append a new category to the existing categories
Import the driver and keep the existing categories
Import the driver and overwrite the existing categories
Do not import the driver
) Important
When you import drivers, the site server must have Read permission to the
folder, or the import fails.
Hide drivers that are not in a storage or network class (for boot images):
Use this setting to only display storage and network drivers. This option hides
other drivers that aren't typically needed for boot images, such as a video
driver or modem driver.
Hide drivers that are not digitally signed: Microsoft recommends only using
drivers that are digitally signed
In the list of drivers, select the drivers that you want to import into the driver
catalog.
Enable these drivers and allow computers to install them: Select this setting
to let computers install the device drivers. This option is enabled by default.
) Important
If a device driver is causing a problem or you want to suspend the
installation of a device driver, disable it during import. You can also
disable drivers after you import them.
5. On the Add Driver to Packages page, choose whether to add the drivers to a
package.
Select the driver packages that are used to distribute the device drivers.
If necessary, select New Package to create a new driver package. When you
create a new driver package, provide a network share that's not in use by
other driver packages.
If the package has already been distributed to distribution points, select Yes
in the dialog box to update the boot images on distribution points. You can't
use device drivers until they're distributed to distribution points. If you select
No, run the Update Distribution Point action before using the boot image. If
the driver package has never been distributed, you must use the Distribute
Content action in the Driver Packages node.
6. On the Add Driver to Boot Images page, choose whether to add the device drivers
to existing boot images.
7 Note
Select Yes in the dialog box to update the boot images on distribution points.
You can't use device drivers until they're distributed to distribution points. If
you select No, run the Update Distribution Point action before using the
boot image. If the driver package has never been distributed, you must use
the Distribute Content action in the Driver Packages node.
Configuration Manager warns you if the architecture for one or more drivers
doesn't match the architecture of the boot images that you selected. If they
don't match, select OK. Go back to the Driver Details page, and clear the
drivers that don't match the architecture of the selected boot image. For
example, if you select an x64 and x86 boot image, all drivers must support
both architectures. If you select an x64 boot image, all drivers must support
the x64 architecture.
7 Note
The architecture is based on the architecture reported in the INF from
the manufacturer.
If a driver reports it supports both architectures, then you can import
it into either boot image.
Configuration Manager warns you if you add device drivers that aren't
network or storage drivers to a boot image. In most cases, they aren't
necessary for the boot image. Select Yes to add the drivers to the boot
image, or No to go back and modify your driver selection.
2. Select the device drivers that you want to add to a driver package.
3. On the Home tab of the ribbon, in the Driver group, select Edit, and then choose
Driver Packages.
4. To add a device driver, select the check box of the driver packages to which you
want to add the device drivers. To remove a device driver, clear the check box of
the driver packages from which you want to remove the device driver.
If you're adding device drivers that are associated with driver packages, you can
optionally create a new package. Select New Package, which opens the New
Driver Package dialog box.
5. If the package has already been distributed to distribution points, select Yes in the
dialog box to update the boot images on distribution points. You can't use device
drivers until they're distributed to distribution points. If you select No, run the
Update Distribution Point action before using the boot image. If the driver
package has never been distributed, you must use the Distribute Content action in
the Driver Packages node. Before the drivers are available, you must update the
driver package on distribution points.
Add only storage and network drivers to boot images. Other types of drivers aren't
usually required in Windows PE. Drivers that aren't required unnecessarily increase
the size of the boot image.
Add only device drivers to a boot image for the version of Windows PE. For
example, if you're using the Windows ADK for Windows 11, only add Windows 11
drivers.
Make sure that you use the correct device driver for the architecture of the boot
image. Don't add an x86 device driver to an x64 boot image.
2. Select the device drivers that you want to add to the driver package.
3. On the Home tab of the ribbon, in the Driver group, select Edit, and then choose
Boot images.
4. To add a device driver, select the check box of the boot image to which you want
to add the device drivers. To remove a device driver, clear the check box of the
boot image from which you want to remove the device driver.
5. If you don't want to update the distribution points where the boot image is stored,
clear the Update distribution points when finished check box. By default, the
distribution points are updated when the boot image is updated.
Select Yes in the dialog box to update the boot images on distribution points.
You can't use device drivers until they're distributed to distribution points. If
you select No, run the Update Distribution Point action before using the
boot image. If the driver package has never been distributed, you must use
the Distribute Content action in the Driver Packages node.
Configuration Manager warns you if the architecture for one or more drivers
doesn't match the architecture of the boot images that you selected. If they
don't match, select OK. Go back to the Driver Details page and clear the
drivers that don't match the architecture of the selected boot image. For
example, if you select an x64 and x86 boot image, all drivers must support
both architectures. If you select an x64 boot image, all drivers must support
the x64 architecture.
7 Note
The architecture is based on the architecture reported in the INF from
the manufacturer.
If a driver reports it supports both architectures then you can import
it into either boot image.
Configuration Manager warns you if you add device drivers that aren't
network or storage drivers to a boot image. In most cases, they aren't
necessary for the boot image. Select Yes to add the drivers to the boot image
or No to go back and modify your driver selection.
Categorize
Clears, manages, or sets an administrative category for the selected drivers.
Delete (driver)
Removes the driver from the Drivers node and also removes the driver from the
associated distribution points.
Disable
Prohibits the driver from being installed. This action temporarily disables the driver. The
task sequence can't install a disabled driver when you deploy an OS.
7 Note
This action only prevents drivers from installing using the Auto Apply Driver task
sequence step.
Enable
Lets Configuration Manager client computers and task sequences install the device
driver when you deploy the OS.
Move (driver)
Moves the device driver to another folder in the Drivers node.
Properties (driver)
Opens the Properties dialog box. Review and change the properties of the driver. For
example, change its name and description, enable or disable it, and specify which
platforms it can run on.
Auto Apply Drivers: This step lets you automatically match and install device
drivers as part of an operating system deployment. You can configure the task
sequence step to install only the best matched driver for each detected hardware
device. Alternatively, specify that the step installs all compatible drivers for each
detected hardware device, and then let Windows Setup choose the best driver. You
can also specify a driver category to limit the drivers that are available for this step.
Apply Driver Package: This step lets you make all device drivers in a specific driver
package available for Windows Setup. In the specified driver packages, Windows
Setup searches for the device drivers that are required. When you create stand-
alone media, you must use this step to install device drivers.
When you use these task sequence steps, you can also specify how the drivers are
installed on the computer where you deploy the OS. For more information, see Manage
task sequences to automate tasks.
Driver reports
You can use several reports in the Driver Management reports category to determine
general information about the device drivers in the driver catalog. For more information
about reports, see Introduction to reporting.
Next steps
Manage task sequences to automate tasks
Manage user state in Configuration
Manager
Article • 10/04/2022
You can use Configuration Manager task sequences to capture and restore the user
state data in OS deployment scenarios where you want to keep the user state of the
current OS. For example:
Deployments where you want to capture the user state from one computer to
restore it on another computer.
Update deployments where you want to capture and restore the user state on the
same computer.
Configuration Manager uses the User State Migration Tool (USMT) 10.0 to manage the
migration of user state data from a source computer to a destination computer after the
operating system installation completes. For more information about common
migration scenarios for the USMT 10.0, see Common Migration Scenarios.
7 Note
The links that Windows uses to store the user state locally are referred to as hard-
links. A hard-link migration store is a USMT 10.0 feature. It scans the computer for
user files and settings and then creates a directory of hard-links to those files.
USMT then uses the hard-links to restore the user data after the task sequence
deploys the new OS.
) Important
You can't use a state migration point and use hard-links to store the user state data
at the same time.
When USMT captures the user state, it can store the information in one of the following
ways:
Store the data remotely on a state migration point. The Capture User State task
sequence step sends the data to the server. After the task sequence deploys the
OS, the Restore User State step downloads the data from the server and restores
the user state on the destination computer.
Store the data locally to a specific location. In this scenario, the Capture User State
step copies the user data to a specific location on the destination computer. After
the task sequence deploys the OS, the Restore User State step gets the user data
from that local location.
Use hard-links. In this scenario, the user state data remains on the drive when the
task sequence removes the old OS. After the task sequence deploys the OS, the
Restore User State step uses the hard-links to restore the user state data to its
original location.
2. Create a computer association between the source computer and the destination
computer. Create this association before you capture the user state on the source
computer.
3. Create a task sequence to capture and restore user state. Specifically, add the
following task sequence steps to capture user data from a computer, store the user
date on a state migration point, and restore the user data to a computer:
Capture User State: Runs USMT to capture and store the user state data on
the state migration point.
Restore User State: Runs USMT to restore the data from a state migration
point to the destination computer.
Release State Store: Notifies the state migration point that the capture or
restore action is complete.
Capture User State: Run USMT to capture and store the user state to a local folder,
with or without hard-links.
Restore User State: Run USMT to restore the data from the local store to the
destination computer.
7 Note
The user state data that the hard-links reference remains on the computer
after the task sequence removes the old OS.
For more information about the state migration point and the steps to configure it, see
State migration point.
Computer associations
You use a computer association when you install an OS on new hardware and restore
user data settings from another computer. The association defines the relationship
between the source and destination computers. The source computer is an existing
computer that Configuration Manager manages. It has the original user state. The
destination computer is a new computer with a new OS. You restore the user state to
the destination computer.
7 Note
2. On the Home tab, in the Create group, select Create Computer Association.
a. For the Source computer, select Search. Locate and select the existing
computer that has the user state.
b. Repeat this process for the Destination computer. You may need to Import
computer information to predefine the device record.
4. Switch to the User Accounts tab to specify the user accounts to migrate to the
destination computer. Select one of the following migration behaviors:
Capture and restore all user accounts: Use this option to create multiple
associations to the same source computer.
Capture all user accounts and restore specified accounts: This option
captures all user accounts from the source computer and only restores the
accounts that you specify to the destination computer. You can also use this
setting to create multiple associations to the same source computer.
Capture and restore specified user accounts: This option captures and
restores only the accounts that you specify. When you select this option, you
can't create multiple associations to the same source computer. This value is
the default option.
Select the new button (gold asterisk) to add user accounts from Active Directory.
Next steps
State migration point
Use the information in this topic to deploy operating systems to unknown computers in
your Configuration Manager environment. An unknown computer is a computer that is
not managed by Configuration Manager. This means that there is no record of these
computers in the Configuration Manager database. Unknown computers include the
following:
You can deploy operating systems to unknown computers with the following
deployment methods:
Select an unknown computer object to use in the deployment. You can deploy the
operating system to one of the unknown computer objects in the All Unknown
Computers collection or you can add the objects in the All Unknown Computer
collection to another collection. Configuration Manager provides two unknown
computer objects in the All Unknown Computers collection. One object is for x86
computers and the other object is for x64 computers.
7 Note
The x86 Unknown Computer object is for computers that are only x86
capable. The x64 Unknown Computer object is for computers that are x86
and x64 capable. In other words, these objects describe the architecture of the
destination computer. They do not describe the operating system that you
want to deploy to the destination computer.
After the Configuration Manager client is installed, a record for the computer is
created and the computer is listed in the appropriate Configuration Manager
collection. If the computer fails to install the operating system image or the
Configuration Manager client, an "Unknown" record for the computer is created
and the computer appears in the All Systems collection.
7 Note
During the installation of the operating system image, the task sequence can
retrieve collection variables but not computer variables from this computer.
PXE
Select the Enable unknown computer support check box on the PXE tab for a
distribution point that is enabled for PXE. For more information, see Configuring
distribution points to accept PXE requests.
Bootable media
Select the Enable unknown computer support check box on the Security page of
the Create Task Sequence Media Wizard. For more information, see Configuring
distribution points to accept PXE requests and Use PXE to deploy Windows over
the network with Configuration Manager.
Prestaged media
Select the Enable unknown computer support check box on the Security page of
the Create Task Sequence Media Wizard. For more information, see Create
prestaged media with Configuration Manager.
Associate users with a destination
computer in Configuration Manager
Article • 10/04/2022
When you use Configuration Manager to deploy operating systems, you can associate
users with the destination computer. This option works whether a single user or multiple
users are the primary users of the destination computer.
User device affinity supports user-centric management for when you deploy
applications. When you associate a user with the destination computer on which to
install an OS, you can later deploy applications to that user, and the applications
automatically install on the destination computer. While you can configure support for
user device affinity during OS deployment, you can't use user device affinity to deploy
the OS.
For more information about user device affinity, see Link users and devices with user
device affinity.
There are several methods by which you can integrate user device affinity into your OS
deployments. You can integrate user device affinity into PXE deployments, bootable
media deployments, and pre-staged media deployments.
Configuring user device affinity support doesn't have a built-in method to validate the
user identity. This behavior is important when a technician is provisioning the computer
and enters the information on behalf of the user. In addition to setting how task
sequence handles the user information, configuring these options on the distribution
point and media provides the ability to restrict the deployments that are started from a
PXE boot or from a specific type of media.
Prepare Windows PE peer cache to
reduce WAN traffic in Configuration
Manager
Article • 10/04/2022
When you deploy a new operating system in Configuration Manager, computers that
run the task sequence can use Windows PE Peer Cache to obtain content from a local
peer (a peer cache source) instead of downloading content from a distribution point.
This helps minimize wide area network (WAN) traffic in branch office scenarios where
there is no local distribution point.
A peer cache source is a client that is configured for peer cache and that makes
content available to other peer cache clients that request that content.
Driver package
Packages and Programs (When the client continues to run the task sequence in the
full operating system, the client gets this content from a peer cache source if the
task sequence was originally configured for peer cache when running in Windows
PE.)
Applications
Software updates
The Windows PE Peer Cache source should be a desktop computer that is always
powered on and available to peer cache clients.
The Windows PE Peer Cache has a client cache size sufficient to store the images.
Port for content downloading from a peer cache source (HTTP and HTTPS). By
default, this is TCP port 8003.
Tip
Configure the client cache on clients to ensure they have enough space to hold
and store the images you deploy. Windows PE Peer Cache does not affect the
configuration or behavior of the client cache.
The deployment options for the task sequence deployment must be configured as
Download content locally when needed by task sequence.
A peer cache client that cannot find a peer cache source with the content will
download it from a distribution point. If the client receives client settings that
enable peer cache and the task sequence is configured to preserve the cached
content, the client becomes a peer cache source.
A peer cache client can get content from another peer cache client (a peer cache
source). Because the client is configured for peer cache, when it runs a task
sequence that is configured to preserve the cached content, the client becomes a
peer cache source.
A client runs a task sequence that includes the optional step, Download Package
Content, which is used to prestage the relevant content that is included in the
Windows PE Peer Cache task sequence. When you use this method:
The client does not need to install the image that is being deployed.
In addition to the Download Package Content option, the task sequence must
also use the Configuration Manager client cache option. You use this option to
store the content in the clients cache so the client can act as a peer cache
source for other peer cache clients.
The following procedures will help you configure Windows PE Peer Cache on
clients and configure task sequences that support peer cache.
Tip
Also remember that when you configure this setting as part of the Default
Client Settings, the configuration applies to all clients in your environment.
2. Under Client Cache Settings, set Enable Configuration Manager client in full OS
to share content to Yes.
By default, the port for broadcasts is set to 8004 and the port for content
downloads is set to 8003. You can change both.
3. Save and deploy the Client Settings to the clients that you select to be a peer
cache source.
After a device is configured with this settings object, the device is configured to act
as a peer cache source. These settings should be deployed to potential peer cache
clients to configure the required ports and protocols.
SMSTSPeerDownload
Value: TRUE
SMSTSPeerRequestPort
When you do not use the default port configured in the Client Settings (8004), you
must configure this variable with a custom value of the network port to use for the
initial broadcast.
SMSTSPreserveContent
Value: TRUE
This flags the content in the task sequence to be retained in the Configuration
Manager client cache after the deployment. This is different than using
SMSTSPersisContent which only preserves the content for the duration of the task
sequence and uses the task sequence cache, not the Configuration Manager client
cache.
In the log, locate an entry similar to the following where <SourceServerName> identifies
the computer from which the client obtained the content. This computer should be a
peer cache source, and not a distribution point server. Other details will vary based on
your local environment and configurations.
There are different methods that you can use to deploy an OS in your Configuration
Manager environment:
Deploy Windows to Go
Use PXE to deploy Windows over the
network with Configuration Manager
Article • 10/04/2022
7 Note
When you create an OS deployment that targets only x64 BIOS computers, both
the x64 boot image and x86 boot image must be available on the distribution
point.
Complete the steps in one of the OS deployment scenarios, and then use the sections in
this article to prepare for PXE-initiated deployments.
2 Warning
If you use PXE deployments, and configure device hardware with the network
adapter as the first boot device, these devices can automatically start an OS
deployment task sequence without user interaction. Deployment verification
doesn't manage this configuration. While this configuration may simplify the
process and reduce user interaction, it puts the device at greater risk for accidental
reimage.
Starting in version 2006, PXE-based task sequences can download cloud-based content.
The PXE-enabled distribution point still requires the boot image, and the device needs
an intranet connection to the management point. It can then get additional content
from a content-enabled cloud management gateway (CMG). For more information, see
Bootable media support for cloud-based content.
Configure distribution points for PXE
To deploy operating systems to Configuration Manager clients that make PXE boot
requests, configure one or more distribution points to accept PXE requests. Then the
distribution point responds to PXE boot requests, and determines the appropriate
deployment action. For more information, see Install or modify a distribution point.
7 Note
When you enable a PXE responder on a distribution point without Windows Deployment
Service, it can be on the same server as the DHCP service. Add the following settings to
support this configuration:
To enable PXE on a boot image, select Deploy this boot image from the PXE-
enabled distribution point from the Data Source tab in the boot image properties.
When you change the properties for the boot image, update and redistribute the
boot image to distribution points. For more information, see Distribute content.
7 Note
The behaviors of each can cause different results in some scenarios. The exclusion
list never boots a client with the listed MAC address, no matter what.
The duplicate ID list doesn't use the MAC address to find the task sequence policy
for a client. If it matches the SMBIOS ID, or if there's a task sequence policy for
unknown machines, the client still boots.
When you deploy operating systems with PXE, you can create an exclusion list on each
distribution point. Add the MAC addresses to the exclusion list of the computers you
want the distribution point to ignore. Listed computers don't receive the deployment
task sequences that Configuration Manager uses for PXE deployment.
1. Create a text file on the PXE-enabled distribution point. For example, name the file
pxeExceptions.txt.
2. Use a plain text editor, such as Notepad, to edit the file. Add the MAC addresses of
the computers that the PXE-enabled distribution point should ignore. Separate the
MAC address values by colons, and enter each address on a separate line. For
example: 01:23:45:67:89:ab
3. Save the text file on the PXE-enabled distribution point. You can save it to any
location on the server.
4. Edit the registry on the PXE-enabled distribution point. Browse to the following
registry path: HKLM\Software\Microsoft\SMS\DP . Create a MACIgnoreListFile string
value. Add the full path to the text file on the PXE-enabled distribution point.
2 Warning
If you use the Registry Editor incorrectly, you might cause serious problems
that may require you to reinstall Windows. Microsoft can't guarantee that you
can solve problems that result from using the Registry Editor incorrectly. Use
the Registry Editor at your own risk.
5. After you make this registry change, restart the WDS service or PXE responder
service. You don't need to restart the server.
You can redeploy a required PXE deployment by clearing the status of the last PXE
deployment assigned to a Configuration Manager collection or a computer. For more
information on the Clear Required PXE Deployments action, see Manage clients or
Manage collections. This action resets the status of that deployment and reinstalls the
most recent required deployments.
) Important
The PXE protocol isn't secure. Make sure that the PXE server and the PXE client are
located on a physically secure network, such as in a data center, to prevent
unauthorized access to your site.
The following list provides details about how a boot image is selected for clients
booting with PXE:
1. Configuration Manager looks in the site database for the system record that
matches the MAC address or SMBIOS of the client that's trying to boot.
7 Note
If a computer that's assigned to a site boots to PXE for a different site, the
policies aren't visible for the computer. For example, if a client is already
assigned to site A, the management point and distribution point for site B
aren't able to access the policies from site A. The client doesn't successfully
PXE boot.
2. Configuration Manager looks for task sequences that are deployed to the system
record found in step 1.
3. In the list of task sequences found in step 2, Configuration Manager looks for a
boot image that matches the architecture of the client that's trying to boot. If a
boot image is found with the same architecture, that boot image is used.
If it finds more than one boot image, it uses the highest or most recent task
sequence deployment ID. In the case of a multi-site hierarchy, the higher letter site
would take precedence in that string comparison. For example, if they're both
matched otherwise, a year-old deployment from site ZZZ is selected over
yesterday's deployment from site AAA.
4. If a boot image isn't found with the same architecture, Configuration Manager
looks for a boot image that's compatible with the architecture of the client. It looks
in the list of task sequences found in step 2. For example, a 64-bit BIOS/MBR client
is compatible with 32-bit and 64-bit boot images. A 32-bit BIOS/MBR client is
compatible with only 32-bit boot images. UEFI clients are only compatible with
matching architecture. A 64-bit UEFI client is compatible with only 64-bit boot
images and a 32-bit UEFI client is compatible with only 32-bit boot images.
Next steps
User experiences for OS deployment
Use Software Center to deploy Windows
over the network with Configuration
Manager
Article • 10/04/2022
You can make a task sequence that installs an OS available in Software Center. A user
can run a task sequence from Software Center for the following OS deployment
scenarios:
Complete the steps in one of those OS deployment scenarios. Then use the following
sections to prepare for deployments that are available in Software Center.
On the Deployment Settings page of the deployment, for the Make available to the
following setting, select one of the following options:
After you create the deployment, clients in the target collection will show the task
sequence in Software Center.
7 Note
If multiple users are signed in on the device, task sequence deployments might not
appear in Software Center until other users are signed out.
Next steps
User experiences for OS deployment
Use bootable media to deploy Windows
over the network with Configuration
Manager
Article • 10/04/2022
Bootable media only includes the boot image and a pointer to the task sequence. It
downloads the OS image and other referenced content from the network. Since the
bootable media doesn't contain much content, you can update the task sequence and
most content without having to replace the media.
Deploy operating systems over the network with boot media in the following scenarios:
Complete the steps in one of the OS deployment scenarios and then use the following
sections to use bootable media to deploy the OS.
For more information, see Bootable media support for cloud-based content.
Next steps
User experiences for OS deployment
Use standalone media to deploy
Windows without using the network
Article • 10/04/2022
Complete the steps in one of these OS deployment scenarios. Then use the following
sections to prepare for and create the standalone media.
The Auto Apply Drivers step. Automatic application of device drivers from the
driver catalog isn't supported. To make a specific set of drivers available to
Windows Setup, use the Apply Driver Package step.
Associating users with the destination computer for user device affinity.
Dynamic package installs with the Install Package step.
Known issue with Install Package step and media created at the
central administration site
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 (CAS). The CAS doesn't
have the necessary client configuration policies. These policies are required to enable
the software distribution agent when the task sequence runs. 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 PowerShell Script step. Add it after the Setup Windows
and ConfigMgr step and before the first Install Package step. The Run PowerShell
Script step runs the following commands to enable the software distribution agent
before the first Install Package step:
PowerShell
$namespace = "root\ccm\policy\machine\requestedconfig"
$class = "CCM_SoftwareDistributionClientConfig"
$classArgs = @{
Enabled = 'true'
LockSettings='TRUE'
PolicySource='local'
PolicyVersion='1.0'
SiteSettingsKey='1'
Next steps
User experiences for OS deployment
Use multicast to deploy Windows over
the network with Configuration
Manager
Article • 10/04/2022
Multicast is a network optimization method that you can use when multiple clients are
likely to download the same OS image at the same time. When you use multicast,
multiple computers simultaneously download the OS image as it's multicast by the
distribution point. This behavior is instead of each client downloading a copy of the
image over a separate connection from the distribution point.
Deploy operating systems over the network by using multicast in the following OS
deployment scenarios:
Complete the steps in one of these OS deployment scenarios. Then use the following
sections to support multicast.
This method of deployment can reduce network traffic because the boot image and OS
image are already on the destination computer. You can specify applications, packages,
and driver packages to also include in the prestaged media. After it installs the OS on
the computer, the task sequence first checks the prestaged cache for applications,
packages, or driver packages. If it can't find the necessary content, or there is a newer
revision available online, the task sequence downloads the content from a distribution
point.
Complete the steps in one of these OS deployment scenarios. Then use the following
sections to prepare for and create the prestaged media.
3. The computer connects to the management point for available task sequences to
complete the process.
Next steps
User experiences for OS deployment
Create a task sequence for non-OS
deployments
Article • 10/04/2022
Task sequences in Configuration Manager are used to automate different kinds of tasks
within your environment. These tasks are primarily designed and tested for deploying
operating systems. Configuration Manager has many other features that should be the
primary technology that you use for the following scenarios:
Application installation
7 Note
Starting in version 2002, install complex applications using task sequences via
the application model. Add a deployment type to an app that's a task
sequence, either to install or uninstall the app. For more information, see
Create Windows applications.
Starting in version 2010, use the task sequence deployment type of an application
to deploy a task sequence to a user-based collection.
Setting configuration
The power of task sequences lies in their flexibility and how you use them. They can
configure client settings, distribute software, update drivers, edit user states, and do
other tasks independent of OS deployment. You can create a custom task sequence to
add any number of tasks. The use of custom task sequences for non-OS deployment is
supported in Configuration Manager. However, if a task sequence results in unwanted or
inconsistent results, look at ways to simplify the operation:
Check Readiness
Install Application
Install Package
Restart Computer
Next steps
Create a custom task sequence
Deploy Windows To Go with
Configuration Manager
Article • 10/04/2022
For more information about Windows To Go, see Windows To Go feature overview.
Provision Windows To Go
Windows To Go is an operating system stored on a USB-connected external drive. You
can provision the Windows To Go drive much like you provision other operating system
deployments. However, because Windows To Go is designed to be a user-centric and
highly mobile solution, you must take a slightly different approach to provisioning these
drives.
Before you create prestaged media, you must distribute the boot image to a
distribution point.
7 Note
Boot images are used to install the operating system on the destination
computers in your Configuration Manager environment. They contain a
version of Windows PE that installs the operating system, as well as any
additional device drivers that are required. Configuration Manager provides
two boot images: One to support x86 platforms and one to support x64
platforms. You can also create your own boot images. For more information,
see Manage boot images.
Before you create prestaged media, you must distribute the Windows 8 operating
system image to a distribution point.
7 Note
Operating system images are .WIM format files and represent a compressed
collection of reference files and folders that are required to successfully install
and configure an operating system on a computer. For more information, see
Manage operating system images.
You must create a task sequence for a Windows 8 deployment that you will
reference when you create prestaged media. For more information, see Manage
task sequences to automate tasks.
You can add content, such as applications and device drivers, in addition to the
operating system image and boot image during the prestage phase. This reduces the
time it takes to deploy an operating system and reduces network traffic because the
content is already on the drive.
2. In the Software Library workspace, expand Operating Systems, and then click Task
Sequences.
3. On the Home tab, in the Create group, click Create Task Sequence Media to start
the Create Task Sequence Media Wizard.
4. On the Select Media Type page, specify the following information, and then click
Next.
) Important
5. On the Media Management page, specify the following information, and then click
Next.
Select Site-based media if you want the media to contact only the specified
management point.
6. On the Media Properties page, specify the following information, and then click
Next.
Media file: Specify the name and path of the output files. The wizard writes
the output files to this location. For example:
\\servername\folder\outputfile.wim
7. On the Security page, specify the following information, and then click Next.
Select Protect the media with a password and 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 prestaged media.
) Important
As a security best practice, always assign a password to help protect the
prestaged media.
7 Note
When you protect the prestaged media with a password, the user is
prompted for the password even when the media is configured with the
Allow unattended operating system deployment setting.
For HTTPS communications, select Import PKI certificate, and then specify
the certificate to import and its password.
For more information about this client certificate that is used for boot images,
see PKI certificate requirements.
Specify Allow user device affinity with auto-approval if you want the
media to automatically associate users with the destination computer. This
functionality is based on the actions of the task sequence that deploys the
operating system. In this scenario, the task sequence creates a relationship
between the specified users and destination computer when it deploys the
operating system to the destination computer.
Specify Do not allow user device affinity if you do not want the media to
associate users with the destination computer. In this scenario, the task
sequence does not associate users with the destination computer when it
deploys the operating system.
8. On the Task Sequence page, specify the Windows 8 task sequence that you
created in the previous section.
9. On the Boot image page, specify the following information, and then click Next.
) Important
The architecture of the boot image that is distributed must be appropriate for
the architecture of the destination computer. For example, an x64 destination
computer can boot and run an x86 or x64 boot image. However, an x86
destination computer can boot and run only an x86 boot image. For Windows
8 certified computers in EFI mode, you must use an x64 boot image.
Boot image: Specify the boot image to start the destination computer.
Distribution point: Specify the distribution point that hosts the boot image.
The wizard retrieves the boot image from the distribution point and writes it
to the media.
7 Note
The administrative user must have Read access rights to the boot image
content on the distribution point. For more information, see Package
access account.
10. On the Images page, specify the following information, and then click Next.
Image package: Specify the package that contains the Windows 8 operating
system image.
Image index: Specify the image to deploy if the package contains multiple
operating system images.
Distribution point: Specify the distribution point that hosts the operating
system image package. The wizard retrieves the operating system image from
the distribution point and writes it to the media.
7 Note
The administrative user must have Read access rights to the operating
system image content on the distribution point. For more information,
see Package access account.
11. On the Select Application page, select application content to include in the media
file, and then click Next.
12. On the Select Package page, select additional package content to include in the
media file, and then click Next.
13. On the Select Driver Package page, select driver package content to include in the
media file, and then click Next.
14. On the Distribution Points page, select one or more distribution points that
contain the content required by the task sequence, and then click Next.
15. On the Customization page, specify the following information, and then click Next.
Variables: Specify the variables that the task sequence uses to deploy the
operating system. For Windows To Go, use the SMSTSPreferredAdvertID
variable to automatically select the Windows To Go deployment by using the
following format:
Tip
When you use this variable with a task sequence that is set to run
unattended (set earlier in this procedure), no user interaction is required
and the computer automatically boots to the Windows To Go
deployment when it detects a Windows To Go drive. The user is still
prompted for a password if the media is configured for password
protection.
Prestart commands: Specify any prestart commands that you want to run
before the task sequence runs. Prestart commands can be a script or
executable that can interact with the user in Windows PE before the task
sequence runs to install the operating system. Configure the following for the
Windows To Go deployment:
2 Warning
After BitLocker is enabled for the passphrase, the user must enter the
passphrase each time the computer boots to the Windows To Go
drive.
Tip
To retrieve the username, you can create an input box as part of the
prestart command, have the user enter their username, and then set
the variable with the value. For example, you can add the following
lines to the prestart command script file:
env("SMSTSUDAUsers") = UserID
For more information about how to create a script file to use as your
prestart command, see Prestart commands for task sequence media.
It can take an extended period of time for the wizard to complete the
prestaged media file.
7 Note
The computer account of the site server must have Read access rights to the
source folder.
2. Copy the prestaged media file that you created in the Create prestaged media
section to the package source folder.
4. Create a package and program by using the Create Package and Program Wizard.
8. On the Package page, specify the name and description of the package. For
example, enter Windows To Go for the package name and specify Package to
configure a Windows To Go drive using Configuration Manager for the package
description.
9. Select This package contains source files, specify the path to the package source
folder that you created in step 1, and then click Next.
10. On the Program Type page, select Standard program, and then click Next.
Name: Specify the name of the program. For example, type Creator for the
program name.
Run: Specify Normal to run the program based on the system and program
defaults.
Program can run: Specify whether the program can run only when a user is
logged on.
Run mode: Specify whether the program will run with the logged on users
permissions or with administrative permissions. The Windows To Go Creator
requires elevated permissions to run.
Select Allow users to view and interact with the program installation, and
then click Next.
Estimated disk space: Specify the size of the package source folder for the
Windows To Go Creator.
Maximum allowed run time (minutes): Specifies the maximum time that the
program is expected to run on the client computer. By default, this value is
set to 120 minutes.
) Important
If you are using maintenance windows for the collection on which this
program is run, a conflict might occur if the Maximum allowed run time
is longer than the scheduled maintenance window. If the maximum run
time is set to Unknown, it will start during the maintenance window, but
will continue to run until it completes or fails after the maintenance
window is closed. If you set the maximum run time to a specific period
(not set to Unknown) that exceeds the length of any available
maintenance window, then that program will not be run.
7 Note
7 Note
If the maximum run time (whether set by the user or as the default
value) is exceeded, Configuration Manager stops the program if run with
administrative rights is selected and Allow users to view and interact
with the program installation is not selected on the Standard Program
page.
7 Note
BitLocker for Windows To Go requires a passphrase. In the Create prestaged media
step, you set the passphrase as part of a prestart command by using the
OSDBitLockerPIN variable.
Use the following procedure to update the Windows 8 task sequence to enable
BitLocker for Windows To Go.
4. On the Package page, specify the name and description of the package. For
example, type BitLocker for Windows To Go for the package name and specify
Package to update BitLocker for Windows To Go for the package description.
5. Select This package contains source files, specify the location for the BitLocker
tool for Windows To Go, and then click Next. The BitLocker tool is available on any
Configuration Manager primary site server at the following location:
<ConfigMgrInstallationFolder>\OSD\Tools\WTG\BitLocker\
9. In the Software Library workspace, expand Operating Systems, and then click Task
Sequences.
10. Select the Windows 8 task sequence that you reference in the prestaged media.
11. On the Home tab, in the Task Sequence group, click Edit.
12. Click the Setup Windows and ConfigMgr step, click Add, click General, and then
click Run Command Line. The Run Command Line step is added after the Setup
Windows and ConfigMgr step.
13. On the Properties tab for the Run Command Line step, add the following:
a. Name: Specify a name for the command line, such as Enable BitLocker for
Windows To Go.
Parameters:
c. Select Package, and then specify the package that you created at the start of
this procedure.
Variable = _SMSTSWTG
Condition = Equals
Value = True
7 Note
The Enable BitLocker step, which is likely after the new command-line step, is
not used to enable BitLocker for Windows To Go. However, you can keep this
step in the task sequence to use for Windows 8 deployments that do not use
a Windows To Go drive.
Deploy the Windows To Go Creator package and task
sequence
Windows To Go is a hybrid deployment process. Therefore, you must deploy the
Windows To Go Creator package and the Windows 8 task sequence. Use the following
procedures to complete the deployment process.
3. Select the Windows To Go package that you created in the Create a Windows To
Go Creator package step.
b. Collection: Click Browse to select the collection to which you want to deploy
the Windows To Go package.
c. Use default distribution point groups associated to this collection: Select this
option if you want to store the package content on the collections default
distribution point group. If you have not associated the selected collection with
a distribution point group, this option will be unavailable.
6. On the Content page, click Add and then select the distribution points or
distribution point groups to which you want to deploy the content associated with
this package and program.
7. On the Deployment Settings page, select Available for the deployment type, and
then click Next.
8. On the Scheduling, configure when this package and program will be deployed or
made available to client devices.
The options on this page will differ depending on whether the deployment action
is set to Available or Required.
9. On the Scheduling, configure the following settings, and then click Next.
a. Schedule when this deployment will become available: Specify the date and
time when the package and program is available to run on the destination
computer. When you select UTC, this setting ensures that the package and
program is available for multiple destination computers at the same time rather
than at different times, according to the local time on the destination
computers.
b. Schedule when this deployment will expire: Specify the date and time when
the package and program expires on the destination computer. When you
select UTC, this setting ensures that the task sequence expires on multiple
destination computers at the same time rather than at different times, according
to the local time on the destination computers.
10. On the User Experience page of the Wizard, specify the following information:
Allow clients to share content with other clients on the same subnet: Select
this option to reduce load on the network by allowing clients to download
content from other clients on the network that have already downloaded and
cached the content. This option utilizes Windows BranchCache and can be
used on computers running Windows Vista SP2 and later.
All clients to use a fallback source location for content: Specify whether to
allow clients to fall back and use a non-preferred distribution point as the
source location for content when the content is not available on a preferred
distribution point.
2. In the Software Library workspace, expand Operating Systems, and then click Task
Sequences.
3. Select the Windows 8 task sequence that you created in the Prerequisites to
provision Windows To Go step.
b. Collection: Click Browse to select the collection that includes all devices for
which a user might provision Windows To Go.
) Important
If the prestaged media that you created in the Create prestaged media
section uses the SMSTSPreferredAdvertID variable, you can deploy the task
sequence to the All Systems collection and specify the Windows PE only
(hidden) setting on the Content page. Because the task sequence is
hidden, it will only be available to media.
c. Use default distribution point groups associated to this collection: Select this
option if you want to store the package content on the collections default
distribution point group. If you have not associated the selected collection with
a distribution point group, this option will be unavailable.
6. On the Deployment Settings page, configured the following settings, and then
click Next.
Purpose: Select Available. When you deploy the task sequence to a user, the
user sees the published task sequence in the Application Catalog and can
request it on demand. If you deploy the task sequence to a device, the user
will see the task sequence in Software Center and can install it on demand.
Make available to the following: Specify whether the task sequence is
available to Configuration Manager clients, media, or PXE.
) Important
Use the Only media and PXE (hidden) setting for automated task
sequence deployments. Select Allow unattended operating system
deployment and set the SMSTSPreferredAdvertID variable as part of the
prestaged media to have the computer automatically boot to the
Windows To Go deployment with no user interaction when it detects a
Windows To Go drive. For more information about these prestaged
media settings, see the Create prestaged media section.
7. On the Scheduling page, configure the following settings, and then click Next.
a. Schedule when this deployment will become available: Specify the date and
time when the task sequence is available to run on the destination computer.
When you select UTC, this setting ensures that the task sequence is available for
multiple destination computers at the same time rather than at different times,
according to the local time on the destination computers.
b. Schedule when this deployment will expire: Specify the date and time when
the task sequence expires on the destination computer. When you select UTC,
this setting ensures that the task sequence expires on multiple destination
computers at the same time rather than at different times, according to the
local time on the destination computers.
9. On the Alerts page, specify the alert settings that you want for this task sequence
deployment, and then click Next.
10. On the Distribution Points page, specify the following information, and then click
Next.
7 Note
If you did not enable boot redirection as part of the command line for the creator
program in the Create a Windows To Go Creator package section, the user might
be required to manually boot to the Windows To Go drive on every system restart.
Prerequisites
Before you create a task sequence to install an OS, the following requirements must be
in place:
Required
A boot image
An OS image
Add applications
3. On the Create a New Task Sequence page, select Install an existing Image
package, and then select Next.
Task sequence name: Specify a name that identifies the task sequence.
Boot image: Specify the boot image that the task sequence uses to install the
OS on the destination computer. The boot image contains a version of
Windows PE, plus any additional required device drivers. For more
information, see Manage boot images.
) Important
Image package: Specify the package that contains the OS image to install.
For more information, see Manage OS images.
Image: If the OS image package has multiple images, specify the index of the
OS image to install.
Partition and format the target computer installing the operating system:
Specify whether you want the task sequence to partition and format the
destination computer before it installs the OS.
Product key: Specify the Windows product key, if necessary. You can specify
encoded volume license keys and standard product keys. If you use a non-
encoded product key, each group of five characters must be separated by a
dash ( - ). For example: XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
Server licensing mode: Specify that the server license is Per seat, Per server,
or that no license is specified. If the server license is Per server, also specify
the maximum number of server connections.
Specify how to handle the administrator account for the new OS:
Randomly generate the local administrator account password and
disable the account on all supported platform (recommended): Windows
disables the local administrator account after the task sequence deploys
the OS image.
) Important
You can browse to locate domains in the local forest, but you must
specify the domain name for a remote forest.
You can also specify an organizational unit (OU) in the Domain OU field. This
setting is optional, and specifies the LDAP X.500-distinguished name of the
OU. If it doesn't already exist, Windows creates the computer account in this
OU.
Account: The user name and password for the account that has permissions
to join the specified domain. For example: domain\user or %variable%.
) Important
Capture user settings: The task sequence captures the user state. For more
information about how to capture and restore the user state, see Manage
user state.
Capture network settings: The task sequence captures network settings from
the destination computer. It captures the membership of the domain or
workgroup, also the network adapter settings.
9. On the Include Updates page, specify whether to install required software updates,
all software updates, or no software updates. If you specify to install software
updates, Configuration Manager installs only those software updates that are
targeted to the collections that the destination computer is a member of.
10. On the Install Applications page, specify the applications to install on the
destination computer. If you specify multiple applications, you can also specify that
the task sequence continues if the installation of a specific application fails.
You can now deploy the task sequence to a collection of computers. For more
information, see Deploy a task sequence.
Pre-cache content
Starting in version 1906, you can enable this type of task sequence to pre-cache content.
The pre-cache feature for available deployments of task sequences lets clients download
relevant content before a user installs the task sequence.
7 Note
Use the Create Task Sequence Wizard to create this task sequence.
When you use the Create Task Sequence Wizard to create this new task sequence,
some of the step names are different than what they would be if you manually
added these task sequence steps to an existing task sequence.
Task Description
sequence
group or
step
Capture Create a task sequence group. A task sequence group keeps similar task sequence
File and steps together for better organization and error control.
Settings -
(New task This group contains the steps needed to capture files and settings from the
sequence operating system of a reference computer.
group)
Capture Use this task sequence step to identify the Microsoft Windows settings to capture
Windows from the reference computer. You can capture the computer name, user and
Settings organizational information, and the time zone settings.
Capture Use this task sequence step to capture network settings from the reference
Network computer. You can capture the domain or workgroup membership of the reference
Settings computer and the network adapter setting information.
Capture Create a task sequence group within a task sequence group. This subgroup contains
User Files the steps needed to capture user state data. Similar to the initial group that you
and added, this subgroup keeps similar task sequence steps together for better
Settings - organization and error control.
(New task
sequence
subgroup)
Request Use this task sequence step to request access to a state migration point where the
User State user state data is stored. You can configure this task sequence step to capture or
Storage restore the user state information.
Capture Use this task sequence step to use the User State Migration Tool (USMT) to capture
User Files the user state and settings from the reference computer that will receive the task
and sequence associated with this task step. You can capture the standard options or
Settings configure which options to capture.
Release Use this task sequence step to notify the state migration point that the capture or
User State restore action is complete.
Storage
Task Description
sequence
group or
step
Install Create another task sequence subgroup. This subgroup contains the steps needed
Operating to install and configure the Windows PE environment.
System -
(New task
sequence
group)
Restart in Use this task sequence step to specify the restart options for the destination
Windows computer that receives this task sequence. This step will display a message to the
PE user indicating that the computer will be restarted so that the installation can
continue.
This step uses the read-only _SMSTSInWinPE task sequence variable. If the
associated value equals false the task sequence step continues.
Partition This task sequence step specifies the actions necessary to format the hard drive on
Disk 0 the destination computer. The default disk number is 0.
This step uses the read-only _SMSTSClientCache task sequence variable. This step
runs if the Configuration Manager client cache doesn't exist.
Apply Use this task sequence step to install the operating system image onto the
Operating destination computer. This step first deletes all files on the volume, except for any
System Configuration Manager-specific control files. It then applies all volume images
contained in the WIM file to the corresponding sequential disk volume on the target
computer. You can specify a sysprep answer file and also configure which disk
partition is used for the installation.
Apply Use this task sequence step to configure the Windows settings configuration
Windows information for the destination computer. The windows settings you can apply are
Settings user and organizational information, product or license key information, time zone,
and the local administrator password.
Apply Use this task sequence step to specify the network or workgroup configuration
Network information for the destination computer. You can also specify if the computer uses
Settings a DHCP server or you can statically assign the IP address information.
Apply Use this task sequence step to install drivers as part of the operating system
Device deployment. You can allow Windows Setup to search all existing driver categories by
Drivers selecting Consider drivers from all categories or limit which driver categories
Windows Setup searches by selecting Limit driver matching to only consider
drivers in selected categories.
This step uses the read-only _SMSTSMediaType task sequence variable. This task
sequence step runs only if the value of the variable doesn't equal FullMedia.
Task Description
sequence
group or
step
Apply Use this task sequence step to make all device drivers in a driver package available
Driver for use by Windows setup.
Package
Setup Create another task sequence subgroup. This subgroup contains the steps needed
Operating to set up the installed operating system.
System -
(New task
sequence
group)
Setup Use this task sequence step to install the Configuration Manager client software.
Windows Configuration Manager installs and registers the Configuration Manager client GUID.
and You can assign the necessary installation parameters in the Installation properties
ConfigMgr window.
Install Use this task sequence step to specify how software updates are installed on the
Updates destination computer. The destination computer isn't evaluated for applicable
software updates until this task sequence step runs. At that point, the destination
computer is evaluated for software updates similar to any other Configuration
Manager-managed client.
This step uses the read-only _SMSTSMediaType task sequence variable. This task
sequence step runs only if the value of the variable doesn't equal FullMedia.
Restore Create another task sequence subgroup. This subgroup contains the steps needed
User Files to restore the user files and settings.
and
Settings -
(New task
sequence
subgroup)
Request Use this task sequence step to request access to a state migration point where the
User State user state data is stored.
Storage
Restore Use this task sequence step to run the User State Migration Tool (USMT) to restore
User Files user state and settings to a destination computer.
and
Settings
Release Use this task sequence step to notify the state migration point that the user state
User State data is no longer needed.
Storage
Create a task sequence to upgrade an
OS in Configuration Manager
Article • 10/04/2022
Starting in version 2103, you can upgrade by using a feature update deployed with the
task sequence. This integration combines the simplicity of Windows servicing with the
flexibility of task sequences. Servicing uses content that you synchronize through the
software update point. This process simplifies the need to manually get, import, and
maintain the Windows image content used with a standard task sequence to upgrade
Windows. The size of the servicing ESD file is generally smaller than the OS upgrade
package and WIM image file.
Prerequisites
Before you create the task sequence, make sure the following requirements are in place:
Required
An OS upgrade package is available in the Configuration Manager console.
Starting in version 2103, you can also use a feature update. In this case, the OS
upgrade package isn't required. For more information, see Requirements for a
feature update in a task sequence.
When upgrading to Windows Server 2016 or later, select the Ignore any
dismissable compatibility messages setting in the Upgrade Operating System task
sequence step. Otherwise the upgrade fails.
7 Note
If the feature update isn't already downloaded, you can manage the
deployment package when you deploy the task sequence.
When you deploy the task sequence, you can also select the option of No
deployment package for the feature update. When clients run the task
sequence, they download the feature update from peers or the Microsoft
cloud.
The option to Pre-download content for this task sequence doesn't apply to
feature updates.
Review the configuration of the following client settings in the Software Updates
group, which are applicable to this scenario:
Specify thread priority for feature updates: In most instances, set this value to
Normal.
Enable Dynamic Update for feature updates: Use this setting to use dynamic
update to install language packs, features on demand, drivers, and cumulative
updates during Windows Setup. Clients download these other updates from the
internet.
Allow clients to download delta content when available: If you use Windows
Delivery Optimization, the content that the client downloads may be much
smaller.
If you need to create a new task sequence, you need an OS upgrade package to
complete the Create Task Sequence Wizard.
7 Note
To create a task sequence to upgrade Windows, you typically use the steps in the
Process section. The task sequence includes the Upgrade OS step, as well as
additional recommended steps and groups to handle the end-to-end upgrade
process.
You can create a custom task sequence and add the Upgrade OS step. If you
choose this method, also add the Restart Computer step after the Upgrade OS
step. Make sure to use the setting for The currently installed default operating
system to restart the computer into the installed OS and not Windows PE.
If you have an existing in-place upgrade task sequence, edit or copy it. Then change the
Upgrade OS task sequence step to install the feature update.
Starting in version 2107, you can create a new task sequence with just a feature update.
If you export a task sequence with the Upgrade OS step that uses a feature update, the
exported task sequence doesn't include the feature update content. When you import
the task sequence, readd the Upgrade OS step with the feature update.
This behavior is similar if you migrate a task sequence with a feature update between
hierarchies.
Standalone media isn't supported for a task sequence with a feature update. When you
try to create standalone media, it fails with entries similar to the following in
CreateTSMedia.log:
log
Unable to retrieve policy for Task Sequence XYZ004BD from site XYZ.
MediaGenerator::~MediaGenerator()
Failed to create media generator (0x80070490)
Media creation process that was started from Admin Console completed.
Process
To upgrade the OS on clients, create a task sequence and select Upgrade an operating
system from upgrade package in the Create Task Sequence Wizard. The wizard adds the
task sequence steps to upgrade the OS, apply software updates, and install applications.
2. On the Home tab of the ribbon, in the Create group, select Create Task Sequence.
3. On the Create a New Task Sequence page of the Create Task Sequence Wizard,
select Upgrade an operating system from an upgrade package, and then select
Next.
Task sequence name: Specify a name that identifies the task sequence.
5. On the Upgrade the Windows Operating System page, specify the following
settings:
Upgrade package: Specify the upgrade package that contains the OS
upgrade source files. Verify that you've selected the correct upgrade package
by looking at the information in the Properties pane. For more information,
see Manage OS upgrade packages.
Product key: Specify the Windows product key for the OS to install. Specify
encoded volume license keys or standard product keys. If you use a standard
product key, separate each group of five characters by a dash ( - ). For
example: XXXXX-XXXXX-XXXXX-XXXXX-XXXXX . When the upgrade is for a volume
license edition, the product key may not be required.
7 Note
) Important
When the task sequence runs on a device, the Configuration Manager client creates
several scripts to control the task sequence behavior in various scenarios. When the
task sequence completes, the client doesn't remove these scripts until the
computer restarts. These script files don't contain sensitive information.
Customize
The default task sequence template for in-place upgrade includes other groups with
recommended actions to add before and after the upgrade process. These actions are
common among many customers who are successfully upgrading devices to Windows
10 or later. For more information, see In-place upgrade recommendations.
Next steps
Deploy the task sequence, Deploy the task sequence over the internet, or Create a
phased deployment.
The pre-cache feature for available deployments of task sequences lets clients download
relevant OS upgrade package content before a user installs the task sequence. For more
information, see Configure pre-cache content.
Task sequence steps to manage BIOS to
UEFI conversion
Article • 10/04/2022
Windows includes many security features that require UEFI-enabled devices. You might
have newer Windows devices that support UEFI, but are using legacy BIOS. Previously,
converting a device to UEFI required you to go to each device, repartition the hard disk,
and reconfigure the firmware.
1. Create a new task sequence group after the steps to capture files and settings, and
before the steps to install the OS. For example, create a group after the Capture
Files and Settings group named BIOS-to-UEFI.
2. On the Options tab of the new group, add a new task sequence variable as a
condition. Set _SMSTSBootUEFI not equal true. With this condition, the task
sequence only runs these steps on BIOS devices.
3. Under the new group, add the Restart Computer task sequence step. In Specify
what to run after restart, select The boot image assigned to this task sequence is
selected. This action restarts the computer in Windows PE.
6. Add the Format and Partition Disk task sequence step. In this step, configure the
following options:
a. Create the FAT32 partition to convert to UEFI before the OS is installed. For Disk
type, choose GPT.
b. Go to the properties for the FAT32 partition. In the Variable field, enter
TSUEFIDrive . When the task sequence detects this variable, it prepares the
7. Add another Restart Computer task sequence step. In Specify what to run after
restart, select The boot image assigned to this task sequence is selected to start
the computer in Windows PE.
Tip
By default, the EFI partition size is 500 MB. In some environments, the boot
image is too large to store on this partition. To work around this issue,
increase the size of the EFI partition. For example, set it to 1 GB.
Requirements
A supported version of Windows 10 or later
Computers that support UEFI
OEM tool that converts the computer's firmware from BIOS to UEFI
2. Edit the task sequence. In the Post-Processing group, make the following changes:
a. Add the Run Command Line step. Specify the command line for the MBR2GPT
tool. When run in the full OS, configure it to covert the disk from MBR to GPT
without modifying or deleting data. In Command line, enter the following
command: MBR2GPT.exe /convert /disk:0 /AllowFullOS
Tip
You can also choose to run the MBR2GPT.EXE tool when in Windows PE
instead of in the full OS. Add a step to restart the computer to Windows PE
before the step to run the MBR2GPT.EXE tool. Then remove the /AllowFullOS
option from the command line.
For more information about the tool and available options, see MBR2GPT.EXE.
a. Add a step to run the OEM tool that converts the firmware from BIOS to UEFI.
This step is typically Run Command Line, with a command line to run the OEM
tool.
b. Add the Restart Computer step, and select The currently installed default
operating system.
7 Note
To avoid potential hardware driver issues when deploying custom reference images
to different model devices, it is recommended to create custom reference images
using virtual machines (VMs). This minimizes the amount of potentially conflicting
drivers that are included as part of the custom reference image. Additionally it is
recommended not to add any drivers to the custom reference image via either the
Auto Apply Drivers task or the Apply Driver Package task.
The packages associated with the task sequence, such as applications, must be available
on distribution points before you deploy the build and capture task sequence.
Requirements
Before you create a task sequence to install an OS, make sure the following components
are in place:
Required
Boot image
OS image
Software updates
Applications
2. On the Home tab of the ribbon, in the Create group, select Create Task Sequence
to start the Create Task Sequence Wizard.
3. On the Create a New Task Sequence page, select Build and capture a reference
operating system image.
Task sequence name: Specify a name that identifies the task sequence.
Boot image: Specify the boot image to use with this task sequence.
) Important
Image package: Specify the OS image package, which contains the required
files to install the OS.
Image index: Specify the index of the OS to install in the image. If the OS
image contains multiple versions, select the version that you want to install.
Product key: If necessary, specify the product key for the Windows OS to
install. You can specify encoded volume license keys and standard product
keys. If you use a non-encoded product key, separate each group of five
characters with a dash ( - ). For example: XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
Server licensing mode: If necessary, specify that the server license is Per seat,
Per server, or that no license is specified. If the server license is Per server,
also specify the maximum number of server connections.
Specify how to configure the administrator account for the deployed OS:
Enable the account and specify the local administrator password: Use the
same password for the local administrator account on all computers where
you deploy this OS.
) Important
You can browse to locate domains in the local forest. Specify the domain
name for a remote forest.
You can also specify an organizational unit (OU). This setting is optional, and
specifies the LDAP X.500 distinguished name of the OU in which to create the
computer account, if it doesn't already exist.
Account: Specify the user name and password for the account that has
permissions to join the specified domain. For example: domain\user or
%variable% .
) Important
8. On the Include Updates page, specify whether to install required software updates,
all software updates, or no software updates. If you specify to install software
updates, Configuration Manager installs only those software updates that are
targeted to the collections that the destination computer is a member of.
7 Note
The System Preparation page appears next in the wizard, but it's no longer
used. Select Next to continue.
10. On the Images Properties page, specify the following settings for the OS image:
Created by: Specify the name of the user to note as the creator of the OS
image.
Version: Specify your version number that's associated with the OS image.
This attribute doesn't need to be the OS version, as the site stores that value
separately.
Account: Specify the Windows account that has permissions to the network
share where the image is stored.
To add additional steps to the task sequence, select it, and choose Edit. For more
information about how to edit a task sequence, see Use the task sequence editor.
Deploy the task sequence to a reference computer in one of the following ways:
After you capture the image, you can deploy it to other computers. For more
information about how to deploy the captured OS image, see Create a task sequence to
install an OS.
2. On the Home tab of the ribbon, in the Create group, select Create Task Sequence.
This action starts the Create Task Sequence Wizard.
3. On the Create a New Task Sequence page, select Create a new custom task
sequence.
4. On the Task Sequence Information page, specify a name for the task sequence.
Optionally add a description for the task sequence.
5. Specify a boot image for the task sequence. Configuration Manager uses this boot
image to start the reference computer with Windows PE. For more information, see
Manage boot images.
7. In the Task Sequences node, select the new task sequence. Then on the Home tab
of the ribbon, in the Task Sequence group, select Edit. This action opens the task
sequence editor.
Go to the Add menu, select Images, and then choose Prepare ConfigMgr Client for
Capture. This step generalizes the Configuration Manager client on the reference
computer.
7 Note
9. Go to the Add menu, select Images, and choose Prepare Windows for Capture.
This step runs Sysprep, and then restarts the computer to the Windows PE boot
image specified for the task sequence. For this action to complete successfully,
don't join the reference computer to a domain.
10. Go to the Add menu, select Images, and choose Capture Operating System Image.
This step only runs from Windows PE to capture the hard drives on the reference
computer. Configure the following settings:
Name and Description: Optionally, you can change the name of the task
sequence step and provide a description.
Destination: Specify a shared network folder where the output .WIM file is
stored. This file contains the OS image based on the settings that you specify
by using this wizard. If you specify a folder that contains an existing .WIM file,
it's overwritten.
Description, Version, and Created by: Optionally, provide details about the
image to capture.
Capture operating system image account: Specify the Windows account that
has permissions to the network share you specified. Select Set to specify the
name of that Windows account.
Select OK to save your changes and close the task sequence editor.
Deploy the task sequence to a reference computer in one of the following ways:
After you capture the image, you can deploy it to other computers. For more
information about how to deploy the captured OS image, see Create a task sequence to
install an OS.
7 Note
Always use the Create Task Sequence Wizard to create this type of task sequence.
The wizard adds steps to the task sequence with slightly different names that what
you'd see if you manually add the same steps.
Group: Build the Reference Machine
This group contains the actions necessary to build a reference computer.
Task Description
sequence
step
Restart in Restart the destination computer to the boot image assigned to the task
Windows PE sequence. This step displays a message to the user that the computer will be
restarted so that the installation can continue.
This step uses the read-only _SMSTSInWinPE task sequence variable. If the
associated value equals false , then the task sequence step continues.
Partition Disk Partition and format the hard drive on the destination computer in BIOS mode.
0 - BIOS The default disk number is 0 .
This step uses several read-only task sequence variables. For example, it only
runs if the Configuration Manager client cache doesn't exist, and doesn't run if
the computer is configured for UEFI.
Partition Disk Partition and format the hard drive on the destination computer in UEFI mode.
0 - UEFI The default disk number is 0 .
This step uses several read-only task sequence variables. For example, it only
runs if the Configuration Manager client cache doesn't exist, and only runs if the
computer is configured for UEFI.
Apply Install the specified OS image on the destination computer. This step first deletes
Operating all files on the volume, other than Configuration Manager-specific control files. It
System then applies all volume images contained in the WIM file to the corresponding
sequential disk volume on the target computer.
Apply Specify the network or workgroup configuration information for the destination
Network computer.
Settings
Apply Device Match and install drivers as part of this OS deployment. For more information,
Drivers see Auto Apply Drivers.
This step uses the read-only _SMSTSMediaType task sequence variable. If the
associated value doesn't equal FullMedia , this step doesn't run.
Task Description
sequence
step
Setup Install the Configuration Manager client software. Configuration Manager installs
Windows and and registers the Configuration Manager client GUID. Include any necessary
Configuration Installation properties.
Manager
Install Specify how software updates are installed on the destination computer. The
Updates destination computer isn't evaluated for applicable software updates until this
step runs. At that point, the evaluation is similar to any other Configuration
Manager-managed client. For more information, see Install Software Updates.
This step uses the read-only _SMSTSMediaType task sequence variable. If the
associated value doesn't equal FullMedia , this step doesn't run.
Prepare OS Runs Sysprep to generalize Windows. It then restarts the computer into
the Windows PE boot image specified for the task sequence.
Capture the Captures the image to the specified network share and .WIM file.
Reference Machine
) Important
After you capture an image from a reference computer, don't capture another OS
image from the reference computer. Registry entries are created during the initial
configuration. Create a new reference computer each time that you capture the OS
image. If you plan to use the same reference computer to create future OS images,
first uninstall and reinstall the Configuration Manager client.
Next steps
Methods to deploy enterprise operating systems
Create a task sequence to capture and
restore user state in Configuration
Manager
Article • 10/04/2022
Use Configuration Manager task sequences to capture and restore the user state data in
OS deployment scenarios. In these scenarios, you want to retain the user state of the
current OS. Depending on the type of task sequence you create, the capture and restore
steps might be automatically added as part of the task sequence. In other scenarios, you
might need to manually add the capture and restore steps to the task sequence. This
article provides the steps that you must add to an existing task sequence to capture and
restore user state data.
Request State Store: If you store the user state on the state migration point, you
need this step.
Capture User State: This step captures the user state data. It then stores the data
on either the state migration point or the local disk using hardlinks.
Restore User State: This step restores the user state data on the destination
computer. It can retrieve the data from a state migration point or if hardlinked on
the local disk.
Release State Store: If you store the user state on the state migration point, you
need this step. This step removes the data from the state migration point.
Use the following procedures to add the task sequence steps needed to capture and
restore the user state. For more information about creating a task sequence, see
Manage task sequences to automate tasks.
2. If you're using a state migration point to store the user state, add the Request
State Store step to the task sequence. In the Task Sequence Editor, click Add. Point
to User State, and then click Request State Store. Configure the properties and
options for this step, and then click Apply. For more information about the
available settings, see Request State Store.
3. Add the Capture User State step to the task sequence. In the Task Sequence
Editor, click Add. Point to User State, and then click Capture User State. Configure
the properties and options for this step, and then click Apply. For more
information about the available settings, see Capture User State.
) Important
When you add this step to your task sequence, also set the
OSDStateStorePath task sequence variable to specify where to store the user
state data. If you store the user state locally, don't specify a root folder as that
can cause the task sequence to fail. When you store the user data locally
always use a folder or subfolder. For more information about this variable, see
Task sequence variables.
4. If you're using a state migration point, add the Release State Store step to the task
sequence. In the Task Sequence Editor, click Add. Point to User State, and then
click Release State Store. Configure the properties and options for this step, and
then click Apply. For more information about the available settings, see Release
State Store.
) Important
The task sequence action that runs before the Release State Store step must
be successful before the Release State Store step starts.
Deploy this task sequence to capture the user state on a destination computer. For
information about how to deploy task sequences, see Deploy a task sequence.
1. In the Task Sequence list, select a task sequence, and then click Edit.
2. Add the Restore User State step to the task sequence. In the Task Sequence
Editor, click Add. Point to User State, and then click Restore User State. This step
establishes a connection to the state migration point if necessary. Configure the
properties and options for this step, and then click Apply. For more information
about the available settings, see Restore User State.
) Important
When you use the Capture User State step with the option to Capture all user
profiles with standard options, you must select the Restore local computer
user profiles setting in the Restore User State step. Otherwise the task
sequence will fail.
7 Note
If you store the user state by using local hardlinks and the restore isn't
successful, you can manually delete the hardlinks that were created to store
the data. The task sequence can run the USMTUtils tool to automate this
action with a Run Command Line step. If you use USMTUtils to delete the
hardlink, add a Restart Computer step after you run USMTUtils.
3. If you're using a state migration point to store the user state, add the Release
State Store step to the task sequence. In the Task Sequence Editor, click Add. Point
to User State, and then click Release State Store. Configure the properties and
options for this step, and then click Apply. For more information about the
available settings, see Release State Store.
) Important
The task sequence action that runs before the Release State Store step must
be successful before the Release State Store step starts.
Deploy this task sequence to restore the user state on a destination computer. For
information about deploying task sequences, see Deploy a task sequence.
Next steps
Monitor the task sequence deployment
Create a custom task sequence with
Configuration Manager
Article • 10/04/2022
When you create a custom task sequence in Configuration Manager, it contains no task
sequence steps. After you create the task sequence, edit it, and add the task sequence
steps you need.
2. On the Home tab of the ribbon, in the Create group, select Create Task Sequence.
This action starts the Create Task Sequence Wizard.
3. On the Create a New Task Sequence page, select Create a new custom task
sequence.
After you complete the Create Task Sequence Wizard, Configuration Manager adds the
custom task sequence to the Task Sequences node. You can now edit this task sequence
to add task sequence steps to it.
See also
For a list of available task sequence steps, see Task sequence steps.
For more information about how to edit a task sequence, see Use the task sequence
editor.
Most often you'll use task sequences to automate tasks for OS deployment, but you can
create a custom task sequence to automate different kinds of tasks. For more
information, see Create a task sequence for non-OS deployments.
Starting in version 2002, install complex applications using task sequences via the
application model. Add a deployment type to an app that's a task sequence, either to
install or uninstall the app. For more information, see Create Windows applications.
Next steps
Deploy the task sequence
Manage task sequences
Article • 10/04/2022
After you create a task sequence, there are additional settings that you can configure.
Task sequences are located in the Configuration Manager console. In the Software
Library workspace, expand Operating Systems, and select Task Sequences. The Task
Sequences node, including subfolders that you create, is replicated throughout the
Configuration Manager hierarchy. For planning information, see Planning considerations
for automating tasks.
Edit
Modify a task sequence by adding or removing steps, adding or removing groups, or by
changing the order of the steps. For more information, see Use the task sequence
editor.
Properties
The task sequence editor configures the steps of the task sequence. There are additional
settings available on the Properties of the task sequence, which control other aspects of
how the task sequence runs and behaves.
The following sections provide more details about each tab of the task sequence
properties.
Restart required
Lets the user know whether a restart is required during the installation.
Download size (MB)
Specifies how many megabytes are displayed in Software Center for the task sequence.
Specifies the estimated run time in minutes that's displayed in Software Center for the
task sequence.
Advanced tab
On the Advanced tab, the following settings are available:
Select this option to run a program in another package before the task sequence runs.
By default, this option isn't enabled. You don't need to separately deploy the program
that you specify to run first.
) Important
This setting applies only to task sequences that run in the full OS. If you start the
task sequence by using PXE or boot media, Configuration Manager ignores this
setting.
It also doesn't apply to task sequences that run on clients that communicate via a
cloud management gateway (CMG). This option uses the UNC network path of the
package, which isn't accessible via CMG.
Package: Browse for the package that contains the program to run before this task
sequence.
7 Note
If the selected program fails to run on a client, the task sequence doesn't run.
If the selected program runs successfully, it doesn't run again, even if the task
sequence is rerun on the same client.
Suppress task sequence notifications
Select this option to hide the New Software is available toast notification. You still see
the New software icon from Software Center in the notification area. By default, this
option is disabled.
If you select this option, Configuration Manager temporarily disables all deployments
that contain this task sequence. It also removes the task sequence from the list of
deployments available to run. The task sequence doesn't run until you enable it. By
default, this option is disabled.
Specifies the maximum time in minutes that you expect the task sequence to run on the
destination computer. Use a whole number equal to or greater than zero. By default, this
value is 120 minutes.
) Important
If you're using maintenance windows for the collection to which you deploy this
task sequence, a conflict might occur if the Maximum allowed run time is longer
than the scheduled maintenance window. If you set the maximum run time to 0,
the task sequence starts during the maintenance window. It continues to run until it
completes or fails after the maintenance window is closed. As a result, task
sequences with a maximum run time set to 0 might run past the end of their
maintenance windows. If you set the maximum run time to a specific period (non-
zero) that exceeds the length of any available maintenance window, then that task
sequence doesn't run. For more information, see How to use maintenance
windows.
If you set the value as 0, Configuration Manager evaluates the maximum allowed run
time as 12 hours (720 minutes) for monitoring progress. However, the task sequence
starts as long as the countdown duration doesn't exceed the maintenance window
value.
7 Note
When it reaches the maximum run time, if you don't allow users to interact with a
required deployment, then Configuration Manager stops the task sequence. If the
task sequence itself isn't stopped, Configuration Manager stops monitoring the
task sequence after it reaches the maximum allowed run time.
Use the selected boot image when the task sequence is run. Select Browse to select a
different boot image. Clear this option to disable the use of the selected boot image
when the task sequence runs.
If you select this option, Configuration Manager doesn't check the platform type of the
destination computer when the task sequence runs. This option is selected by default.
This task sequence can only run on the specified client platforms
This option specifies the processors, OS versions, and service packs on which this task
sequence can run. When you select this option, select at least one platform from the list.
By default, no platforms are selected. Configuration Manager uses this information
when is evaluates which destination computers in a collection receive the deployed task
sequence.
7 Note
When you run a task sequence from boot media or PXE, Configuration Manager
ignores this option. The task sequence runs as though the option This program can
run on any platform is selected.
Any task sequence that meets certain conditions is automatically defined as high-
impact. For more general information, see Manage high-risk deployments.
To improve the overall speed of the task sequence, run it with the high-performance
power plan. It configures Windows to use its built-in high-performance power plan,
which delivers maximum performance at the expense of higher power consumption. For
more information, see Task sequence performance.
On the More Options tab of task sequence properties, in the section for the icon, select
Browse. Select an icon from the default shell library, or browse to another file in a local
or network path.
When clients receive the deployment policy, they'll display the icon in Software Center.
7 Note
To take full advantage of new Configuration Manager features, after you update the
site, also update clients to the latest version. While new functionality appears in the
Configuration Manager console when you update the site and console, the
complete scenario isn't functional until the client version is also the latest.
Additional actions
You can manage task sequences by using additional actions when you select a task
sequence.
Edit action
For more information, see Use the task sequence editor.
Enable
Enables the task sequence so that clients can run it. You don't need to redeploy a task
sequence after it's enabled.
Disable
Disables the task sequence so that it can't run on computers. You can deploy a disabled
task sequence, but computers don't run the task sequence until you enable it.
Export
For more information, see Export and import task sequences.
Copy
Makes a copy of the selected task sequence. This action is useful to create a new task
sequence that's based on an existing task sequence.
When you make a copy of a task sequence in a folder, the copy is listed in that folder
until you refresh the task sequence node. After the refresh, the copy appears in the root
folder.
Refresh
Refreshes the details for the selected task sequence.
Delete
Deletes the selected task sequence.
Deploy
For more information, see Deploy a task sequence.
Distribute Content
Starts the Distribute Content Wizard to send the referenced content to distribution
points.
Move
Moves the selected task sequence to another folder in the Task Sequences node.
Properties action
For more information, see Properties.
View
The View action on task sequences is the default. This action lets you see the steps of
the task sequence without locking it for editing. For more information, see Use the task
sequence editor.
Next steps
Distribute referenced content
Configure a task sequence as high-impact and customize the messages that users
receive when they run the task sequence. Any task sequence that meets certain
conditions is automatically defined as high-impact. For more information, see Manage
high-risk deployments.
2 Warning
If you use PXE deployments, and configure device hardware with the network
adapter as the first boot device, these devices can automatically start an OS
deployment task sequence without user interaction. Deployment verification
doesn't manage this configuration. While this configuration may simplify the
process and reduce user interaction, it puts the device at greater risk for accidental
reimage.
7 Note
The client only displays high-impact notifications for required OS deployment task
sequences. It doesn't display them for non-OS deployment or stand-alone task
sequences.
Use the following procedure to create a custom notification for high-impact
deployments.
7 Note
You can only set user notification text when you select the option, This is a
high-impact task sequence.
7 Note
User notification headline text: Specifies the blue text that displays on the
Software Center user notification. For example, in the default user
notification, this section contains "Confirm you want to upgrade the
operating system on this computer."
User notification message text: There are three text boxes that provide the
body of the custom notification. All text boxes require that you add text.
First text box: Specifies the main body of text, typically containing
instructions for the user. For example, in the default user notification, this
section contains "Upgrading the operating system takes time and your
computer might restart several times."
Second text box: Specifies the bold text under the main body of text. For
example, in the default user notification, this section contains "This in-
place upgrade installs the new operating system and automatically
migrates your apps, data, and settings."
Third text box: Specifies the last line of text under the bold text. For
example, in the default user notification, this section contains "Click Install
to begin. Otherwise, click Cancel."
Example
You configure the following custom notification in task sequence properties:
The following notification message displays when the end user opens the installation
from Software Center:
Next steps
Task sequence performance
Task sequence performance
Article • 10/04/2022
To improve the overall speed of the task sequence, run it with the high-performance
power plan. It configures Windows to use its built-in high-performance power plan,
which delivers maximum performance at the expense of higher power consumption.
This option is on by default for new task sequences.
When the task sequence starts, in most scenarios it records the currently enabled power
plan. It then switches the active power plan to the Windows default High Performance
plan. If the task sequence restarts the computer, it repeats this process. At the end of
the task sequence, it resets the power plan to the stored value. This functionality works
in both Windows and Windows PE, but has no effect on virtual machines.
If the task sequence starts in Windows PE, the task sequence doesn't record the
currently enabled power plan for later reuse.
An OS deployment task sequence that reimages the computer (wipe and load)
doesn't preserve the power plan setting of the old OS. At the end of the task
sequence, it restores the default Balanced power plan.
You can use this option on devices with modern standby. It also supports other devices
that don't have that default power plan. When you use this task sequence option, it
creates a temporary power plan that's similar to the default for High Performance. This
power plan modifies the timeout values to 0 for standby, monitor, disk, and hibernate
when plugged in. These configurations prevent these devices from falling asleep during
an OS deployment task sequence. After the task sequence completes, it reverts to the
original power plan, and deletes the temporary plan.
) Important
To take advantage of this Configuration Manager feature, after you update the site,
update clients to the latest version. Also update boot images to include the latest
client components. While new functionality appears in the Configuration Manager
console when you update the site and console, the complete scenario isn't
functional until the client version is also the latest.
2. Select the task sequence to configure, and then in the ribbon select Properties.
Tip
2 Warning
Be cautious with this setting on low performance hardware. Running intense system
operations for an extended period of time can strain low-end hardware. Check with
your hardware manufacturer for specific guidance.
Known issues
Usually, when you change settings in task sequence properties, it updates all existing
deployments. When you change this performance setting in the task sequence
properties, it doesn't affect any existing deployments of the task sequence. To enable or
disable this setting for high performance, create a new task sequence deployment.
Next steps
Distribute referenced content
Distribute referenced content
Article • 10/04/2022
Before clients run a task sequence that references content, distribute that content to
distribution points. At any time, you can select the task sequence and distribute its
content to build a new list of reference packages for distribution. If you make changes
to the task sequence with updated content, redistribute the content before it's available
to clients.
Distribute content
Use the following procedure to distribute the content that is referenced by a task
sequence:
2. In the Task Sequence list, select the task sequence that you want to distribute.
3. On the Home tab of the ribbon, in the Deployment group, select Distribute
Content. This action starts the Distribute Content Wizard.
4. On the General page, verify that the correct task sequence is selected for
distribution.
5. On the Content page, verify the content to distribute, such as the boot image
referenced by the task sequence.
) Important
If the task sequence that you selected references content that's already
distributed to a specific distribution point, the wizard doesn't list that
distribution point.
Next steps
Reduce the size of task sequence policy
When the size of the task sequence policy exceeds 32 MB, the client fails to process the
large policy. The client then fails to run the task sequence deployment. The size of the
task sequence as stored in the site database is smaller, but can still cause problems if
too large. When the client processes the entire task sequence policy, the expanded size
can cause problems over 32 MB.
To check for the 32-MB task sequence policy size on clients, use management insights.
Configuration Manager restricts the following actions for a task sequence in the site
database that's greater than 2 MB in size:
For example, if you try to save changes to a large task sequence, the task sequence
editor will display an error.
Tip
The behavior in version 2010 and later checks for the 2 MB size limit on the task
sequence as stored in the site database. When the client processes the entire task
sequence policy, the expanded size can cause problems over 32 MB. The
management insights check for the 32 MB task sequence policy size.
When you view the list of task sequences in the Configuration Manager console, add the
Size (KB) column. Use this column to identify large task sequences that can cause
problems.
7 Note
Reducing the total number of steps and groups in a task sequence has
minimal impact on the policy size. Each step is generally a couple of KB in
policy. Moving groups of steps to a child task sequence is more impactful.
Instead of entering a script in the Run PowerShell Script step, reference it via a
package.
There's an 8-KB limit on the size of the task sequence environment when it runs.
Review the usage of custom task sequence variables, which can also contribute to
the policy size.
As a last resort, split a complex, dynamic task sequence into separate task
sequences with distinct deployments to different collections.
Next steps
Export and import task sequences
Export and import task sequences
Article • 04/13/2023
Export and import task sequences with or without their related objects. Use this process
to move task sequences between hierarchies. For example, you create a task sequence
in a development lab and export it. You then import that task sequence into the
production environment to deploy.
OS images
Boot images
Packages like the client install package
Driver packages
Applications with dependencies
Other task sequences referenced with the Run task sequence step
Consider the following points when you export and import task sequences:
When you export a task sequence with the Set Dynamic Variables step,
Configuration Manager doesn't export values for variables that you configure with
the Secret value setting. Reenter the values for these variables after you import the
task sequence.
When you have multiple primary sites, import task sequences at the central
administration site.
Export
1. In the Configuration Manager console, go to the Software Library workspace,
expand Operating Systems, and then select the Task Sequences node.
2. In the Task Sequence list, select the task sequences that you want to export. If you
select more than one task sequence, they're all stored in one export file.
3. On the Home tab of the ribbon, in the Task Sequence group, select Export. This
action starts the Export Task Sequence Wizard.
File: Specify the location and name of the export file. If you enter the file
name directly, be sure to include the .zip extension to the file name. If you
browse for the export file, the wizard automatically adds this file name
extension.
If you don't want to export task sequence dependencies, deselect the option
to Export all task sequence dependencies. By default, the wizard scans for all
the related objects and exports them with the task sequence. These
dependencies include any for applications and child task sequences.
If you don't want to copy the content from the package source to the export
location, deselect the option to Export all content for the selected task
sequences and dependencies. If you select this option, the Import Task
Sequence Wizard uses the import path as the new package source location.
If you export content: a .zip file and a folder named export_files, where export is the
name of the .zip file that contains the exported content.
If you include content when you export a task sequence, make sure that you copy the
.zip file and the export_files folder, or the import fails.
7 Note
If you have a multi-site hierarchy, the export of task sequences should be done
from the central administration site because the primary site may not have the
required permissions to all the artifacts.
Import
1. In the Configuration Manager console, go to the Software Library workspace,
expand Operating Systems, and then select the Task Sequences node.
2. On the Home tab of the ribbon, in the Create group, select Import Task Sequence.
This action starts the Import Task Sequence Wizard.
3. On the General page of the ribbon, specify the exported .zip file.
4. On the File Content page, select the action that you require for each object that
you import. This page shows all the objects that Configuration Manager found to
import.
If the object has been previously imported, select one of the following
actions:
Ignore Duplicate (default): This action doesn't import the object. Instead,
the wizard links the existing object to the task sequence.
Overwrite: This action overwrites the existing object with the imported
object. For applications, you can add a revision to update the existing
application or create a new application.
After you import the task sequence, edit the task sequence to specify any passwords
that were in the original task sequence. For security reasons, passwords aren't exported.
Tip
When you import an object in the Configuration Manager console, it imports to the
current folder. In earlier versions of Configuration Manager, it always put imported
objects in the root node.
Next steps
Deploy a task sequence
Deploy a task sequence
Article • 10/04/2022
After you create a task sequence, and distribute the referenced content, deploy it to a
device collection. This action allows the task sequence to run on a device. A deployed
task sequence can run automatically, or when installed by a user of the device.
2 Warning
You can manage the behavior for high-risk task sequence deployments. A high-risk
deployment is a deployment that is automatically installed and has the potential to
cause unwanted results. For example, a task sequence that has a purpose of
Required that deploys an OS is considered a high-risk deployment. For more
information, see Settings to manage high-risk deployments.
Process
Use the following procedure to deploy a task sequence to the computers in a collection.
7 Note
The status messages for the task sequence deployment are displayed in the
message window on a primary site, but they aren't displayed on a central
administration site.
2. In the Task Sequence list, select the task sequence that you want to deploy.
3. On the Home tab of the ribbon, in the Deployment group, select Deploy.
7 Note
If Deploy isn't available, the task sequence has a reference that's not valid.
Correct the reference and then try to deploy the task sequence again.
4. On the General page, specify the following information.
Task sequence: Specify the task sequence to deploy. By default, this box
displays the selected task sequence.
Collection: Select the collection that contains the computers to run the task
sequence.
Use default distribution point groups associated to this collection: Store the
task sequence content on the collection's default distribution point group. If
you haven't associated the selected collection with a distribution point group,
this option is grayed out.
Pre-download content for this task sequence: For more information, see
Configure pre-cache content.
) Important
Some items aren't saved in the template. Make sure you apply the
following items when you run the deployment wizard:
Software Installation
Scheduling
Pre-download content
Available: The user sees the task sequence in Software Center and can
install it on demand.
7 Note
If multiple users are signed into the device, package and task sequence
deployments may not appear in Software Center.
) Important
Use the Only media and PXE (hidden) setting for automated task
sequence deployments. To have the computer automatically boot to the
deployment with no user interaction, select Allow unattended operating
system deployment and set the SMSTSPreferredAdvertID variable as
part of the media. For more information about task sequence variables,
see Task sequence variables.
Send wake-up packets: If the deployment is Required and you select this
option, the site sends a wake-up packet to computers before the client runs
the deployment. This packet wakes the computer from sleep at the
installation deadline time. Before using this option, computers and networks
must be configured for Wake On LAN. For more information, see Plan how to
wake up clients.
7 Note
) Important
When a Windows PE client starts from PXE or boot media, the client doesn't
evaluate deployment schedules. These schedules include start, expire, and
deadline times. Only configure schedules in deployments to clients that start
from the full Windows OS. Consider using other methods, such as
maintenance windows, to control active task sequences deployed to clients
that start from Windows PE.
Schedule when this deployment will become available: Specify the date and
time when the task sequence is available to run on the destination computer.
When you select the UTC option, the task sequence is available for multiple
computers at the same time. Otherwise the deployment is available at
different times, according to the local time on each computer.
If the start time is earlier than the required time, the client downloads the
task sequence content at the start time.
Schedule when this deployment will expire: Specify the date and time when
the task sequence expires on the destination computer. When you select the
UTC option, the task sequence expires on multiple destination computers at
the same time. Otherwise the deployment expires at different times,
according to the local time on each computer.
7 Note
If you schedule a start time for a required deployment that's earlier than
the date and time when the task sequence is available, the Configuration
Manager client downloads the content at the assigned start time. This
behavior occurs even though you scheduled the task sequence to be
available at a later time.
Rerun behavior: Specify when the task sequence reruns. Select one of the
following options:
Never rerun deployed program: If the client has previously run the task
sequence, it doesn't rerun. The task sequence doesn't rerun even if it
originally failed or the task sequence files have changed.
Always rerun program: The task sequence always reruns on the client
when the deployment is scheduled. It reruns even if the task sequence has
already run successfully. This setting is useful when you use recurring
deployments in which the task sequence is routinely updated.
) Important
Rerun if failed previous attempt: The task sequence reruns when the
deployment is scheduled, only if it previously failed to run. This setting is
useful for a required deployment. If the last attempt to run was
unsuccessful, it automatically tries to rerun according to the assignment
schedule.
System restart (if required to complete the installation): Specify whether the
user is allowed to restart the computer after a software installation outside a
configured maintenance window after the assignment time.
Write filter handling for Windows Embedded devices: This setting controls
the installation behavior on Windows Embedded devices that are enabled
with a write filter. Choose the option to commit changes at the installation
deadline or during a maintenance window. When you select this option, a
restart is required and the changes persist on the device. Otherwise, the
application is installed to the temporary overlay, and committed later. When
you deploy a task sequence to a Windows Embedded device, make sure the
device is a member of a collection that has a configured maintenance
window.
Allow task sequence to run for client on the Internet: Specify whether the
task sequence is allowed to run on an internet-based client. For more
information, see Deploy a task sequence over the internet.
8. On the Alerts page, specify the alert settings that you want for this task sequence
deployment.
Allow clients to use distribution points from the default site boundary
group: Specify if clients should download content from a distribution point in
the site default boundary group, when it isn't available from a distribution
point in the current or neighbor boundary groups.
7 Note
10. Starting in version 2103, if you use a feature update with the Upgrade OS task
sequence step, the wizard also includes the Deployment Package page. Select one
of the following options:
For more information on these options, see step 11 for the Deployment Package
page when you Create an automatic deployment rule (ADR).
11. To save these settings to use again, on the Summary tab select Save As Template.
Supply a name for the template and select the settings to save.
Deployment options
These options are on the Distribution Points tab of the task sequence deployment.
They're dynamic based upon other selections in the deployment and attributes of the
task sequence. You may not always see all options.
7 Note
When you use multicast to deploy an OS, download the content to the computers
either as needed or before the task sequence runs.
Download content locally when needed by the running task sequence: Specify
that clients download content from the distribution point as it's needed by the task
sequence. The client starts the task sequence. When a step in the task sequence
requires content, it's downloaded before the step runs.
Download all content locally before starting task sequence: Specify that clients
download all the content from the distribution point before the task sequence
runs. If you make the task sequence available to PXE and boot media deployments
on the Deployment Settings page, this option isn't shown.
Access content directly from a distribution point when needed by the running
task sequence: Specify that clients run the content from the distribution point. This
option is only available when you enable all packages associated with the task
sequence to use a package share on the distribution point. To enable content to
use a package share, see the Data Access tab in the Properties for each package.
) Important
For greatest security, select the options to Download content locally when needed
by the running task sequence or Download all content locally before starting task
sequence. When you select either of these options, Configuration Manager hashes
the package, so that it can ensure package integrity. When you select the option to
Access content directly from a distribution point when needed by the running
task sequence, Configuration Manager doesn't verify the package hash prior to
running the specified program. Because the site can't ensure package integrity, it's
possible for users with administrative rights to alter or tamper with package
contents.
You deploy an OS deployment task sequence that wipes the disk and applies an image.
On the Deployment Settings page, you make it available to an option that includes
media and PXE:
On the Distribution Points page, there's only one deployment option:
The option to Download all content locally before starting task sequence isn't
available because the deployment is made available to media and PXE.
The option to Access content directly from a distribution point when needed by the
running task sequence isn't available. Not all of the referenced content uses a package
share.
You deploy an OS deployment task sequence that wipes the disk and applies an image.
On the Deployment Settings page, you make it available to Only Configuration
Manager clients. On the Distribution Points page, there are two deployment options
available:
The option to Access content directly from a distribution point when needed by the
running task sequence isn't available. Not all of the referenced content uses a package
share.
You create a task sequence that only has several Install Package steps for these script
packages, and the deploy it. On the Deployment Settings page, the only option is to
make available to Only Configuration Manager clients. This option is the only available.
The task sequence isn't for OS deployment, because it doesn't have a boot image
associated with it. On the Distribution Points page, there are three deployment options
available:
For more information, see Deploy a task sequence over the internet.
High-risk deployments
When you deploy a high-risk deployment, such as an OS, the Select Collection window
displays only the custom collections that meet the deployment verification settings that
are configured in the site's properties. High-risk deployments are always limited to
custom collections, collections that you create, and the built-in Unknown Computers
collection. When you create a high-risk deployment, you can't select a built-in collection
such as All Systems. To see all custom collections that contain fewer clients than the
configured maximum size, disable the option to Hide collections with a member count
greater than the site's minimum size configuration. For more information, see Settings
to manage high-risk deployments.
The deployment verification settings are based on the current membership of the
collection. After you deploy the task sequence, Configuration Manager doesn't
reevaluate the collection membership for the high-risk deployment settings.
For example, let's say you set Default size to 100 and the Maximum size to 1000. When
you create a high risk deployment, the Select Collection window only displays
collections that contain fewer than 100 clients. If you clear the Hide collections with a
member count greater than the site's minimum size configuration setting, the window
displays collections that contain fewer than 1000 clients.
When you select a collection that contains a site role, the following behavior applies:
If the collection contains a site system server, and you configured the deployment
verification settings to block collections with site system servers, then an error
occurs. You can't continue creating the deployment.
If one of the following criteria applies, then the Deploy Software Wizard displays a
high-risk warning. To continue, you need to agree to create a high-risk
deployment. The site generates an audit status message.
If the collection contains a site system server, and you configured the
deployment verification settings to warn on collections with site system servers
Next steps
Monitor OS deployments
2 Warning
You can manage the behavior for high-risk task sequence deployments. A high-risk
deployment is a deployment that is automatically installed and has the potential to
cause unwanted results. For example, a task sequence that has a purpose of
Required that deploys an OS is considered a high-risk deployment. For more
information, see Settings to manage high-risk deployments.
7 Note
The task sequence advanced setting to Run another program first doesn't apply to
task sequences that run on clients that communicate via a cloud management
gateway (CMG). This option uses the UNC network path of the package, which isn't
accessible via CMG.
7 Note
In version 2002 and earlier, operations that require a boot media aren't supported with
this setting. Allow a task sequence to run on the internet only for generic software
installations or script-based task sequences that run operations in the standard OS.
7 Note
For all internet-based task sequence scenarios in version 2002 and earlier, start the
task sequence from Software Center. They don't support Windows PE, PXE, or task
sequence media.
Deploy Windows in-place upgrade via CMG
The Windows in-place upgrade task sequence supports deployment to internet-based
clients managed through the cloud management gateway (CMG). This ability allows
remote users to more easily upgrade to Windows without needing to connect to the
intranet.
Make sure all of the content referenced by the in-place upgrade task sequence is
distributed to a content-enabled CMG. Enable the CMG setting: Allow CMG to function
as a cloud distribution point and serve content from Azure storage. Otherwise devices
can't run the task sequence.
When you deploy an upgrade task sequence, use the following settings:
Allow task sequence to run for client on the Internet, on the User Experience tab
of the deployment.
Choose one of the following options on the Distribution Points tab of the
deployment:
Download content locally when needed by the running task sequence. The
task sequence engine can download packages on-demand from a content-
enabled CMG. This option provides additional flexibility with your Windows in-
place upgrade deployments to internet-based devices.
Download all content locally before starting task sequence. With this option,
the Configuration Manager client downloads the content from the cloud source
before starting the task sequence.
(Optional) Pre-download content for this task sequence, on the General tab of the
deployment. For more information, see Configure pre-cache content.
7 Note
Start the task sequence from Software Center. This scenario doesn't support
Windows PE, PXE, or task sequence media.
7 Note
When the task sequence runs, it downloads content from the cloud-based sources.
Review smsts.log on the client.
Enable the following option: Prefer cloud based sources over on-premises
sources. For more information, see Boundary group options for peer
downloads.
Configure the Apply Network Settings task sequence step to join a workgroup.
During the task sequence, the device can't join the on-premises Active Directory
domain. It doesn't have connectivity to a domain controller to join the domain.
When you deploy the task sequence to a collection, configure the following
settings:
User experience page: Allow task sequence to run for client on the internet
Make sure the device has a constant internet connection while the task sequence
runs. Windows PE doesn't support wireless networks, so the device needs a wired
network connection.
If you use a PKI-based certificate for the boot media, configure it for SHA256 with
the Microsoft Enhanced RSA and AES provider. This certificate configuration is
recommended but not required. The certificate can be a v3 (CNG) certificate.
In versions 2010 and 2103, if you configure the management point to Allow
internet-only connections, then you can't use boot media over a CMG. To work
around this issue, configure the management point to Allow intranet and internet
connections.
If your CMG uses a PKI-based certificate, you need to add the trusted root
certificate to the boot image. Otherwise, Windows PE can't communicate with the
CMG because it doesn't trust the CMG's certificate. For more information, see Add
a trusted root certificate to a boot image.
On the Media Management page of the wizard, select the option for Site-based
media.
On the Boot Image page, under Management point select the Cloud
management gateway from the Add Management Points dialog.
When you boot an internet-connected device using this media, it communicates with
the specified CMG. The boot media downloads the policy for the task sequence
deployment via the CMG. As the task sequence runs, it downloads any additional
content and policies over the internet.
After the task sequence runs, the client uses token-based authentication.
1. Open the Start menu. Type run to open the Run window. Open mmc .
3. In the Add or Remove Snap-ins dialog box, select Certificates, then select Add.
a. In the Certificates snap-in dialog box, select Computer account, then select
Next.
b. In the Select Computer dialog box, select Local computer, then select Finish.
tificates . For more information about this registry key, see System Store
Locations.
10. Select the registry key that matches the root certificate's thumbprint.
11. On the File menu, select Export. Specify a file name, and save the .reg file.
12. Edit the file in Notepad. In the key path, change SOFTWARE to winpe-offline , and
save the file. For example:
[HKEY_LOCAL_MACHINE\winpe-
offline\Microsoft\SystemCertificates\AuthRoot\Certificates\eb971f84c0c44b9eb22
a378fecb45747eb971f84]
13. Copy this file to a location that you can access for the next step.
) Important
Make sure this path is to the mounted Windows PE image, not the default
Windows OS path.
5. Name the key for the loaded hive winpe-offline .
6. On the File menu, select Import. Browse to the modified .reg file that you
previously exported and modified. Select Open.
9. Close the registry editor and any other windows that reference files in C:\Mount .
10. Unmount the boot image and commit the changes. For example, DISM /Unmount-
image /Commit /MountDir:C:\Mount
Next steps
Monitor OS deployments
Task sequence
The phased deployment of task sequences doesn't support PXE or media
installation
Application
Software update
You can't use an automatic deployment rule (ADR) with a phased deployment
Prerequisites
Security scope
Deployments created by phased deployments aren't viewable to any administrative user
that doesn't have the All security scope. For more information, see Security scopes.
Distribute content
Before creating a phased deployment, distribute the associated content to a distribution
point.
Application: Select the target application in the console and use the Distribute
Content action in the ribbon. For more information, see Deploy and manage
content.
Task sequence: You have to create referenced objects like the OS upgrade package
before creating the task sequence. Distribute these objects before creating a
deployment. Use the Distribute Content action on each object, or the task
sequence. To view status of all referenced content, select the task sequence, and
switch to the References tab in the details pane. For more information, see the
specific object type in Prepare for OS deployment.
Software update: create the deployment package and distribute it. Use the
Download Software Updates Wizard. For more information, see Download
software updates.
Phase settings
These settings are unique to phased deployments. Configure these settings when
creating or editing the phases to control the scheduling and behavior of the phased
deployment process.
Optionally, use the following Windows PowerShell cmdlets to manually configure phases
for software update and task sequence phased deployments:
New-CMSoftwareUpdatePhase
New-CMTaskSequencePhase
Manually begin the second phase of deployment: The site doesn't automatically
begin the second phase after the first phase succeeds. This option requires that
you manually start the second phase. For more information, see Move to the next
phase.
7 Note
Installation is required after this period of time: Set a deadline for installation a
certain number of days after device is targeted. By default, this value is seven days.
This action is available for software updates from the following nodes:
Software Updates
All Software Updates
Software Update Groups
Windows Servicing, All Windows Updates
Office 365 Client Management, Office 365 Updates
2. On the General page, give the phased deployment a Name, Description (optional),
and select Automatically create a default two phase deployment.
3. Select Browse and choose a target collection for both the First Collection and
Second Collection fields. For a task sequence and software updates, select from
device collections. For an application, select from user or device collections. Select
Next.
) Important
4. On the Settings page, choose one option for each of the scheduling settings. For
more information, see Phase settings. Select Next when complete.
5. On the Phases page, see the two phases that the wizard creates for the specified
collections. Select Next. These instructions cover the procedure to automatically
create a default two-phase deployment. The wizard lets you add, remove, reorder,
edit, or view phases for a phased deployment. For more information on these
additional actions, see Create a phased deployment with manually configured
phases.
6. Confirm your selections on the Summary tab, and then select Next to complete
the wizard.
7 Note
Starting on April 21, 2020, Office 365 ProPlus is being renamed to Microsoft 365
Apps for enterprise. For more information, see Name change for Office 365
ProPlus. You may still see the old name in the Configuration Manager product and
documentation while the console is being updated.
Optionally, use the following Windows PowerShell cmdlets for this task:
New-CMApplicationAutoPhasedDeployment
New-CMSoftwareUpdateAutoPhasedDeployment
New-CMTaskSequenceAutoPhasedDeployment
7 Note
You can't currently manually create phases for an application. The wizard
automatically creates two phases for application deployments.
1. Start the Create Phased Deployment wizard for either a task sequence or software
updates.
2. On the General page of the Create Phased Deployment wizard, give the phased
deployment a Name, Description (optional), and select Manually configure all
phases.
3. From the Phases page of the Create Phased Deployment wizard, the following
actions are available:
Filter the list of deployment phases. Enter a string of characters for a case-
insensitive match of the Order, Name, or Collection columns.
b. On the Phase Settings page of the Add Phase Wizard, configure the
scheduling settings, and select Next when complete. For more
information, see Settings.
7 Note
c. The settings on the User Experience and Distribution Points pages of the
Add Phase Wizard are the same as when normally deploying a task
sequence or software updates.
d. Review the settings on the Summary page, and then complete the Add
Phase Wizard.
Edit: This action opens the selected phase's Properties window, which has
tabs the same as the pages of the Add Phase Wizard.
2 Warning
Move Up or Move Down: The wizard orders the phases by how you add
them. The most recently added phase is last in the list. To change the order,
select a phase, and then use these buttons to move the phase's location in
the list.
) Important
Review the phase settings after changing the order. Make sure the
following settings are still consistent with your requirements for this
phased deployment:
Criteria for success of the previous phase
Conditions for beginning this phase of deployment after success of
the previous phase
4. Select Next. Review the settings on the Summary page, and then complete the
Create Phased Deployment wizard.
Optionally, use the following Windows PowerShell cmdlets for this task:
New-CMSoftwareUpdateManualPhasedDeployment
New-CMTaskSequenceManualPhasedDeployment
After you create a phased deployment, open its properties to make changes:
If a phase isn't active, you can Edit, Remove, or Move it up or down. You can't
move it before an active phase.
When a phase is active, it's read-only. You can't edit it, remove it, or move its
location in the list. The only option is to View the properties of the phase.
Next steps
Manage and monitor phased deployments:
Application
Software update
Task sequence
Manage and monitor phased
deployments
Article • 10/04/2022
This article describes how to manage and monitor phased deployments. Management
tasks include manually beginning the next phase, and suspend or resume a phase.
Application
Software update
Task sequence
1. How to start this action varies based on the type of deployed software:
Software update: Go to the Software Library workspace, and then select one
of the following nodes:
Software Updates
All Software Updates
Software Update Groups
Windows Servicing, All Windows Updates
Office 365 Client Management, Office 365 Updates
4. Select the phased deployment, and click Move to next phase in the ribbon.
Optionally, use the following Windows PowerShell cmdlet for this task: Move-
CMPhasedDeploymentToNext.
1. How to start this action varies based on the type of deployed software:
Software update: Go to the Software Library workspace, and then select one
of the following nodes:
Software Updates
All Software Updates
Software Update Groups
Windows Servicing, All Windows Updates
Office 365 Client Management, Office 365 Updates
4. Select the phased deployment, and click Suspend or Resume in the ribbon.
7 Note
Starting on April 21, 2020, Office 365 ProPlus is being renamed to Microsoft 365
Apps for enterprise. For more information, see Name change for Office 365
ProPlus. You may still see the old name in the Configuration Manager product and
documentation while the console is being updated.
Optionally, use the following Windows PowerShell cmdlets for this task:
Suspend-CMPhasedDeployment
Resume-CMPhasedDeployment
Monitor
Phased deployments have their own dedicated monitoring node, making it easier to
identify phased deployments you have created and navigate to the phased deployment
monitoring view. From the Monitoring workspace, select Phased Deployments, then
double-click one of the phased deployments to see the status.
This dashboard shows the following information for each phase in the deployment:
Total devices or Total resources: How many devices are targeted by this phase.
Status: The current status of this phase. Each phase can be in one of the following
states:
Waiting: The previous phase hasn't yet reached the success criteria for the
deployment to continue to this phase.
Progress: The color-coded deployment states from clients. For example: Success, In
Progress, Error, Requirements Not Met, and Unknown.
Success criteria tile
Use the Select Phase drop-down list to change the display of the Success Criteria tile.
This tile compares the Phase Goal against the current compliance of the deployment.
With the default settings, the phase goal is 95%. This value means that the deployment
needs a 95% compliance to move to the next phase.
In the example, the phase goal is 65%, and the current compliance is 66.7%. The phased
deployment automatically moved to the second phase, because the first phase met the
success criteria.
The phase goal is the same as the Deployment success percentage on the Phase
Settings for the next phase. For the phased deployment to start the next phase, that
second phase defines the criteria for success of the first phase. To view this setting:
1. Go to the phased deployment object on the software, and open the Phased
Deployment Properties.
4. View the value for Deployment success percentage in the Criteria for success of the
previous phase group.
For example, the following properties are for the same phase as the success criteria tile
shown above where the criteria is 65%:
PowerShell
Use the following Windows PowerShell cmdlets to manage phased deployments:
In Configuration Manager, you can view the state of Windows as a service in your
environment. Create servicing plans to form deployment rings, and keep Windows
systems up to date when new builds are released. You can also view alerts when
Windows clients are near end of support for the build version.
For more information about Windows servicing options, see Overview of Windows as a
Service.
Prerequisites
For Configuration Manager version 2203 or later, the WebView2 console extension
must be installed. If needed, select the notification bell in the top right corner of
the console to install the extension.
Enable heartbeat discovery. The data that the Windows servicing dashboard
displays comes from discovery. For more information, see Configure heartbeat
discovery.
Tip
Configure the service connection point for Online, persistent connection mode.
When the site is in offline mode, you don't see data updates in the dashboard until
you get Configuration Manager servicing updates. For more information, see
About the service connection point.
Verify the configuration of the following client settings, to make sure they're
appropriate for your environment:
Specify thread priority for feature updates
Enable Dynamic Update for feature updates
Starting in version 2103, the Windows Servicing dashboard was simplified to make it
more relevant. Servicing plan and Windows 10 ring information were removed from the
dashboard. The following charts are displayed for the selected Collection:
Feature Update Versions: Displays the distribution of Windows major releases. This
chart as previously called Windows 10 Usage.
Quality Update Versions: This chart displays the top five revisions of Windows across
your devices.
Windows 10 Latest Feature Update (added in 2111): This chart shows the number of
devices that installed the latest feature update for Windows 10.
Windows 11 Latest Feature Update (added in 2111): This chart shows the number of
devices that installed the latest feature update for Windows 11.
Latest Feature Update (versions 2103 and 2107): This chart shows the number of
devices that installed the latest feature update.
Collection Errors: This tile shows the number of devices that failed with the specified
error code. For more information, see Analyze SetupDiag errors.
Errors Timeline: Displays the top errors and the number of devices with each error over
the course of time for the chosen collection.
) Important
Create Service Plan: Provides a quick way to create a servicing plan. You specify
the name, collection, deployment package, and readiness state. It only displays the
top 10 collections by size, smallest first, and the top 10 deployment packages by
most recently modified. It uses default values for the other settings. Select
Advanced Settings to start the Create Servicing Plan wizard, where you can
configure all of the service plan settings.
Service Plan Monitoring: Displays servicing plans that you've created and a chart
of the compliance for each. This tile gives you a quick overview of the current state
of the servicing plan deployments. If an earlier deployment ring meets your
expectations for compliance, then you can select a later servicing plan (deploying
ring). Select Deploy Now instead of waiting for the servicing plan rules to
automatically trigger.
Collection errors: Starting in version 2010, this tile shows the number of devices
that failed with the specified error code. You can scope the tile to a specific
collection. For more information, see Analyze SetupDiag errors.
For more detailed information about Windows 10 builds, see the Product Lifecycle
dashboard.
) Important
The information shown in the Windows 10 servicing dashboard is provided for your
convenience and only for use internally within your company. You should not solely
rely on this information to confirm update compliance. Be sure to verify the
accuracy of the information provided to you.
3. Look at the Summary tab and find the pie chart under Statistics.
4. To drill down into the device list, select View Required next to the pie chart. This
action takes you to a temporary node under Devices. Here you can see the devices
requiring the update. You can also take actions for the node such as creating a new
collection from the list.
Servicing plan workflow
Windows servicing plans in Configuration Manager are much like automatic deployment
rules for software updates. You create a servicing plan with the following criteria that
Configuration Manager evaluates:
Upgrades classification: Only updates that are in the Upgrades classification are
evaluated.
Readiness state: The readiness state defined in the servicing plan is compared with
the readiness state for the upgrade. The metadata for the upgrade is retrieved
when the service connection point checks for updates.
Time deferral: The number of days that you specify for How many days after
Microsoft has published a new upgrade would you like to wait before deploying
in your environment in the servicing plan. If the current date is after the release
date plus the configured number of days, Configuration Manager evaluates
whether to include an upgrade in the deployment.
When an upgrade meets the criteria, the servicing plan adds the upgrade to the
deployment package, distributes the package to distribution points, and deploys
the upgrade to the collection. It does these actions based on the settings that you
configure in the servicing plan. Monitor the deployments with the Service Plan
Monitoring tile on the Windows servicing dashboard. For more information, see
Monitor software updates.
7 Note
Windows 10, version 1903 and later was added to Microsoft Update as its own
product rather than being part of the Windows 10 product like earlier versions. This
change caused you to do a number of manual steps to make sure that your clients
see these updates. We've helped reduce the number of manual steps you have to
take for the new product in Configuration Manager version 1906. For more
information, see Configuring products for versions of Windows 10.
7 Note
You can use a task sequence to deploy an upgrade for each Windows build, but it
requires more manual work. You would need to import the updated source files as
an OS upgrade package, and then create and deploy the task sequence to the
appropriate set of computers. However, a task sequence provides additional
customized options, such as the pre-deployment and post-deployment actions.
You can create a basic servicing plan from the Windows servicing dashboard. After you
specify the name, collection, deployment package, and readiness state, Configuration
Manager creates the servicing plan with default values for the other settings. You can
also start the Create Servicing Plan wizard to configure all of the settings.
2. On the Home tab of the ribbon, in the Create group, select Create Servicing Plan.
3. On the General page of the Create Servicing Plan Wizard, configure the following
settings:
Name: Specify the name for the servicing plan. The name must be unique,
help to describe the goal of the servicing plan, and identify it from others in
the Configuration Manager site. The name can't include the following
characters: less than ( < ), greater than ( > ), or ampersand ( & ).
4. On the Servicing Plan page, specify the Target Collection. Members of the
collection receive the Windows upgrades that the servicing plan defines.
) Important
When you deploy a high-risk deployment, such as servicing plan, the Select
Collection window displays only the custom collections that meet the
deployment verification settings. Configure these settings in the site
properties.
Select one of the following options to specify the Windows readiness state to
which this servicing plan should apply:
For more information about servicing channels and what options are best
for you, see Servicing channels.
How many days after Microsoft has published a new upgrade would you
like to wait before deploying in your environment: If the current date is after
the release date plus the number of days that you configure for this setting,
Configuration Manager evaluates whether to include an upgrade in the
deployment.
6. On the Upgrades page, configure the search criteria to filter the upgrades to add
the service plan. It only adds upgrades that meet the specified criteria to the
associated deployment. The following property filters are available:
Architecture
Language
Product Category
Required
) Important
Set the Required field with a value of >=1 . Using this criteria makes sure
that only applicable updates are added to the servicing plan.
Superseded
Title
To view the upgrades that meet the specified criteria, select Preview.
7 Note
When you select local time, it uses the current time on the computer
running the Configuration Manager console. If you then select As soon
as possible for the Software available time or Installation deadline, it
uses the current local time to evaluate when the upgrade is available or
when a client installs it. If the client is in a different time zone, these
actions will occur when the client's time reaches the evaluation time.
Software available time: Select one of the following settings to specify when
the upgrade is available to clients:
7 Note
Write filter handling for Windows Embedded devices: When you deploy an
upgrade to Windows Embedded devices that use a write filter, configure
when and how it commits the changes. When you deploy an upgrade to a
Windows Embedded device, make sure that the device is a member of a
collection that has a configured maintenance window.
9. On the Deployment Package page, first select one of the following options:
a. Name: Specify the name of the deployment package. This name must be
unique and describes the package content. It's limited to 50 characters.
c. Package source: Specify the location of the source files. Type a network
path for the source location. For example: \\server\sharename\path . You
can also select Browse to find a network location.
Before you continue to the next page of the wizard, create the shared
folder for the deployment package source files.
The location that you specify can't be used by another software
deployment package.
The SMS Provider computer account and the user that's running the
wizard to download the software updates must both have Write NTFS
permissions on the download location. To reduce the risk of attackers
tampering with the source files, restrict access to the download
location.
d. Sending priority: Specify the sending priority for the deployment package.
Configuration Manager uses the sending priority when it sends the
package to distribution points. It sends packages in priority order: high,
medium, or low. If packages have identical priorities, the site sends them in
the order in which you created them. If there's no backlog, the package
processes immediately.
10. If you created a new deployment package, you'll see the Distribution Points page
next. Specify the distribution points or distribution point groups that host the
upgrade content. For more information about distribution points, see Configure a
distribution point.
11. If you selected an existing deployment package, you'll see the Download Location
page next. Select one of the following options:
Download software updates from the internet: The site server downloads
the upgrade content from the internet. This setting is the default.
12. If you selected an existing deployment package, you'll also see the Language
Selection page. The site downloads the upgrade content for the languages that
you select, only if they're available. By default, the wizard selects the languages
that you configured in the software update point properties.
13. On the Summary page, review the settings. Select Next to create the servicing plan
and complete the wizard.
After you complete the wizard, the site runs the servicing plan for the first time.
7 Note
You can configure settings in the properties for the servicing plan that aren't
available in the wizard. The wizard uses default settings for the following areas:
download settings, deployment settings, and alerts.
The following settings are available in the servicing plan properties that weren't
configured in the wizard:
Deployment Settings
Use Wake-on-LAN to wake up clients for required deployments: Enable Wake On
LAN at the deployment deadline. The site will send wake-up packets to computers
for the deployment. By default, this setting isn't enabled.
2 Warning
Before you can use this option, configure computers and networks for Wake
On LAN.
Detail level: Specify the level of detail for the state messages that clients send to
the site.
Download Settings
Specify whether the client downloads and installs the upgrade when it's connected
to a slow network or is using a fallback content location.
Specify whether to have the client download and install the upgrade from a
fallback distribution point when the content isn't available on a preferred
distribution point.
Specify whether to have clients download the content from Microsoft Update, if it's
not available on distribution points.
) Important
Don't use this setting for Windows servicing updates. Configuration Manager
fails to download the Windows servicing updates from Microsoft Update.
Alerts
Configure how Configuration Manager and System Center Operations Manager
generate alerts for this deployment.
You can review recent alerts from the Software Updates node in the Software Library
workspace.
Each bar shows the number of devices that failed with the specified error code. For more
information, see Windows upgrade error codes.
Next steps
For more information, see Fundamentals of Configuration Manager as a service and
Windows as a service.
Monitor operating system deployments
in Configuration Manager
Article • 10/04/2022
The Configuration Manager console provides the following ways to help you monitor
operating system deployment objects.
After you configure the alert settings, if the specified conditions occur, Configuration
Manager generates an alert. You can review task sequence deployment alerts at the
following locations:
1. Review recent alerts in the Operating Systems node in the Software Library
workspace.
2. Manage the configured alerts in the Alerts node in the Monitoring workspace.
3. Click the task sequence for which you want to monitor the deployment status.
Tip
When an upgrade is initiated, status message 52200 is generated. This
contains the user that did the upgrade.
Starting in version 2203, you can perform client notification actions, including
Run Scripts, from the Deployment Status view.Use the right-click menu on
either a group of clients in a Category or a single client in the Asset details
pane to display the client notification actions.
Monitor content
You can monitor content in the Configuration Manager console to review the status for
all package types in relation to the associated distribution points. This can include the
content validation status for the content in the package, the status of content assigned
to a specific distribution point group, the state of content assigned to a distribution
point, and the status of optional features for each distribution point (content validation,
PXE, and multicast).
2. In the Monitoring workspace, expand Distribution Status, and then click Content
Status. The packages are displayed.
3. Select the distribution point group for which to view detailed status information.
4. On the Home tab, click View Status. Detailed status information for the
distribution point group is displayed.
3. Select the distribution point for which to view distribution point status information.
4. In the results pane, click the Details tab. Status information for the distribution
point is displayed.
Debug a task sequence
Article • 10/04/2022
The task sequence debugger is a troubleshooting tool. You deploy a task sequence in
debug mode to a small collection. It lets you step through the task sequence in a
controlled manner to aid troubleshooting and investigation. The debugger currently
runs on the same device as the task sequence engine, it's not a remote debugger.
Tip
This feature was first introduced in version 1906 as a pre-release feature. Beginning
with version 2203, it's no longer a pre-release feature.
Prerequisites
Update the Configuration Manager client on the target device
Sign in to the target device as a user in the local Administrators group. The
debugger only runs for administrators.
Update the boot image associated with the task sequence to make sure it has the
latest client version
2. Select a task sequence. In the Deployment group of the ribbon, select Debug.
Tip
3. Create a debug deployment. The deployment settings are the same as a normal
task sequence deployment. For more information, see Deploy a task sequence.
7 Note
You can only select a small collection for a debug deployment. It only displays
device collections with 10 or less members.
Use the task sequence variable TSDebugOnError to automatically start the debugger
when the task sequence returns an error. For more information, see Task sequence
variables - TSDebugOnError.
Step: From the current position, run only the next step in the task sequence.
7 Note
When the task sequence is in debug mode, if a step returns a fatal error, the
task sequence doesn't fail as normal. This behavior gives you the option to
retry a step after you make an external change.
Run: From the current position, run the task sequence normally to the end, the
next break point, or if a step fails. Before you use this action, make sure to set any
break points with the Set Break action.
Set Current: Select a step in the debugger and then select Set Current. This action
moves the current pointer to that step. This action allows you to skip steps or move
backwards.
2 Warning
The debugger doesn't consider the type of step when you change the current
position in the sequence. Some steps may set task sequence variables that are
required for condition evaluation by later steps. If run out of order, some
steps may fail or cause significant damage to a device. Use this option at your
own risk.
Set Break: Select a step in the debugger and then select Set Break. This action
adds a break point in the debugger. When you Run the task sequence, it stops at a
break.
If you create a break point in the debugger, and then the task sequence restarts
the computer, the debugger keeps your break points after restart.
Log File: Opens the current task sequence log file, smsts.log, with CMTrace. You
can see log entries when the task sequence engine is "Waiting for the debugger."
The Task Sequence Variables window shows the current values for all variables in the
task sequence environment. For more information, see Task sequence variables. If you
use the Set Task Sequence Variable step with the option to Do not display this value,
the debugger doesn't display the variable value. You can't edit the variable values in the
debugger.
7 Note
Some task sequence variables are for internal use only, and not listed in the
reference documentation.
The task sequence debugger continues to run after a Restart Computer step. The
debugger keeps your break points after restart. Even though the task sequence may not
require it, since the debugger requires user interaction, you need to sign in to Windows
to continue. If you don't sign in after one hour to continue debugging, the task
sequence fails.
It also steps into a child task sequence with the Run Task Sequence step. The debugger
window shows the steps of the child task sequence along with the main task sequence.
Known issues
If you target both a normal deployment and debug deployment to the same device
through multiple deployments, the task sequence debugger may not launch.
See also
About task sequence steps
Task sequence variables
How to use task sequence variables
Deploy a task sequence
Configure pre-cache content for task
sequences
Article • 10/04/2022
The pre-cache feature for available deployments of task sequences lets clients download
relevant content before a user installs the task sequence. The client can pre-cache
content for task sequences that upgrade an OS or install an OS image.
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 more time before the installation is ready to start. All content
referenced in the task sequence is downloaded. This content includes the OS upgrade
package for all languages and architectures. 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 selects Install in Software Center, the content is ready. The installation starts
quickly because the content is on the local hard drive.
OS upgrade packages
OS images
Driver packages
Packages
7 Note
Starting in version 2103, if you use a feature update with the Upgrade OS task
sequence step, the option to Pre-download content for this task sequence doesn't
apply to feature updates.
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
OS upgrade package
Create OS upgrade packages for specific architectures and languages. Specify the
Architecture and Language on the Data Source tab of its properties.
OS image
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.
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.
Tip
The actual query uses a LIKE statement with wildcards: select * from
win32_computersystemproduct where name like "%yourstring%" . 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. Create a task sequence
Create a task sequence with conditional steps for the different languages and
architectures, or different hardware models for driver packages.
Content Step
For example, the following Upgrade OS step uses the English version:
Tip
The following WMI query is recommended for the English (United States) OS and
64-bit architecture:
WMI
First add the language by selecting the Operating System Language condition.
Then edit the WMI query to include the architecture clause.
On the General tab, select Pre-download content for this task sequence.
7 Note
Starting in version 2103, if you use a feature update with the Upgrade OS task
sequence step, this option doesn't apply to feature updates.
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, so 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.
) Important
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. 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. For 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. 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 select 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 for the Deployment
options on the Distribution Points tab of the deployment.
See also
Create a task sequence to upgrade an OS
You can use media to capture an OS image from a reference computer or to deploy an
OS to a destination computer in your Configuration Manager environment. The media
that you create can be a CD, DVD set, or a USB flash drive.
Deployment media includes bootable media, standalone media, and prestaged media.
The content of the media varies, depending on what type of media that you use. For
example, standalone media contains the task sequence that deploys the OS. Other types
of media retrieve task sequences from the management point.
) Important
Capture media
Capture media allows you to capture an OS image from a reference computer. Capture
media contains the boot image that starts the reference computer and the task
sequence that captures the OS image.
Bootable media
Bootable media contains the following components:
) Important
Starting in version 2006, bootable media can download cloud-based content. The device
still needs an intranet connection to the management point. It can get content from a
content-enabled cloud management gateway (CMG). For more information, see
Bootable media support for cloud-based content.
Prestaged media
Prestaged media allows you to apply bootable media and an OS image to a hard disk
before the provisioning process. The prestaged media is a Windows Image (WIM) file.
The manufacturer can install it to the bare-metal computer during their build process.
Or you can use it in a staging center that's not connected to the production
Configuration Manager environment.
Prestaged media contains the boot image used to start the destination computer and
the OS image that's applied to the destination computer. You can also specify
applications, packages, and driver packages to include as part of the prestaged media.
The task sequence that deploys the OS isn't included in the media. When you deploy a
task sequence that uses prestaged media, the client checks the local task sequence
cache for valid content first. If the content can't be found or has been revised, the client
downloads the content from a distribution point or peer.
You apply prestaged media to the hard drive of a new computer before you send the
computer to the user. When the computer starts for the first time after you've applied
the prestaged media, the computer starts in Windows PE. It connects to a management
point to locate the task sequence that completes the OS deployment process.
) Important
Standalone media
Standalone media contains everything that's required to deploy the OS. This content
includes the task sequence and any other required content. Because everything is on the
media, the required disk space is larger than for other types of media.
To configure the media as dynamic media, all primary sites must have the root
certificate authority (CA) of the site from which you created the media. You can
import the root CA to all primary sites in your hierarchy.
When primary sites in your Configuration Manager hierarchy use different root
CAs, you must use site-based media at each site.
Next steps
Create capture media
Usage
Stand-alone media includes the task sequence that automates the steps to install the
OS, and all other required content. This content includes the boot image, OS image, and
device drivers. Because the stand-alone media stores everything to deploy the OS, it
requires more disk space than required for other types of media.
When you create stand-alone media on a CAS, 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.
Prerequisites
Before you create stand-alone media by using the Create Task Sequence Media Wizard,
be sure that all of these conditions are met.
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.
Associating users with the destination computer to support user device affinity.
The Use pre-production client package when available setting in the Setup
Windows and ConfigMgr task sequence step. For more information about this
setting, see Setup Windows and ConfigMgr.
Known issue with Install Package step and media created at the
central administration site
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 (CAS). The CAS doesn't
have the necessary client configuration policies. These policies are required to enable
the software distribution agent when the task sequence runs. 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 PowerShell Script step. Add it after the Setup Windows
and ConfigMgr step and before the first Install Package step. The Run PowerShell
Script step runs the following commands to enable the software distribution agent
before the first Install Package step:
PowerShell
$namespace = "root\ccm\policy\machine\requestedconfig"
$class = "CCM_SoftwareDistributionClientConfig"
$classArgs = @{
Enabled = 'true'
LockSettings='TRUE'
PolicySource='local'
PolicyVersion='1.0'
SiteSettingsKey='1'
Your user account needs at least Read access rights to the content library on that
distribution point. For more information, see Distribute content.
Stand-alone media uses a FAT32 file system. You can't create stand-alone media on a
removable USB drive whose content contains a file over 4 GB in size. This doesn't
include WIM files since Configuration Manager will split WIM files over 4 GB so that they
are under 4 GB and compatible with FAT32 files systems.
Process
1. 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.
) Important
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 Type page, specify whether the media is a Removable USB drive or
a CD/DVD set. Then configure the following options:
) Important
Media uses a FAT32 file system. You can't create media on a USB drive whose
content contains a file over 4 GB in size. This doesn't include WIM files since
Configuration Manager will split WIM files over 4 GB so that they are under 4
GB and compatible with FAT32 files systems.
If you select Removable USB drive, select the drive where you want to store
the content.
Format removable USB drive (FAT32) and make bootable: By default, let
Configuration Manager prepare the USB drive. 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.
) Important
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. For example:
\\servername\folder\outputfile.iso
If the capacity of the media is too small to store the entire content, it creates
multiple files. Then you need to store the content on multiple CDs or DVDs.
When it requires multiple media files, Configuration Manager adds a
sequence number to the name of each output file that it creates.
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. When the stand-alone media is run, Configuration Manager
prompts the user for the next media where the application is stored.
) Important
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. By 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, 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. The default value is Configuration
Manager . This text field appears in the following locations:
If you mount an ISO file, Windows displays this label as the name of the
mounted drive
If you format a USB drive, it uses the first 11 characters of the label as its
name
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.
) Important
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. These options
are also available by using the New-CMStandaloneMedia PowerShell cmdlet.
6. 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.
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 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 referenced
content and Manage content and content infrastructure.
Enable prestart command: Specify any prestart commands that you want to
run before the task sequence runs. 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.
Tip
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.
The stand-alone media files (.ISO) are created in the destination folder. If you selected
CD/DVD set, copy the output files to a set of CDs or DVDs.
Next steps
Use stand-alone media to deploy Windows without using the network
Create prestaged media
Article • 10/04/2022
Deploy Windows to Go
Usage
When the computer starts for the first time after you've applied the prestaged media,
the computer starts in Windows PE. It connects to a management point to locate the
task sequence that completes the OS deployment process. When you deploy a task
sequence that uses prestaged media, the client checks the local task sequence cache for
valid content first. If the content can't be found or has been revised, the client
downloads the content from a distribution point or peer.
Prerequisites
Before you create prestaged media by using the Create Task Sequence Media Wizard, be
sure that all of the conditions are met.
Boot image
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. For example, an x64 destination computer can boot and run
an x86 or x64 boot image. 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.
Your user account needs at least Read access rights to the content library on that
distribution point. For more information, see Distribute content.
7 Note
The Create Task Sequence Media Wizard sets the following task sequence variable
condition on the media: _SMSTSMediaType = OEMMedia. You can use this same
condition in your task sequence.
Process
7 Note
For PKI environments, since the Root CA is specified at the Primary site, make sure
the prestaged media is created at the Primary site. The CAS site does not have the
Root CA information to properly create the prestaged media.
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.
) Important
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.
Site-based media: The media only contacts the specified management point.
Media file: Specify the name and path of the output files. The wizard writes
the output files to this location. For example:
\\servername\folder\outputfile.wim
Staging folder: The media creation process can require a lot of temporary
drive space. By 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, change this value to another drive and path.
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 prestaged media.
) Important
7 Note
If you select this option HTTPS management points will not be available
for selection on the Boot image page of this wizard.
For HTTPS communications, select Import PKI certificate. Then specify the
certificate to import and its password.
For more information about this client certificate that boot images use, see
PKI certificate requirements.
Do not allow user device affinity: The media doesn't associate users with
the destination computer. In this scenario, the task sequence doesn't
associate users with the destination computer when it deploys the OS.
7. On the Task Sequence page, select the task sequence that runs on the destination
computer. Verify the list of content referenced by the task sequence.
Tip
) Important
The architecture of the boot image that you distribute must be appropriate
for the architecture of the destination computer. For example, an x64
destination computer can boot and run an x86 or x64 boot image. However,
an x86 destination computer can boot and run only 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.
7 Note
Your user account needs at least Read permissions to the content library
on the distribution point.
Associated management points: Only for dynamic media, select the primary
site management points to use, and a priority order for the initial
communication.
7 Note
Image package: Specify the OS image to use. For more information, see
Manage OS images.
Image index: If the package contains multiple OS images, specify the index of
the image to deploy.
Distribution point: Specify the distribution point that has the OS image
package. The wizard gets the OS image from the distribution point and writes
it to the media.
10. On the Select Application page, select additional applications to add to the
prestaged media file.
11. On the Select Package page, select additional packages to add to the prestaged
media file.
12. On the Select Driver Package page, select additional driver packages to add to the
prestaged media file.
13. On the Distribution Points page, select one or more distribution points from which
to get content.
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 referenced
content and Manage content and content infrastructure.
Enable prestart command: Specify any prestart commands that you want to
run before the task sequence runs. 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.
Tip
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.
Next steps
Create an image for an OEM in factory or a local depot
Create bootable media
Article • 10/04/2022
Bootable media in Configuration Manager contains the boot image, optional prestart
commands and associated files, and Configuration Manager files. Use bootable media
for the following OS deployment scenarios:
Usage
The following process occurs when you boot to bootable media:
OS image
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.
Starting in version 2006, bootable media can download cloud-based content. The device
still needs an intranet connection to the management point. It can get content from a
content-enabled cloud management gateway (CMG). For more information, see
Bootable media support for cloud-based content.
Prerequisites
Before you create bootable media by using the Create Task Sequence Media Wizard, be
sure that all of these conditions are met.
Boot image
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. For example, an x64 destination computer can boot and run
an x86 or x64 boot image. 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.
Your user account needs at least Read access rights to the content library on that
distribution point. For more information, see Distribute content.
7 Note
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. The
central administration site (CAS) doesn't have the root CA information to properly
create the bootable media. For more technical information on this issue, see
Sending with winhttp failed 80072f8f error in Smsts.log during OS deployment
by using bootable or prestaged media.
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.
) Important
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.
Site-based media: The media only contacts the specified management point.
5. On the Media Type page, specify whether the media is a Removable USB drive or
a CD/DVD set. Then configure the following options:
) Important
Media uses a FAT32 file system. You can't create media on a USB drive whose
content contains a file over 4 GB in size.
If you select Removable USB drive, select the drive where you want to store
the content.
Format removable USB drive (FAT32) and make bootable: By default, let
Configuration Manager prepare the USB drive. 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.
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. For example:
\\servername\folder\outputfile.iso
If the capacity of the media is too small to store the entire content, it creates
multiple files. Then you need to store the content on multiple CDs or DVDs.
When it requires multiple media files, Configuration Manager adds a
sequence number to the name of each output file that it creates.
) Important
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. By 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. The default value is Configuration
Manager . This text field appears in the following locations:
If you mount an ISO file, Windows displays this label as the name of the
mounted drive.
If you format a USB drive, it uses the first 11 characters of the label as its
name.
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.
) Important
7 Note
If you select this option, you can't select any HTTPS management point
on the Boot image page of this wizard.
For HTTPS communications, select Import PKI certificate. Then specify the
certificate to import and its password.
For more information about this client certificate that boot images use, see
PKI certificate requirements.
Do not allow user device affinity: The media doesn't associate users with
the destination computer. In this scenario, the task sequence doesn't
associate users with the destination computer when it deploys the OS.
) Important
The architecture of the boot image that you distribute must be appropriate
for the architecture of the destination computer. For example, an x64
destination computer can boot and run an x86 or x64 boot image. 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.
7 Note
Your user account needs at least Read permissions to the content library
on the distribution point.
Associated management points: Only for dynamic media, select the primary
site management points to use, and a priority order for the initial
communication.
7 Note
When you specify a PKI certificate on the Security page of this wizard,
this page only displays HTTPS-enabled management points.
Enable prestart command: Specify any prestart commands that you want to
run before the task sequence runs. 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.
Tip
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.
Alternate method
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. On the Media type page, select CD/DVD
set. The wizard writes the output files to the location that you specify. For example:
\\servername\folder\outputfile.iso .
2. Prepare the removable USB drive. The drive must be formatted, empty, and
bootable.
3. Mount the ISO from the share location and transfer the files from the ISO to the
USB drive.
Next steps
Use bootable media to deploy Windows over the network
Create capture media
Article • 10/04/2022
Prerequisites
Before you create capture media by using the Create Task Sequence Media Wizard, be
sure that all of these conditions are met.
Boot image
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. For example, an x64 destination computer can boot and run
an x86 or x64 boot image. 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.
Your user account needs at least Read access rights to the content library on that
distribution point. For more information, see Distribute content.
Process
1. 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.
4. On the Media Type page, specify whether the media is a Removable USB drive or
a CD/DVD set. Then configure the following options:
) Important
Media uses a FAT32 file system. You can't create media on a USB drive whose
content contains a file over 4 GB in size.
If you select Removable USB drive, select the drive where you want to store
the content.
Format removable USB drive (FAT32) and make bootable: By default, let
Configuration Manager prepare the USB drive. 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.
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. For example:
\\servername\folder\outputfile.iso
If the capacity of the media is too small to store the entire content, it creates
multiple files. Then you need to store the content on multiple CDs or DVDs.
When it requires multiple media files, Configuration Manager adds a
sequence number to the name of each output file that it creates.
) Important
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. By default this location is similar to the following path:
%UserProfile%\AppData\Local\Temp . 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: Starting in version 1902, add a label to task sequence media.
This label helps you better identify the media after you create it. The default
value is Configuration Manager . This text field appears in the following
locations:
If you mount an ISO file, Windows displays this label as the name of the
mounted drive
If you format a USB drive, it uses the first 11 characters of the label as its
name
) Important
The architecture of the boot image that you distribute must be appropriate
for the architecture of the destination computer. For example, an x64
destination computer can boot and run an x86 or x64 boot image. However,
an x86 destination computer can boot and run only 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.
7 Note
Your user account needs at least Read permissions to the content library
on the distribution point.
Next steps
Create a task sequence to capture an OS
Use the task sequence editor
Article • 10/04/2022
Edit task sequences in the Configuration Manager console by using the Task Sequence
Editor. Use the editor to:
Set step options like whether the task sequence continues when an error occurs
Before you can edit a task sequence, you need to create it. For more information, see
Manage and create task sequences.
For more information about the properties and options of a specific step, see
About task sequence steps.
For more information on general options on all steps, or options of a specific step,
see About task sequence steps.
8. Move the position of a group or step in the sequence (move up, move down)
You can resize the task sequence editor using standard Windows controls. To resize the
widths of the two main panes, use the mouse to select the bar between the task
sequence and the step properties, and then drag it left or right.
7 Note
Configuration Manager restricts actions for a task sequence that's greater than 2
MB in size. For example, the task sequence editor will display an error if you try to
save changes to a large task sequence. For more information, see Reduce the size
of task sequence policy.
2. In the Task Sequence list, select the task sequence that you want to view.
3. On the Home tab of the ribbon, in the Task Sequence group, select View.
Tip
This action is the default. If you double-click a task sequence, you'll View the
task sequence.
This action opens the task sequence editor in read-only mode. In this mode you can do
the following actions:
In this read-only mode, you can't make any changes, including copying a step or
condition. This action also doesn't lock the task sequence for editing. For more
information on these locks, see Reclaim lock for editing task sequences.
To make changes to a task sequence, close the task sequence editor that you have open
in read-only mode. Then Edit the task sequence.
7 Note
When you view or edit a task sequence that was created by the Create Task
Sequence Wizard, the name of the step can be the action or type of the step. For
example, you might see a step that has the name "Partition disk 0", which is the
action for a step of type Format and Partition Disk. All task sequence steps are
documented by their type, not necessarily by the name of the step that the editor
displays.
2. In the Task Sequence list, select the task sequence that you want to edit.
3. On the Home tab of the ribbon, in the Task Sequence group, select Edit. Then do
any of the following actions:
Add a step: Select Add, select a category, and then select the step to add. For
example, to add the Run Command Line step: select Add, choose the General
category, and then select Run Command Line. This action adds the step after
the currently selected step.
Add a group: Select Add, and then choose New Group. After you add a
group, then add steps to it.
Change the order: Select the step or group that you want to reorder. Then
use the Move Up or Move Down icons. You can move only one step or group
at a time. These actions are also available when you right-click a group or
step.
You can cut, copy, and paste a group or a step. Right-click the item and select
the action. You can also use standard keyboard shortcuts for each action:
Cut: CTRL + X
Copy: CTRL + C
Paste: CTRL + V
Remove a step or group: Select the step or group, and choose Remove.
4. Select OK to save your changes and close the window. Select Cancel to discard
your changes and close the window. Select Apply to save your changes and keep
the task sequence editor open.
For a list of the available task sequence steps, see Task sequence steps.
) Important
If the task sequence has any unassociated references to an object as a result of the
edit, the editor requires you fix the reference before it can close. Possible actions
include:
You can open more than one instance of the task sequence editor at the same time. This
behavior lets you compare multiple task sequences, or copy and paste steps between
them. You can Edit one task sequence, and View another, but you can't do both actions
on the same task sequence.
Conditions
Use conditions to control how the task sequence behaves. Add conditions to a single
step or a group of steps. The task sequence evaluates the conditions before it runs the
step on the device. It only runs the step if the conditions evaluate true. If a condition
evaluates false, then the task sequence skips the group or step.
Task sequence variable. Evaluate the current value of any built-in, action, custom,
or read-only task sequence variable in the task sequence environment. For more
information, see Step conditions.
7 Note
You can use an array variable in this condition, but you have to specify the
specific array member. For example, OSDAdapter0EnableDHCP specifies whether
the first network adapter enables DHCP. For more information, see Array
variables.
OS version: Evaluate the OS version of the device where the task sequence runs.
This list is the general OS versions used throughout Configuration Manager. To
evaluate a more detailed OS version, such as a specific version of Windows 10, use
the Query WMI condition.
OS language: Evaluate the OS language of the device where the task sequence
runs. This list includes the 257 languages that Windows supports.
File properties: Evaluate the version or timestamp of any file on the device where
the task sequence runs.
Folder properties: Evaluate the timestamp of any folder on the device where the
task sequence runs.
Registry setting: Evaluate any registry key value of the device where the task
sequence runs.
Query WMI: Specify the namespace and query to evaluate on the device where the
task sequence runs.
Get-CMTSStepConditionFile
Get-CMTSStepConditionFolder
Get-CMTSStepConditionIfStatement
Get-CMTSStepConditionOperatingSystem
Get-CMTSStepConditionQueryWmi
Get-CMTSStepConditionRegistry
Get-CMTSStepConditionSoftware
Get-CMTSStepConditionVariable
Paste before
Paste after
Paste under (only applies to nested conditions)
Use standard keyboard shortcuts to copy (CTRL + C) and cut (CTRL + X). The standard
CTRL + V keyboard shortcut does the Paste after action.
There are also new options to move conditions up or down the list.
7 Note
You can copy and paste conditions between steps in a task sequence. It doesn't
support this action between different task sequences.
Reclaim lock for editing
If the Configuration Manager console stops responding, you can be locked out of
making further changes until the lock expires after 30 minutes. This lock is part of the
Configuration Manager SEDO (Serialized Editing of Distributed Objects) system. For
more information, see Configuration Manager SEDO.
You can clear your lock on a task sequence. This action only applies to your user account
that has the lock, and on the same device from which the site granted the lock. When
you attempt to access a locked task sequence, you can now Discard Changes, and
continue editing the object. These changes would be lost anyway when the lock expired.
Tip
You can clear your lock on any object in the Configuration Manager console. For
more information, see Using the Configuration Manager console.
Search
If you have a large task sequence with many groups and steps, it can be difficult to find
specific steps. To more quickly locate steps in the task sequence, search in the task
sequence editor.
Enter a search term to start. You can scope your search using the following types:
Step name
Step description
Step type
Group name
Group description
Variable name
Conditions
Other content, for example, strings like variable values or command lines
You can also filter for all steps with the following attributes:
Continue on error
Has conditions
Quickly access these search fields and navigate the search results with the following
keyboard shortcuts:
See also
Manage and create task sequences
After you deploy a task sequence, depending upon the scenario there are different ways
for users to interact with the deployment. This article shows the main user experiences
with OS deployments, and how you can configure them:
Software Center
For a high-impact deployment, you can customize the message that Software Center
displays. When the user opens the OS deployment in Software Center, they see a
message similar to the following window:
For more information on how to customize the message in this window, see Create a
custom notification.
You can also customize the organization name at the top of the window. (The above
example shows the default value, IT Organization ). Change the Organization name
client setting in the Computer Agent group. For more information, see About client
settings.
For more information, see Use Software Center to deploy Windows over the network.
PXE
Different hardware models have different experiences for PXE. To boot to the network,
UEFI-based devices typically use the Enter key, and BIOS-based devices use the F12
key.
The following example shows the Hyper-V Gen1 (BIOS) PXE experience:
After the device successfully boots via PXE, it behaves similarly to bootable media. For
more information, see the next section on the Task sequence wizard.
For more information, see Use PXE to deploy Windows over the network.
2 Warning
If you use PXE deployments, and configure device hardware with the network
adapter as the first boot device, these devices can automatically start an OS
deployment task sequence without user interaction. Deployment verification
doesn't manage this configuration. While this configuration may simplify the
process and reduce user interaction, it puts the device at greater risk for accidental
reimage.
When a computer starts in Windows PE, the task sequence bootstrap dialog might
display before the task sequence is available. When you select Next in this
scenario, the final page of the task sequence displays with a message that there
are no task sequences available. Now, you can select Previous to search again for
available task sequences. You can repeat this process until the task sequence is
available.
When you run a task sequence, but dependent content packages aren't available
yet on distribution points, the task sequence fails. If the missing content wasn't
distributed yet, distribute it now. Or wait for the content to be available on
distribution points. Then select Previous to have the task sequence search again
for the content.
Prestart commands
You can customize task sequence media or boot images to run a prestart command. A
prestart command runs before the task sequence starts. The following actions are some
of the more common ones:
Prompt the user for dynamic values, like the computer name
Specify network configuration
Set user device affinity
The prestart command is a command line that you specify with a script or program. The
user experience is unique to that script or program.
You can customize the organization name at the top of the window. (The above
example shows the default value, IT Organization ). Change the Organization
name client setting in the Computer Agent group. For more information, see
About client settings.
Tip
You can customize the subheading. (The above example shows the default value,
Running: <task sequence name> .) On the properties of the task sequence, select the
option to Use custom text for the progress notification text. It allows a maximum
of 255 characters.
Running action: The first line shows the name of the current task sequence step.
The progress bar below it shows the overall completion of the task sequence.
The second line only shows for some steps that provide more detailed progress.
Use the task sequence variable TSDisableProgressUI to control when the task
sequence displays progress.
To completely disable the progress window, disable the option to Show Task
Sequence progress on the User Experience page of the task sequence
deployment.
Shows the current step number, total number of steps, and percent completion
Increased the width of the window to give you more space to better show the
organization name in a single line
By default, the task sequence progress window uses the existing text. If you make no
changes, it continues to work the same as in earlier versions. To show the progress
information, specify the task sequence variable, TSProgressInfoLevel.
The count and percentage completed are intended for general guidance purposes only.
These values are based on the total number of steps in the task sequence. For a more
complex task sequence with steps that run conditionally based on task sequence logic,
the progress may be non-linear.
The count of total steps doesn't include the following items in the task sequence:
Groups. This item is a container for other steps, not a step itself.
Instances of the Run task sequence step. This step is a container for other steps.
Steps that you explicitly disable. A disabled step doesn't run during the task
sequence.
It displays the name of the task sequence, an error code, and a general message
for users. For example: Task sequence: Upgrade to Windows 10 Enterprise has
failed with the error code (0x80004005). For more information, contact your
The window automatically closes after a timeout period. By default, this timeout is
15 minutes. You can customize this value with the task sequence variable
SMSTSErrorDialogTimeout.
Starting in version 2103, if the task sequence fails because the client doesn't meet the
requirements configured in the Check readiness step, the user can now see more details
about the failed prerequisites. They still see the common "task sequence error" message,
but can then select an option to Inspect. This action shows the checks that failed on the
device.
Task sequence steps
Article • 10/04/2022
The following task sequence steps can be added to a Configuration Manager task
sequence. For more information, see Use the task sequence editor.
Common settings
The following settings are common to all task sequence steps:
Description: Optionally, specify more detailed information about this step. The
Description length can't exceed 256 characters.
The rest of this article describes the other settings on the Properties tab for each task
sequence step.
Continue on error: If an error occurs while running the step, the task sequence
continues. For more information, see Planning considerations for automating tasks.
The sections below for specific task sequence steps describe other possible settings on
the Options tab.
This step runs only in Windows PE. It doesn't run in the full OS.
To add this step in the task sequence editor, select Add, select Images, and select Apply
Data Image.
OSDDataImageIndex
OSDWipeDestinationPartition
Get-CMTSStepApplyDataImage
New-CMTSStepApplyDataImage
Remove-CMTSStepApplyDataImage
Set-CMTSStepApplyDataImage
Image Package
Select Browse to specify the Image Package used by this task sequence. Select the
package you want to install in the Select a Package dialog box. The bottom of the
dialog box displays the associated property information for each existing image
package. Use the drop-down list to select the Image you want to install from the
selected Image Package.
7 Note
This task sequence action treats the image as a data file. This action doesn't do any
setup to boot the image as an OS.
Destination
Configure one of the following options:
Next available partition: Use the next sequential partition that an Apply Operating
System or Apply Data Image step in this task sequence has not already targeted.
Specific disk and partition: Select the Disk number (starting with 0) and the
Partition number (starting with 1).
Specific logical drive letter: Specify the Drive Letter that Windows PE assigns to
the partition. This drive letter can be different from the drive letter assigned by the
newly deployed OS.
Logical drive letter stored in a variable: Specify the task sequence variable that
contains the drive letter assigned to the partition by Windows PE. This variable is
typically set in the Advanced section of the Partition Properties dialog box for the
Format and Partition Disk task sequence step.
Specifies that the task sequence deletes all files on the target partition before installing
the image. By not deleting the content of the partition, this action can be used to apply
additional content to a previously targeted partition.
The Apply Driver Package task sequence step makes all device drivers in a driver
package available for use by Windows. Add this step between the Apply Operating
System and Setup Windows and ConfigMgr steps to make the drivers in the package
available to Windows. The Apply Driver Package task sequence step is also useful with
stand-alone media deployment scenarios.
Put similar device drivers into a driver package, and distribute them to the appropriate
distribution points. For example, put all drivers from one manufacturer into a driver
package. Then distribute the package to distribution points where the associated
computers can access them.
The Apply Driver Package step is useful for stand-alone media. This step is also useful
to install a specific set of drivers. These types of drivers include devices that Windows
plug-and-play doesn't detect, such as network printers.
This task sequence step runs only in Windows PE. It doesn't run in the full OS.
To add this step in the task sequence editor, select Add, select Drivers, and select Apply
Driver Package.
Tip
OSDApplyDriverBootCriticalContentUniqueID
OSDApplyDriverBootCriticalHardwareComponent
OSDApplyDriverBootCriticalID
OSDApplyDriverBootCriticalINFFile
OSDInstallDriversAdditionalOptions
Get-CMTSStepApplyDriverPackage
New-CMTSStepApplyDriverPackage
Remove-CMTSStepApplyDriverPackage
Set-CMTSStepApplyDriverPackage
Driver package
Specify the driver package that contains the needed device drivers. Select Browse to
launch the Select a Package dialog box. Select an existing driver package to apply. The
bottom of the dialog box displays the associated package properties.
Install driver package via running DISM with recurse option
Select this option to add the /recurse parameter to the DISM command line when
Windows applies the driver package.
When you enable this option, you can also specify additional DISM command-line
parameters. Use the OSDInstallDriversAdditionalOptions task sequence variable to
include more options. For more information, see Windows DISM Command-Line
Options.
Select the mass storage driver within the package that needs to be
installed before setup on pre-Windows Vista operating systems
Driver
Select the mass storage driver file to install before setup of a classic OS. The drop-down
list populates from the specified package.
Model
Specify the boot-critical device that is needed for pre-Windows Vista OS deployments.
This task sequence step runs only in Windows PE. It doesn't run in the full OS.
To add this step in the task sequence editor, select Add, select Settings, and select
Apply Network Settings.
7 Note
If you include multiple instances of this step in a task sequence, conditions don't
apply. The settings from the last instance of this step in the task sequence are
applied to the device. To work around this behavior, include each step in a separate
group with conditions on the group.
OSDAdapter
OSDAdapterCount
OSDDNSDomain
OSDDNSSuffixSearchOrder
OSDDomainName
OSDDomainOUName
OSDEnableTCPIPFiltering
OSDJoinAccount
OSDJoinPassword
OSDWorkgroupName
Get-CMTSStepApplyNetworkSetting
New-CMTSStepApplyNetworkSetting
Remove-CMTSStepApplyNetworkSetting
Set-CMTSStepApplyNetworkSetting
New-CMTSNetworkAdapterSetting
Join a workgroup
Select this option to have the destination computer join the specified workgroup. Enter
the name of the workgroup on the Workgroup line. The value that the Capture
Network Settings task sequence step captures can override this value.
Join a domain
Select this option to have the destination computer join the specified domain. Specify or
browse to the domain, such as fabricam.com . Specify or browse to a Lightweight
Directory Access Protocol (LDAP) path for an organizational unit. For example:
LDAP//OU=computers, DC=Fabricam.com, C=com .
7 Note
Account
Select Set to specify an account with the necessary permissions to join the computer to
the domain. In the Windows User Account dialog box, enter the user name in the
following format: Domain\User . For more information, see Domain joining account.
Adapter settings
Specify network configurations for each network adapter in the computer. Select New to
open the Network Settings dialog box, and then specify the network settings.
If you also use the Capture Network Settings step, the task sequence applies the
previously captured settings to the network adapter.
If the task sequence didn't previously capture network settings, it applies the
settings you specify in this step.
The task sequence applies these settings to network adapters in Windows device
enumeration order.
The task sequence doesn't immediately apply the settings you specify in this step
to the computer.
This task sequence step runs only in Windows PE. It doesn't run in the full OS.
To add this step in the task sequence editor, select Add, select Images, and select Apply
Operating System Image.
Tip
Windows 11 and Windows 10 media include multiple editions. When you configure
a task sequence to use an OS upgrade package or OS image, be sure to select a
supported edition.
The Setup Windows and ConfigMgr step starts the installation of Windows.
OSDConfigFileName
OSDImageIndex
OsdLayeredDriver
OSDTargetSystemDrive
Get-CMTSStepApplyOperatingSystem
New-CMTSStepApplyOperatingSystem
Remove-CMTSStepApplyOperatingSystem
Set-CMTSStepApplyOperatingSystem
1. Delete all content on the targeted volume, except files in the folder specified by
the _SMSTSUserStatePath variable.
2. Extract the contents of the specified .wim file to the specified destination partition.
5. Set the boot.ini or the Boot Configuration Database (BCD) to reference the newly
installed OS.
1. Delete all content on the targeted volume, except files in the folder specified by
the _SMSTSUserStatePath variable.
Installs an OS image that you captured. Select Browse to open the Select a package
dialog box. Then select the existing image package you want to install. If multiple
images are associated with the specified Image package, select from the drop-down list
the associated image to use for this deployment. You can view basic information about
each existing image by selecting it.
7 Note
Operating System Upgrade Packages are primarily meant for use with in-place
upgrades and not for new installations of Windows. When deploying new
installations of Windows, use the Apply operating system from a captured image
option and install.wim from the installation source files.
If drivers aren't compatible with being installed while in Windows PE, then create an
Operating System Image with the install.wim from the original installation source
files. Then deploy via the Apply operating system from a captured image option
instead.
The Windows setup answer file that you supply can contain embedded task
sequence variables of the form %varname% , where varname is the name of the
variable. The Setup Windows and ConfigMgr step substitutes the variable string
for the actual value of the variable. You can't use these embedded task sequence
variables in numeric-only fields in an unattend.xml answer file.
If you don't supply a Windows setup answer file, the task sequence automatically
generates an answer file.
Destination
Next available partition: Use the next sequential partition not already targeted by
an Apply Operating System or Apply Data Image step in this task sequence.
Specific disk and partition: Select the Disk number (starting with 0) and the
Partition number (starting with 1).
Specific logical drive letter: Specify the Drive Letter assigned to the partition by
Windows PE. This drive letter can be different from the drive letter assigned by the
newly deployed OS.
Logical drive letter stored in a variable: Specify the task sequence variable
containing the drive letter assigned to the partition by Windows PE. This variable is
typically set in the Advanced section of the Partition Properties dialog box for the
Format and Partition Disk task sequence step.
Version 2107 and later supports layered keyboard drivers. These drivers specify other
types of keyboards that are common with Japanese and Korean languages. For more
information, see the LayeredDriver Windows setting.
Do not specify: This option is the default, which doesn't configure the
LayeredDriver setting in the unattend.xml. This behavior is consistent with earlier
versions of Configuration Manager.
PC/AT Enhanced keyboard (101/102-key)
Korean PC/AT 101-Key Compatible keyboard or the Microsoft Natural keyboard
(type 1)
Korean PC/AT 101-Key Compatible keyboard or the Microsoft Natural keyboard
(type 2)
Korean PC/AT 101-Key Compatible keyboard or the Microsoft Natural keyboard
(type 3)
Korean keyboard (103/106-key)
Japanese keyboard (106/109-key)
Configure the task sequence to access the OS image directly from the distribution point.
For example, use this option when you deploy operating systems to embedded devices
that have limited storage capacity. When selecting this option, also configure the
package share settings on the Data Access tab of the OS image properties.
7 Note
This setting overrides the deployment option that you configure on the
Distribution Points page in the Deploy Software Wizard. This override is only for
the OS image that this step specifies, not for all task sequence content.
) Important
For greatest security, it is strongly recommended not to select this option. This
option is mainly designed for use on devices with limited storage capacity. This
option is not meant to help increase the speed of the task sequence. When this
option is selected, the package hash is not verified for the operating system
package. Therefore, package integrity cannot be ensured because it is possible for
users with administrative rights to alter or tamper with package contents.
This task sequence step runs only in Windows PE. It doesn't run in the full OS.
To add this step in the task sequence editor, select Add, select Settings, and select
Apply Windows Settings.
OSDComputerName
OSDLocalAdminPassword
OSDProductKey
OSDRandomAdminPassword
OSDRegisteredOrgName
OSDRegisteredUserName
OSDServerLicenseConnectionLimit
OSDServerLicenseMode
OSDTimeZone
OSDWindowsSettingsInputLocale
OSDWindowsSettingsSystemLocale
OSDWindowsSettingsUILanguage
OSDWindowsSettingsUILanguageFallback
OSDWindowsSettingsUserLocale
Get-CMTSStepApplyWindowsSetting
New-CMTSStepApplyWindowsSetting
Remove-CMTSStepApplyWindowsSetting
Set-CMTSStepApplyWindowsSetting
Organization name
Specify the registered organization name to associate with the destination computer.
The value that the Capture Windows Settings task sequence step captures can override
this value.
Product key
Specify the product key to use for the Windows installation on the destination
computer.
Server licensing
7 Note
This setting only applies to legacy versions of Windows that are no longer
supported. Starting in version 2010, the setting is no longer visible in the task
sequence editor. Existing task sequences that still use this setting will continue to
function the same.
Maximum connections
7 Note
This setting only applies to legacy versions of Windows that are no longer
supported. Starting in version 2010, the setting is no longer visible in the task
sequence editor. Existing task sequences that still use this setting will continue to
function the same.
Time zone
Specify the time zone to configure on the destination computer. The value that the
Capture Windows Settings task sequence step captures can override this value.
Language settings
For more information on these Windows setup answer file values, see Microsoft-
Windows-International-Core.
7 Note
If you create a custom Windows setup answer file (unattend.xml), this step
overwrites any existing values. To automate a dynamic process for these settings,
use the related task sequence variables. For example,
OSDWindowsSettingsInputLocale.
) Important
Stand-alone media can't use the Auto Apply Drivers step. The task sequence has
no connection to the Configuration Manager site in this scenario.
This task sequence step runs only in Windows PE. It doesn't run in the full OS.
To add this step in the task sequence editor, select Add, select Drivers, and select Auto
Apply Drivers.
Tip
1. Scan the hardware and find the plug-and-play IDs for all devices present on the
system.
2. Send the list of devices and their plug-and-play IDs to the management point. The
management point returns a list of compatible drivers from the driver catalog for
each hardware device. The list includes all enabled drivers regardless of what driver
package they are in, and drivers tagged with the specified driver category.
3. For each hardware device, the task sequence picks the best driver. This driver is
appropriate for the deployed OS, and is on an accessible distribution point.
4. The task sequence downloads the selected drivers from a distribution point, and
stages the drivers on the target OS.
a. When using an OS image, the task sequence places the drivers into the OS
driver store.
5. During the Setup Windows and ConfigMgr step in the task sequence, Windows
Setup finds the drivers staged by this step.
Variables for Auto Apply Drivers
Use the following task sequence variables with this step:
OSDAutoApplyDriverBestMatch
OSDAutoApplyDriverCategoryList
SMSTSDriverRequestConnectTimeOut
SMSTSDriverRequestReceiveTimeOut
SMSTSDriverRequestResolveTimeOut
SMSTSDriverRequestSendTimeOut
Get-CMTSStepAutoApplyDriver
New-CMTSStepAutoApplyDriver
Remove-CMTSStepAutoApplyDriver
Set-CMTSStepAutoApplyDriver
Specifies that the task sequence step installs only the best matched driver for each
hardware device detected.
The task sequence searches in the specified driver categories for the appropriate device
drivers.
If you select multiple categories, it returns all matching drivers that are present in any of
the categories. It's equivalent to an OR operation.
) Important
This option doesn't apply to operating systems where you can't configure driver
signing policy.
This task sequence step runs only in the full OS. It doesn't run in Windows PE.
To add this step in the task sequence editor, select Add, select Settings, and select
Capture Network Settings.
OSDMigrateAdapterSettings
OSDMigrateNetworkMembership
Captures the network adapter configuration of the destination computer. It captures the
following information:
Configuration Manager captures each volume (drive) from the reference computer to a
separate image within the .wim file. If the referenced computer has multiple volumes,
the resulting .wim file contains a separate image for each volume. This step only
captures volumes that are formatted as NTFS or FAT32. It skips volumes with other
formats, and USB volumes.
This task sequence step runs only in Windows PE. It doesn't run in the full OS.
To add this step in the task sequence editor, select Add, select Images, and select
Capture Operating System Image.
OSDCaptureAccount
OSDCaptureAccountPassword
OSDCaptureDestination
OSDImageCreator
OSDImageDescription
OSDImageVersion
OSDTargetSystemRoot
Get-CMTSStepCaptureSystemImage
New-CMTSStepCaptureSystemImage
Remove-CMTSStepCaptureSystemImage
Set-CMTSStepCaptureSystemImage
Target
File system path to the location that Configuration Manager uses when storing the
captured OS image.
Description
An optional user-defined description of the captured OS image that's stored in the
image file.
Version
An optional user-defined version number to assign to the captured OS image. This value
can be any combination of letters and numbers. It's stored in the image file.
Created by
The optional name of the user that created the OS image. It's stored in the image file.
Starting in version 2103, this step and the Restore User State step use the current
highest supported encryption algorithm, AES 256.
) Important
If you have any active user state migrations, before you update the Configuration
Manager client on those devices, restore the user state. Otherwise, the updated
client will fail to restore the user state when it tries to use a different encryption
algorithm. If necessary, you can manually restore the user state and explicitly use
the USMT parameter /decrypt:3DES .
For more information about managing the user state when deploying operating
systems, see Manage user state.
If you want to save and restore user state settings from a state migration point, use this
step with the Request State Store and Release State Store steps.
This step provides control over a limited subset of the most commonly used USMT
options. Specify additional command-line options using the
OSDMigrateAdditionalCaptureOptions task sequence variable.
This task sequence step runs in either Windows PE or the full OS.
To add this step in the task sequence editor, select Add, select User State, and select
Capture User State.
_OSDMigrateUsmtPackageID
OSDMigrateAdditionalCaptureOptions
OSDMigrateConfigFiles
OSDMigrateContinueOnLockedFiles
OSDMigrateEnableVerboseLogging
OSDMigrateMode
OSDMigrateSkipEncryptedFiles
OSDStateStorePath
Get-CMTSStepCaptureUserState
New-CMTSStepCaptureUserState
Remove-CMTSStepCaptureUserState
Set-CMTSStepCaptureUserState
If you select this option, but don't select Restore local computer user profiles in the
Restore User State step, the task sequence fails. Configuration Manager can't migrate
the new accounts without assigning them passwords.
When you use the Install an existing image package option of the New Task Sequence
wizard, the resulting task sequence defaults to Capture all user profiles with standard
options. This default task sequence doesn't select the option to Restore local computer
user profiles, or non-domain user accounts.
Select Restore local computer user profiles and provide a password for the account to
migrate. In a manually created task sequence, this setting is found under the Restore
User State step. In a task sequence created by the New Task Sequence wizard, this
setting is found under the step Restore User Files and Settings wizard page.
Select this option to specify a custom profile file for migration. Select Files to select the
configuration files for USMT to use with this step. Specify a custom .xml file that
contains rules that define the user state files to migrate.
Choose this option and select Files to select the configuration files in the USMT package
you want to use to capture user profiles. To add a configuration file, enter the Filename
and select Add.
Continue if some files cannot be captured: Enable this setting to continue the
migration process even if it can't capture some files. If you disable this option, and
a file can't be captured, then this step fails. This option is enabled by default.
Capture locally by using links instead of by copying files: Enable this setting to
use NTFS hard-links to capture files.
For more information about migrating data using hard-links, see Hard-Link
Migration Store.
Capture in off-line mode (Windows PE only): Enable this setting to capture the
user state while in Windows PE instead of the full OS.
This task sequence step runs in either Windows PE or the full OS.
To add this step in the task sequence editor, select Add, select Settings, and select
Capture Windows Settings.
OSDComputerName
OSDMigrateComputerName
OSDMigrateRegistrationInfo
OSDMigrateTimeZone
OSDRegisteredOrgName
OSDTimeZone
Get-CMTSStepCaptureWindowsSettings
New-CMTSStepCaptureWindowsSettings
Remove-CMTSStepCaptureWindowsSettings
Set-CMTSStepCaptureWindowsSettings
Check Readiness
Use this step to verify that the target computer meets the specified deployment
prerequisite conditions.
To add this step in the task sequence editor, select Add, select General, and select
Check Readiness.
None of the following checks are selected by default in new or existing instances of the
step. For more information on each check, see the specific sections below.
Architecture of current OS
Minimum OS version
Maximum OS version
Minimum client version
Language of current OS
AC power plugged in
Network adapter connected
Network adapter is not wireless
Computer is in UEFI mode
Starting in version 2103, the task sequence progress displays more information about
readiness checks. If a task sequence fails because the client doesn't meet the
requirements of this step, the user can select an option to Inspect. This action shows the
checks that failed on the device. For more information, see User experiences for OS
deployment.
Starting in version 2111, this step includes checks for TPM 2.0. These checks can help
you better deploy Windows 11.
) Important
To take advantage of this new Configuration Manager feature, after you update the
site, also update clients to the latest version. While new functionality appears in the
Configuration Manager console when you update the site and console, the
complete scenario isn't functional until the client version is also the latest.
The smsts.log includes the outcome of all checks. If one check fails, the task sequence
engine continues to evaluate the other checks. The step doesn't fail until all checks are
complete. If at least one check fails, the step fails, and it returns error code 4316. This
error code translates to "The resource required for this operation does not exist."
_TS_CRMEMORY
_TS_CRSPEED
_TS_CRDISK
_TS_CROSTYPE
_TS_CRARCH
_TS_CRMINOSVER
_TS_CRMAXOSVER
_TS_CRCLIENTMINVER
_TS_CROSLANGUAGE
_TS_CRACPOWER
_TS_CRNETWORK
_TS_CRUEFI
_TS_CRWIRED
_TS_CRTPMACTIVATED (starting in version 2111)
_TS_CRTPMENABLED (starting in version 2111)
Get-CMTSStepPrestartCheck
New-CMTSStepPrestartCheck
Remove-CMTSStepPrestartCheck
Set-CMTSStepPrestartCheck
Verify that the speed of the processor, in megahertz (MHz), meets or exceeds the
specified amount. The step enables this setting by default.
Starting in version 2103, it also checks free space on disks without partitions.
Current OS to be refreshed is
Verify that the OS installed on the target computer meets the specified requirement. The
step sets this setting to CLIENT by default.
Architecture of current OS
Verify whether the current OS is 32-bit or 64-bit.
Minimum OS version
Verify that the current OS is running a version later than specified. Specify the version
with major version, minor version, and build number. For example, 10.0.16299 .
Maximum OS version
Verify that the current OS is running a version earlier than specified. Specify the version
with major version, minor version, and build number. For example, 10.0.18356 .
Language of current OS
Verify that the current OS language matches what you specify. Select the language
name, and the step compares the associated language code. This check compares the
language that you select to the OSLanguage property of the Win32_OperatingSystem
WMI class on the client.
AC power plugged in
Verify that the device has a network adapter that's connected to the network. You can
also select the dependent check to verify that the Network adapter is not wireless.
Computer is in UEFI mode
Determine whether the device is configured for UEFI or BIOS.
Starting in version 2111, checks whether the device that's running the task sequence has
a TPM 2.0 that's enabled.
7 Note
If you enable the Continue on error setting on the Options tab of this step, it only
logs the readiness check results. If a check fails, the task sequence doesn't stop.
To add this step in the task sequence editor, select Add, select General, and select
Connect To Network Folder.
SMSConnectNetworkFolderAccount
SMSConnectNetworkFolderDriveLetter
SMSConnectNetworkFolderPassword
SMSConnectNetworkFolderPath
Get-CMTSStepConnectNetworkFolder
New-CMTSStepConnectNetworkFolder
Remove-CMTSStepConnectNetworkFolder
Set-CMTSStepConnectNetworkFolder
Path
Select Browse to specify the network folder path. Use the format \\server\share .
Drive
Account
Select Set to specify the user account with permissions to connect to this network
folder. For more information on the task sequence network folder connection account,
see Accounts.
Disable BitLocker
Use this step to disable BitLocker encryption on the current OS drive, or on a specific
drive. This action leaves the key protectors visible in clear text on the hard drive. It
doesn't decrypt the contents of the drive. This action completes almost instantly.
7 Note
If you have multiple encrypted drives, disable BitLocker on any data drives before
disabling BitLocker on the OS drive.
This step runs only in the full OS. It doesn't run in Windows PE.
To add this step in the task sequence editor, select Add, select Disks, and select Disable
BitLocker.
OSDBitLockerRebootCount
OSDBitLockerRebootCountOverride
Get-CMTSStepDisableBitLocker
New-CMTSStepDisableBitLocker
Remove-CMTSStepDisableBitLocker
Set-CMTSStepDisableBitLocker
Specific drive
Disables BitLocker on a specific drive. Use the drop-down list to specify the drive where
BitLocker is disabled.
Use this option to specify the number of restarts to keep BitLocker disabled. Instead of
adding multiple instances of this step, set a value between 1 (default) and 15.
You can set and modify this behavior with the task sequence variables
OSDBitLockerRebootCount and OSDBitLockerRebootCountOverride.
Download Package Content
Use this step to download any of the following package types:
OS images
OS upgrade packages
Driver packages
Packages
Boot images Note 1
This step works well in a task sequence to upgrade an OS in the following scenarios:
To use a single upgrade task sequence that can work with both x86 and x64
platforms. Include two Download Package Content steps in the Prepare for
Upgrade group. Specify conditions on the Options tab to detect the client
architecture, and download only the appropriate OS upgrade package. Configure
each Download Package Content step to use the same variable. Use the variable
for the media path on the Upgrade Operating System step.
7 Note
When you deploy a task sequence that contains this step, don't select Download all
content locally before starting the task sequence or Access content directly from
a distribution point for Deployment options on the Distribution Points page of
the Deploy Software Wizard.
This step runs in either the full OS or Windows PE. The option to save the package in the
Configuration Manager client cache isn't supported in Windows PE.
7 Note
The Download Package Content task isn't supported for use with stand-alone
media. For more information, see Unsupported actions for stand-alone media.
To add this step in the task sequence editor, select Add, select Software, and select
Download Package Content.
Get-CMTSStepDownloadPackageContent
New-CMTSStepDownloadPackageContent
Remove-CMTSStepDownloadPackageContent
Set-CMTSStepDownloadPackageContent
Select package
Select the icon to choose the package to download. After you choose one package,
select the icon again to choose another package.
Task sequence working directory: This location is also referred to as the task
sequence cache.
Configuration Manager client cache: Use this option to store the content in the
client cache. By default, this path is %WinDir%\ccmcache .
Custom path: The task sequence engine first downloads the package to the task
sequence working directory. It then moves the content to this path you specify.
The task sequence engine appends the path with the package ID.
Save the package's path into a custom task sequence variable. Then use this variable in
another task sequence step.
Configuration Manager adds a numerical suffix to the variable name. For example, you
specify a variable of %MyContent% as a custom variable. It's the root for where the task
sequence stores all referenced content for this step. This content may contain multiple
packages. When you refer to the variable, add a numerical suffix. For the first package,
refer to %MyContent01% . When you refer to the variable in subsequent steps, such as
Upgrade Operating System, use %MyContent02% or %MyContent03% , where the number
corresponds to the order that the Download Package Content step lists the packages.
If the task sequence fails to download a package, it starts to download the next package
in the list. This behavior applies to all packages in the step. The task sequence ignores
download failures for any referenced package.
Enable BitLocker
BitLocker drive encryption provides low-level encryption of the contents of a disk
volume. Use this step to enable BitLocker encryption on at least two partitions on the
hard drive. The first active partition contains the Windows bootstrap code. Another
partition contains the OS. The bootstrap partition must remain unencrypted.
To enable BitLocker on a drive while in Windows PE, use the Pre-provision BitLocker
step.
This step runs only in the full OS. It doesn't run in Windows PE.
To add this step in the task sequence editor, select Add, select Disks, and select Enable
BitLocker.
When you specify TPM Only, TPM and Startup Key on USB, or TPM and PIN, the
Trusted Platform Module (TPM) must be in the following state before you can run the
Enable BitLocker step:
Enabled
Activated
Ownership Allowed
You can skip this step for computers that don't have a TPM or when the TPM isn't
enabled. This option makes it easier to manage the task sequence behavior on devices
that can't fully support BitLocker.
This step completes any remaining TPM initialization. The remaining actions don't
require physical presence or reboots. The Enable BitLocker step transparently completes
the following remaining TPM initialization actions, if necessary:
If you want the task sequence to wait for the Enable BitLocker step to complete the
drive encryption process, then select the Wait option. If you don't select the Wait
option, the drive encryption process happens in the background. The task sequence
immediately proceeds to the next step.
BitLocker can be used to encrypt multiple drives on a computer system, both OS and
data drives. To encrypt a data drive, first encrypt the OS drive and complete the
encryption process. This requirement is because the OS drive stores the key protectors
for the data drives. If you encrypt the OS and data drives in the same task sequence,
select the Wait option on the Enable BitLocker step for the OS drive.
If the hard drive is already encrypted, but BitLocker is disabled, then the Enable
BitLocker step re-enables the key protectors and completes quickly. Re-encryption of
the hard drive isn't necessary in this case.
OSDBitLockerPIN
OSDBitLockerRecoveryPassword
OSDBitLockerStartupKey
OSDRecoveryKeyPollingFrequency (starting in version 2203)
OSDRecoveryKeyPollingTimeout (starting in version 2203)
Get-CMTSStepEnableBitLocker
New-CMTSStepEnableBitLocker
Remove-CMTSStepEnableBitLocker
Set-CMTSStepEnableBitLocker
TPM only: Select this option to use only Trusted Platform Module (TPM).
Startup Key on USB only: Select this option to use a startup key stored on a USB
flash drive. When you select this option, BitLocker locks the normal boot process
until a USB device that contains a BitLocker startup key is attached to the
computer.
TPM and Startup Key on USB: Select this option to use TPM and a startup key
stored on a USB flash drive. When you select this option, BitLocker locks the
normal boot process until a USB device that contains a BitLocker startup key is
attached to the computer.
TPM and PIN: Select this option to use TPM and a personal identification number
(PIN). When you select this option, BitLocker locks the normal boot process until
the user provides the PIN.
To encrypt a specific, non-OS data drive, select Specific drive. Then select the drive from
the list.
AES_128
AES_256
XTS_AES256
XTS_AES128
By default or if not specified, the step continues to use the default encryption method
for the OS version. If the step runs on a version of Windows that doesn't support the
specified algorithm, it falls back to the OS default. In this circumstance, the task
sequence engine sends status message 11911.
Tip
You can also use Configuration Manager to create and deploy BitLocker
management policies. These policies use full disk encryption. To manage BitLocker
on devices after the task sequence deploys the OS, enable this option. For more
information, see Plan for BitLocker management.
7 Note
The client will only escrow its key to the Configuration Manager site if you
configure one of the following options:
Create and use a certificate to encrypt the site database for BitLocker
management.
To not create a password, select Do not create recovery key . Creating a password is the
recommended option.
7 Note
If Configuration Manager can't escrow the key, by default this task sequence step
fails.
Select this option to allow BitLocker drive encryption to complete prior to running the
next step in the task sequence. If you select this option, BitLocker encrypts the entire
disk volume before the user is able to sign in to the computer.
The encryption process can take hours to complete when encrypting a large hard drive.
Not selecting this option allows the task sequence to proceed immediately.
Skip this step for computers that do not have a TPM or when TPM
is not enabled
Select this option to skip drive encryption on a computer that doesn't contain a
supported or enabled TPM. For example, use this option when you deploy an OS to a
virtual machine. By default, this setting is disabled for the Enable BitLocker step. If you
enable this setting, and the device doesn't have a functional TPM, the task sequence
engine logs an error to smsts.log and sends status message 11912. The task sequence
continues past this step.
) Important
Every setting you specify for this step applies to a single specified disk. To format
and partition another disk on the destination computer, add an additional Format
and Partition Disk step to the task sequence.
This step runs only in Windows PE. It doesn't run in the full OS.
To add this step in the task sequence editor, select Add, select Disks, and select Format
and Partition Disk.
OSDDiskIndex
OSDGPTBootDisk
OSDPartitions
OSDPartitionStyle
Disk Number
The physical disk number of the disk to format. The number is based on Windows disk
enumeration ordering.
In version 2010 and earlier, this number can't be larger than 99. In version 2103 and
later, the maximum number is 10,000. This change helps support storage area network
(SAN) scenarios.
If you select this property, enter a custom variable name. Add an earlier step in the task
sequence to set the value of this custom variable to an integer value for the physical
disk.
Format and Partition Disk for data disk: specifies myDataDisk variable
Configures disk 2 for raw storage
A variation of this example uses disk numbers and partitioning plans for different
hardware types.
7 Note
You can still use the existing task sequence variable OSDDiskIndex. However, each
instance of the Format and Partition Disk step uses the same index value. If you
want to programmatically set the disk number for multiple instances of this step,
use this variable property.
Disk Type
The type of the disk to format. There are two options to select from the drop-down list:
7 Note
If you change the disk type from Standard (MBR) to GPT, and the partition layout
contains an extended partition, the task sequence removes all extended and logical
partitions from the layout. The task sequence editor prompts to confirm this action
before changing the disk type.
Volume
Specific information about the partition or volume that the task sequence creates,
including the following attributes:
Name
Remaining disk space
To create a new partition, select New to launch the Partition Properties dialog box.
Specify the partition type and size, and if it's a boot partition. To modify an existing
partition, select the partition to be modified, and then select the Properties button. For
more information about how to configure hard drive partitions, see one of the following
articles:
Install Application
This step installs the specified applications, or a set of applications defined by a dynamic
list of task sequence variables. When the task sequence runs this step, the application
installation begins immediately without waiting for a policy polling interval.
It must run under the Local System account and not the user account.
It must not interact with the desktop. The program must run silently or in an
unattended mode.
It must not initiate a restart on its own. The application must request a restart by
using the standard restart code, 3010. This behavior makes sure that this step
correctly handles the restart. If the application returns a 3010 exit code, the task
sequence engine restarts the computer. After the restart, the task sequence
automatically continues.
If the application checks for running executable files, the task sequence will fail to
install it. If you don't configure this step to continue on error, then the entire task
sequence fails.
It's not supported to install applications during an OS deployment task sequence when
the device also has policies assigned for Windows Defender Application Control. In this
scenario, you can't use these applications after the task sequence completes. To work
around this timing issue, deploy the applications after the task sequence completes.
7 Note
Starting in version 2107, when the following conditions are true, there's a seven-
minute delay before this step:
When this step runs, the application checks the applicability of the requirement rules
and detection method on its deployment types. Based on the results of this check, the
application installs the applicable deployment type. If a deployment type contains
dependencies, the dependent deployment type is evaluated and installed as part of this
step. Application dependencies aren't supported for stand-alone media.
7 Note
To install an application that supersedes another application, the content files for
the superseded application must be available. Otherwise this task sequence step
fails. For example, Microsoft Visio 2010 is installed on a client or in a captured
image. When the Install Application step installs Microsoft Visio 2013, the content
files for Microsoft Visio 2010 (the superseded application) must be available on a
distribution point. If Microsoft Visio isn't installed at all on a client or captured
image, the task sequence installs Microsoft Visio 2013 without checking for the
Microsoft Visio 2010 content files.
If you retire a superseded app, and the new app is referenced in a task sequence,
the task sequence fails to start.
This behavior is by design: the task sequence
requires all app references.
This task sequence step runs only in the full OS. It doesn't run in Windows PE.
To add this step in the task sequence editor, select Add, select Software, and select
Install Application.
_TSAppInstallStatus
SMSTSMPListRequestTimeoutEnabled
SMSTSMPListRequestTimeout
TSErrorOnWarning
7 Note
If the client fails to retrieve the management point list from location services, use
the SMSTSMPListRequestTimeoutEnabled and SMSTSMPListRequestTimeout task
sequence variables. These variables specify how many milliseconds a task sequence
waits before it retries installing an application. For more information, see Task
sequence variables.
Get-CMTSStepInstallApplication
New-CMTSStepInstallApplication
Remove-CMTSStepInstallApplication
Set-CMTSStepInstallApplication
Configuration Manager filters out any disabled applications, or any applications with the
following settings:
These applications don't appear in the Select the application to install dialog box.
7 Note
You can't install applications by using a dynamic variable list for stand-alone media
deployments.
For example, to install a single application by using a task sequence variable called
AA01, specify the following variable:
The following conditions affect the applications installed by the task sequence:
If the value of a variable contains any information other than the name of the
application. The task sequence doesn't install the application, and the task
sequence continues.
If the task sequence doesn't find a variable with the specified base name and "01"
suffix, the task sequence doesn't install any applications.
) Important
These values are case-sensitive. For example, "install" is different than "Install". If
you need to change the value, the task sequence editor doesn't detect a change of
case. Make another edit at the same time, for example, modify the step description.
Delete the app content from the client cache after the step runs. This behavior is
beneficial on devices with small hard drives or when installing lots of large apps in
succession.
7 Note
When you select Continue on error on the Options tab of this step, the task
sequence continues when an application fails to install. When you don't enable this
option, the task sequence fails, and doesn't install remaining applications.
Besides the default options, configure the following additional settings on the Options
tab of this task sequence step:
If one of the application installations unexpectedly restarts the computer, retry this step.
The step enables this setting by default with two retries. You can specify from one to five
retries.
Install Package
Use this step to install a software package as part of the task sequence. When this step
runs, the installation begins immediately without waiting for a policy polling interval.
It must run under the Local System account and not a user account.
It shouldn't interact with the desktop. The program must run silently or in an
unattended mode.
It must not initiate a restart on its own. The software must request a restart using
the standard restart code, 3010. This behavior makes sure that the task sequence
properly handles the restart. If the software does return a 3010 exit code, the task
sequence engine restarts the computer. After the restart, the task sequence
automatically continues.
Programs that use the Run another program first option to install a dependent
program aren't supported when deploying an OS. If you enable the package option Run
another program first, and the dependent program already ran on the destination
computer, the dependent program runs and the task sequence continues. However, if
the dependent program hasn't already run on the destination computer, the task
sequence step fails.
This task sequence step runs only in the full OS. It doesn't run in Windows PE.
To add this step in the task sequence editor, select Add, select Software, and select
Install Package.
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 PowerShell Script step. Add it after the Setup Windows
and ConfigMgr step and before the first Install Package step. The Run PowerShell
Script step runs the following commands to enable the software distribution agent
before the first Install Package step:
PowerShell
$namespace = "root\ccm\policy\machine\requestedconfig"
$class = "CCM_SoftwareDistributionClientConfig"
$classArgs = @{
Enabled = 'true'
LockSettings='TRUE'
PolicySource='local'
PolicyVersion='1.0'
SiteSettingsKey='1'
OSDDoNotLogCommand
Get-CMTSStepInstallSoftware
New-CMTSStepInstallSoftware
Remove-CMTSStepInstallSoftware
Set-CMTSStepInstallSoftware
Tip
The task sequence installs packages using this base variable name. The base variable
name is for a set of task sequence variables defined for a collection or computer. These
variables specify the packages that the task sequence installs for that collection or
computer. Each variable name consists of its common base name plus a numerical suffix
starting at 001. The value for each variable must contain a package ID and the name of
the software separated by a colon.
For the task sequence to install software by using a dynamic variable list, enable the
following setting on the Advanced tab of the package Properties: Allow this program
to be installed from the Install Package task sequence without being deployed.
7 Note
You can't install software packages by using a dynamic variable list for stand-alone
media deployments.
For example, to install a single software package by using a task sequence variable
called AA001, you specify the following variable:
AA001 CEN00054:Install
To install three software packages, you would specify the following variables:
AA001 CEN00054:Install
AA003 CEN00031:Install
The following conditions affect the packages installed by the task sequence:
If you don't create the value of a variable in the correct format, or it doesn't specify
a valid package ID and name, the software installation fails.
If the task sequence doesn't find a variable with the specified base name and "001"
suffix, the task sequence doesn't install any packages. The task sequence
continues.
) Important
These values are case-sensitive. For example, "install" is different than "Install". If
you need to change the value, the task sequence editor doesn't detect a change of
case. Make another edit at the same time, for example, modify the step description.
This setting specifies that the step continues if an individual software package
installation fails. If you specify this setting, the task sequence continues regardless of any
installation errors. If you don't specify this setting, and the installation fails, the step
immediately ends.
) Important
For best performance, install the latest version of the Windows Update Agent.
This task sequence step runs only in the full OS. It doesn't run in Windows PE.
To add this step in the task sequence editor, select Add, select Software, and select
Install Software Updates.
SMSInstallUpdateTarget
SMSTSMPListRequestTimeoutEnabled
SMSTSMPListRequestTimeout
SMSTSSoftwareUpdateScanTimeout
SMSTSWaitForSecondReboot
7 Note
If the client fails to retrieve the management point list from location services, use
the SMSTSMPListRequestTimeoutEnabled and SMSTSMPListRequestTimeout
variables. These variables specify how many milliseconds a task sequence waits
before it retries installing an application or software update. For more information,
see Task sequence variables.
Get-CMTSStepInstallUpdate
New-CMTSStepInstallUpdate
Remove-CMTSStepInstallUpdate
Set-CMTSStepInstallUpdate
For more recommendations and a technical flow chart diagram for this step, see Install
Software Updates.
Select this option to install all mandatory software updates with administrator-defined
installation deadlines.
Select this option to install all available software updates. First deploy these updates to a
collection of which the computer is a member. The task sequence installs all available
software updates on the destination computers.
By default, this step uses cached scan results from the Windows Update Agent. Disable
this option to instruct the Windows Update Agent to download the latest catalog from
the software update point. Enable this option when using a task sequence to capture
and build an OS image. A large number of software updates is likely in this scenario.
Many of these updates have dependencies. For example, install update ABC before
update XYZ appears as applicable. When you disable this setting, and deploy the task
sequence to many clients, they all connect to the software update point at the same
time. This behavior results in performance issues during the process and download of
the update catalog.
In most circumstances, use the default setting to use cached scan results.
If one of the updates unexpectedly restarts the computer, retry this step. The step
enables this setting by default with two retries. You can specify from one to five retries.
7 Note
7 Note
This task sequence step runs only in the full OS. It doesn't run in Windows PE.
To add this step in the task sequence editor, select Add, select General, and select Join
Domain or Workgroup.
OSDJoinAccount
OSDJoinDomainName
OSDJoinDomainOUName
OSDJoinPassword
OSDJoinSkipReboot
OSDJoinType
OSDJoinWorkgroupName
Get-CMTSStepJoinDomainWorkgroup
New-CMTSStepJoinDomainWorkgroup
Remove-CMTSStepJoinDomainWorkgroup
Set-CMTSStepJoinDomainWorkgroup
Join a workgroup
Select this option to have the destination computer join the specified workgroup. If the
computer is currently a member of a domain, selecting this option causes the computer
to reboot.
Join a domain
Select this option to have the destination computer join the specified domain.
Optionally, enter or browse for an organizational unit (OU) in the specified domain for
the computer to join. If the computer is currently a member of some other domain or a
workgroup, this option causes the computer to reboot. If the computer is already a
member of another OU, since Active Directory Domain Services doesn't allow changing
the OU via this method, Windows Setup ignores this setting.
Select Set to enter the username and password for an account with permissions to join
the domain. Enter the account in the format: Domain\account . For more information on
the task sequence domain joining account, see Accounts.
This step completely removes the Configuration Manager client, instead of only
removing key information. When the task sequence deploys the captured OS image, it
installs a new Configuration Manager client each time.
Tip
By default, the task sequence engine only removes the client during the Build and
capture a reference operating system image task sequence. The task sequence
engine doesn't remove the client during other capture methods, such as capture
media or a custom task sequence. You can overide this behavior for an OS
deployment task sequence. Set the task sequence variable
SMSTSUninstallCCMClient to TRUE before the Prepare ConfigMgr Client for
Capture step. This variable and behavior only applies to OS deployment task
sequences. It removes the client after the next restart of the device.
This task sequence step runs only in the full OS. It doesn't run in Windows PE.
To add this step in the task sequence editor, select Add, select Images, and select
Prepare ConfigMgr Client for Capture.
SMSTSUninstallCCMClient
Cmdlets for Prepare ConfigMgr Client for Capture
Manage this step with the following PowerShell cmdlets:
Get-CMTSStepPrepareConfigMgrClient
New-CMTSStepPrepareConfigMgrClient
Remove-CMTSStepPrepareConfigMgrClient
Set-CMTSStepPrepareConfigMgrClient
This step runs only in the full OS. It doesn't run in Windows PE.
To add this step in the task sequence editor, select Add, select Images, and select
Prepare Windows for Capture.
OSDKeepActivation
OSDTargetSystemRoot
Get-CMTSStepPrepareWindows
New-CMTSStepPrepareWindows
Remove-CMTSStepPrepareWindows
Set-CMTSStepPrepareWindows
The Windows Autopilot for existing devices task sequence uses this step with this
option.
If you want the task sequence to refresh the device and then immediately start
OOBE for Autopilot, leave this option off.
Enable this option to shut down the device after imaging. Then you can deliver the
device to a user, who starts OOBE with Autopilot when they turn it on for the first
time.
Pre-provision BitLocker
Use this step to enable BitLocker on a drive while in Windows PE. By default, only the
used drive space is encrypted, so encryption times are much faster. You apply the key
management options by using the Enable BitLocker step after the OS installs.
) Important
Pre-provisioning BitLocker requires that the computer has a supported and enabled
Trusted Platform Module (TPM).
This step runs only in Windows PE. It doesn't run in the full OS.
To add this step in the task sequence editor, select Add, select Disks, and select Pre-
provision BitLocker.
Cmdlets for Pre-provision BitLocker
Manage this step with the following PowerShell cmdlets:
Get-CMTSStepOfflineEnableBitLocker
New-CMTSStepOfflineEnableBitLocker
Remove-CMTSStepOfflineEnableBitLocker
Set-CMTSStepOfflineEnableBitLocker
Specify the drive for which you want to enable BitLocker. BitLocker only encrypts the
used space on the drive.
AES_128
AES_256
XTS_AES256
XTS_AES128
By default or if not specified, the step continues to use the default encryption method
for the OS version. If the step runs on a version of Windows that doesn't support the
specified algorithm, it falls back to the OS default. In this circumstance, the task
sequence engine sends status message 11911.
Skip this step for computers that do not have a TPM or when TPM
is not enabled (Pre-provision BitLocker)
Select this option to skip drive encryption on a computer that doesn't contain a
supported or enabled TPM. For example, use this option when you deploy an OS to a
virtual machine. By default, this setting is enabled for the Pre-provision BitLocker step.
The step fails on a device without a TPM or a TPM that doesn't initialize. If the device
doesn't have a functional TPM, the task sequence engine logs a warning to smsts.log
and sends status message 11912.
For more information about managing the user state when deploying operating
systems, see Manage user state.
If you use the Request State Store step to request access to a state migration point to
capture user state, this step notifies the state migration point that the capture process is
complete. The state migration point then marks the user state data as available for
restore. The state migration point sets the access control permissions for the user state
data so that only the restoring computer has read-only access.
If you use the Request State Store step to request access to a state migration point to
restore user state, this step notifies the state migration point that the restore process is
complete. The state migration point then activates its configured data retention settings.
) Important
Set the Continue on Error option for any steps between the Request State Store
and Release State Store steps. Every Request State Store step must have a
matching Release State Store step.
This step runs only in the full OS. It doesn't run in Windows PE.
To add this step in the task sequence editor, select Add, select User State, and select
Release State Store.
Get-CMTSStepReleaseStateStore
New-CMTSStepReleaseStateStore
Remove-CMTSStepReleaseStateStore
Set-CMTSStepReleaseStateStore
For more information about managing the user state when deploying operating
systems, see Manage user state.
Use this step in conjunction with the Release State Store, Capture User State, and
Restore User State steps. You use these steps to migrate computer state using a state
migration point and the User State Migration Tool (USMT).
7 Note
When creating a new state migration point, user state storage isn't available for up
to one hour. To expedite availability, adjust any property settings on the state
migration point to trigger a site control file update.
This step runs in the full OS and in Windows PE for offline USMT.
To add this step in the task sequence editor, select Add, select User State, and select
Request State Store.
Get-CMTSStepRequestStateStore
New-CMTSStepRequestStateStore
Remove-CMTSStepRequestStateStore
Set-CMTSStepRequestStateStore
If the Configuration Manager site has multiple active state migration points, this step
finds a state migration point with available disk space. The task sequence queries the
management point for a list of state migration points, and then evaluates each until it
finds one that meets the minimum requirements.
Request access to a state migration point to restore previously captured user state and
settings to a destination computer.
If there are multiple state migration points, this step finds the state migration point that
has the state for the destination computer.
Number of retries
The number of times that this step tries to find an appropriate state migration point
before failing.
The amount of time in seconds that the task sequence step waits between retry
attempts.
If the task sequence can't access the state migration point using the computer account,
it uses the network access account credentials to connect. This option is less secure
because other computers could use the network access account to access the stored
state. This option might be necessary if the destination computer isn't domain joined.
Restart Computer
Use this step to restart the computer running the task sequence. After the restart, the
computer automatically continues with the next step in the task sequence.
To add this step in the task sequence editor, select Add, select General, and select
Restart Computer.
SMSRebootMessage
SMSRebootTimeout
Get-CMTSStepReboot
New-CMTSStepReboot
Remove-CMTSStepReboot
Set-CMTSStepReboot
Properties for Restart Computer
On the Properties tab for this step, configure the settings described in this section.
Select this option for the destination computer to use the boot image assigned to the
task sequence. The task sequence uses the boot image to run subsequent steps in
Windows PE.
Notification message
Enter a notification message to display to the user before the destination computer
restarts.
For more information about managing the user state when deploying operating
systems, see Manage user state.
Use this step with the Request State Store and Release State Store steps to save or
restore the state settings with a state migration point. This option always decrypts the
USMT state store by using an encryption key that Configuration Manager generates and
manages.
Starting in version 2103, this step and the Capture User State step use the current
highest supported encryption algorithm, AES 256.
) Important
If you have any active user state migrations, before you update the Configuration
Manager client on those devices, restore the user state. Otherwise, the updated
client will fail to restore the user state when it tries to use a different encryption
algorithm. If necessary, you can manually restore the user state and explicitly use
the USMT parameter /decrypt:3DES .
The Restore User State step provides control over a limited subset of the most
commonly used USMT options. Specify additional command-line options with the
OSDMigrateAdditionalRestoreOptions variable.
) Important
If you're using this step for a purpose unrelated to an OS deployment scenario, add
the Restart Computer step immediately following the Restore User State step.
This step runs only in the full OS. It doesn't run in Windows PE.
To add this step in the task sequence editor, select Add, select User State, and select
Restore User State.
_OSDMigrateUsmtRestorePackageID
OSDMigrateAdditionalRestoreOptions
OSDMigrateContinueOnRestore
OSDMigrateEnableVerboseLogging
OSDMigrateLocalAccounts
OSDMigrateLocalAccountPassword
OSDStateStorePath
Get-CMTSStepRestoreUserState
New-CMTSStepRestoreUserState
Remove-CMTSStepRestoreUserState
Set-CMTSStepRestoreUserState
Specify the package that contains the version of USMT for this step to use. This package
doesn't require a program. When the step runs, the task sequence uses the version of
USMT in the specified package. Specify a package containing the 32-bit or 64-bit
version of USMT. The architecture of USMT depends upon the architecture of the OS to
which the task sequence is restoring state.
It shouldn't interact with the desktop. The command must run silently or in an
unattended mode.
It must not initiate a restart on its own. The command must request a restart using
the standard restart code, 3010. This behavior makes sure that the task sequence
properly handles the restart. If the command does return a 3010 exit code, the task
sequence engine restarts the computer. After the restart, the task sequence
automatically continues.
To add this step in the task sequence editor, select Add, select General, and select Run
Command Line.
OSDDoNotLogCommand
SMSTSDisableWow64Redirection
SMSTSRunCommandLineUserName
SMSTSRunCommandLineUserPassword
SMSTSRunCommandLineAsUser
WorkingDirectory
Get-CMTSStepRunCommandLine
New-CMTSStepRunCommandLine
Remove-CMTSStepRunCommandLine
Set-CMTSStepRunCommandLine
Command line
Specifies the command line that the task sequence runs. This field is required. Include
file name extensions, for example, .vbs and .exe. Include all required settings files and
command-line options.
If you don't specify the file name extension, Configuration Manager tries .com, .exe, and
.bat. If the file name has an extension that's not an executable type, Configuration
Manager tries to apply a local association. For example, if the command line is
readme.gif, Configuration Manager starts the application specified on the destination
computer for opening .gif files.
Examples:
setup.exe /a
7 Note
Use this setting to save the command output to a custom task sequence variable.
7 Note
Start in
Specifies the executable folder for the program, up to 127 characters. This folder can be
an absolute path on the destination computer or a path relative to the distribution point
folder that contains the package. This field is optional.
Examples:
c:\officexp
i386
7 Note
The Browse button browses the local computer for files and folders. Anything you
select must also exist on the destination computer. It must exist in the same
location and with the same file and folder names.
Package
When you specify files or programs on the command line that aren't already present on
the destination computer, select this option to specify the Configuration Manager
package that contains the necessary files. The package doesn't require a program. If the
specified files exist on the destination computer, this option isn't required.
Time-out
Specifies a value that represents how long Configuration Manager allows the command
line to run. This value can be from one minute to 999 minutes. The default value is 15
minutes. This option is disabled by default.
) Important
If you enter a value that doesn't allow enough time for the specified command to
complete successfully, this step fails. The entire task sequence could fail depending
on step or group conditions. If the time-out expires, Configuration Manager
terminates the command-line process.
Specifies that the command line is run as a Windows user account other than the Local
System account.
7 Note
To run simple scripts or commands with another account after installing the OS,
first add the account to the computer. Additionally, you may need to restore
Windows user profiles to run more complex programs, such as a Windows Installer.
Account
Specifies the Windows user account this step uses to run the command line. The
command line runs with the permissions of the specified account. Select Set to specify
the local user or domain account. For more information on the task sequence run-as
account, see Accounts.
) Important
If this step specifies a user account and runs in Windows PE, the action fails. You
can't join Windows PE to a domain. The smsts.log file records this failure.
Success codes
Include other exit codes from the script that the step should evaluate as success.
It shouldn't interact with the desktop. The script must run silently or in an
unattended mode.
It must not initiate a restart on its own. The script must request a restart using the
standard restart code, 3010. This behavior makes sure that the task sequence
properly handles the restart. If the script does return a 3010 exit code, the task
sequence engine restarts the computer. After the restart, the task sequence
automatically continues.
Use signed PowerShell scripts in Unicode format. ANSI format, which is the default,
doesn't work with this step.
This step can be run in the full OS or Windows PE. To run this step in Windows PE,
enable PowerShell in the boot image. Enable the WinPE-PowerShell component from
the Optional Components tab in the properties for the boot image. For more
information about how to modify a boot image, see Manage boot images.
7 Note
2 Warning
Some antimalware software may inadvertently trigger events for this task sequence
step. To allow these scripts to run without interference, configure the antimalware
software to exclude %windir%\temp\smstspowershellscripts .
To add this step in the task sequence editor, select Add, select General, and select Run
PowerShell Script.
OSDLogPowerShellParameters
SMSTSRunPowerShellAsUser
SMSTSRunPowerShellUserName
SMSTSRunPowerShellUserPassword
Cmdlets for Run PowerShell Script
Manage this step with the following PowerShell cmdlets:
Get-CMTSStepRunPowerShellScript
New-CMTSStepRunPowerShellScript
Remove-CMTSStepRunPowerShellScript
Set-CMTSStepRunPowerShellScript
Package
Specify the Configuration Manager package that contains the PowerShell script. One
package can contain multiple PowerShell scripts.
Script name
Specifies the name of the PowerShell script to run. This field is required.
When you add or edit a script, the PowerShell script window provides the following
actions:
Parameters
Specifies the parameters passed to the PowerShell script. These parameters are the
same as the PowerShell script parameters on the command line.
Provide parameters consumed by the script, not for the Windows PowerShell command
line.
The following example contains invalid parameters. The first two items are Windows
PowerShell command-line parameters (-NoLogo and -ExecutionPolicy Unrestricted).
The script doesn't consume these parameters.
MyParameter2 MyValue2
If a parameter value includes a special character or a space, use single quotation marks
( ' ) around the value. Using double quotation marks ( " ) may cause the task sequence
step to incorrectly process the parameter.
You can also set this property to a variable. For example, if you specify
%MyScriptVariable% , when the task sequence runs the script, it adds the value of this
Bypass: Load all configuration files and run all scripts. If you download an unsigned
script from the internet, Windows PowerShell doesn't prompt for permission
before running the script.
) Important
7 Note
For an example of how to use this step property, see How to set variables.
Start in
Specify the starting folder for the script, up to 127 characters. This folder can be an
absolute path on the destination computer or a path relative to the distribution point
folder that contains the package. This field is optional.
7 Note
The Browse button browses the local computer for files and folders. Anything you
select must also exist on the destination computer. It must exist in the same
location and with the same file and folder names.
Time-out
Specify a value that represents how long Configuration Manager allows the PowerShell
script to run. This value can be from one minute to 999 minutes. The default value is 15
minutes. This option is disabled by default.
) Important
If you enter a value that doesn't allow enough time for the specified script to
complete successfully, this step fails. The entire task sequence could fail depending
on step or group conditions. If the time-out expires, Configuration Manager
terminates the PowerShell process.
Specify that the PowerShell script is run as a Windows user account other than the Local
System account.
7 Note
To run simple scripts or commands with another account after installing the OS,
first add the account to the computer. Additionally, you may need to restore
Windows user profiles to run more complex actions.
Account
Specify the Windows user account this step uses to run the PowerShell script. The
specified account must be a local administrator on the system and the script runs with
the permissions of this account. Select Set to specify the local user or domain account.
For more information on the task sequence run-as account, see Accounts.
) Important
If this step specifies a user account and runs in Windows PE, the action fails. You
can't join Windows PE to a domain. The smsts.log file records this failure.
Success codes
Include other exit codes from the script that the step should evaluate as success.
To add this step in the task sequence editor, select Add, select General, and select Run
Task Sequence.
The environment is global. If the parent task sequence sets a variable, and then the
child task sequence changes that variable, it retains the latest value. If the child
task sequence creates a new variable, it's available for the rest of the parent task
sequence.
Status messages are sent per normal for a single task sequence operation.
The task sequence writes entries to the smsts.log file, with new log entries that
make it clear when a child task sequence starts.
You can't select a task sequence with a boot image reference. For any deployment
that requires a boot image, specify it on the parent task sequence.
If a child task sequence is disabled, the deployment fails. You can't use the
Continue on error option to work around this limitation.
If a child task sequence contains steps that are considered high impact, Software
Center doesn't detect it and show the high-impact notification. Modify the
properties of the parent task sequence, on the User Notification tab, to specify that
This is a high-impact task sequence.
If a child task sequence has a missing package reference, viewing the parent task
sequence doesn't detect this state. If you edit the parent task sequence, it detects
any missing references in child task sequences when you make changes to the
parent.
Get-CMTSStepRunTaskSequence
New-CMTSStepRunTaskSequence
Remove-CMTSStepRunTaskSequence
Set-CMTSStepRunTaskSequence
1. Gather information from the computer and its environment. Then set specified task
sequence variables with the information.
2. Evaluate defined rules. Set task sequence variables based on the rules that evaluate
to true.
To add this step in the task sequence editor, select Add, select General, and select Set
Dynamic Variables.
_SMSTSMake
_SMSTSModel
_SMSTSMacAddresses
_SMSTSIPAddresses
_SMSTSSerialNumber
_SMSTSAssetTag
_SMSTSUUID
Get-CMTSStepSetDynamicVariable
New-CMTSStepSetDynamicVariable
Remove-CMTSStepSetDynamicVariable
Set-CMTSStepSetDynamicVariable
New-CMTSRule
Computer: Evaluate values for hardware asset tag, UUID, serial number, or MAC
address. Set multiple values as necessary. If any value is true, then the rule
evaluates as true. For example, the following rule evaluates as true if the device
serial number is 5892087 and the MAC address is 22-A4-5A-13-78-26:
Make and Model: Evaluate values for the make and model of a computer. Both the
make and model must evaluate to true for the rule to evaluate to true.
Specify an asterisk ( * ) and question mark ( ? ) as wild cards characters. The asterisk
matches multiple characters and the question mark matches a single character. For
example, the string DELL*900? matches both DELL-ABC-9001 and DELL9009 .
Task Sequence Variable: Add a task sequence variable, condition, and value to
evaluate. The conditions are the same as for step conditions. The rule evaluates to
true when the value set for the variable meets the specified condition.
Specify one or more variables to set for a rule that evaluates to true, or set
variables without using a rule. Select an existing variable, or create a custom
variable.
Existing task sequence variables: Select one or more variables from a list of
existing task sequence variables. Array variables aren't available to select.
Custom task sequence variables: Define a custom task sequence variable. You
can also specify an existing task sequence variable. This setting is useful to
specify an existing variable array, such as OSDAdapter, since variable arrays
aren't in the list of existing task sequence variables.
After you select the variables for a rule, provide a value for each variable. The variable is
set to the specified value when the rule evaluates to true. For each variable, you can
select Do not display this value to hide the value of the variable. By default, some
existing variables hide values, such as the OSDCaptureAccountPassword variable.
) Important
When you import a task sequence with the Set Dynamic Variables step,
Configuration Manager removes any variable values marked as Do not display this
value. After you import the task sequence, re-enter the value for the dynamic
variable.
When you use the option Do not display this value, the value of the variable isn't
displayed in the task sequence editor. The task sequence log file (smsts.log) or the task
sequence debugger won't show the variable value either. The variable can still be used
by the task sequence when it runs. If you no longer want these variables to be hidden,
delete them first. Then redefine the variables without selecting the option to hide them.
2 Warning
If you include variables in the Run Command Line step's command line, the task
sequence log file displays the full command line including the variable values. To
prevent potentially sensitive data from appearing in the log file, set the task
sequence variable OSDDoNotLogCommand to TRUE .
To add this step in the task sequence editor, select Add, select General, and select Set
Task Sequence Variable.
Get-CMTSStepSetVariable
New-CMTSStepSetVariable
Remove-CMTSStepSetVariable
Set-CMTSStepSetVariable
Specify the name of a task sequence built-in or action variable, or specify your own
user-defined variable name.
Enable this option to mask sensitive data stored in task sequence variables. For example,
when specifying a password.
7 Note
Enable this option and then set the value of the task sequence variable. Otherwise
the variable value isn't set as you intend, which may cause unexpected behaviors
when the task sequence runs.
When you use the option Do not display this value, the value of the variable isn't
displayed in the task sequence editor. The task sequence log file (smsts.log) or the task
sequence debugger won't show the variable value either. The variable can still be used
by the task sequence when it runs. If you no longer want this variable to be hidden,
delete it first. Then redefine the variable without selecting the option to hide it.
2 Warning
If you include variables in the Run Command Line step's command line, the task
sequence log file displays the full command line including the variable values. To
prevent potentially sensitive data from appearing in the log file, set the task
sequence variable OSDDoNotLogCommand to TRUE .
Value
The task sequence sets the variable to this value. Set this task sequence variable to the
value of another task sequence variable with the syntax %varname% .
This step is responsible for transitioning the task sequence from Windows PE to the full
OS. The step runs both in Windows PE and the full OS because of this transition.
However, since the transition starts in Windows PE, it can only be added during the
Windows PE portion of the task sequence.
This step replaces sysprep.inf or unattend.xml directory variables, such as %WINDIR% and
%ProgramFiles% , with the Windows PE installation directory, X:\Windows . The task
To add this step in the task sequence editor, select Add, select Images, and select Setup
Windows and ConfigMgr.
Preliminaries: Windows PE
2. Download the package that contains the Configuration Manager client. Add the
package to the deployed image.
Set up Windows
Image-based installation
2. Enable or disable the local Administrator account, based on the option selected in
the Apply Windows Settings step.
Windows group policy normally doesn't process until after the task sequence is
complete. This behavior is consistent across different versions of Windows. Other
custom actions during the task sequence can trigger group policy evaluation. For
more information on the order of operations, see Run a script after setup is
complete (SetupComplete.cmd).
SMSClientInstallProperties
Get-CMTSStepSetupWindowsAndConfigMgr
New-CMTSStepSetupWindowsAndConfigMgr
Remove-CMTSStepSetupWindowsAndConfigMgr
Set-CMTSStepSetupWindowsAndConfigMgr
Client package
Select Browse, then choose the Configuration Manager client installation package to
use with this step.
Specify command-line options to use during client installation. For example, enter
/skipprereq: silverlight.exe to inform CCMSetup.exe to not install the Microsoft
Silverlight prerequisite. For more information about available command-line options for
CCMSetup.exe, see About client installation properties.
7 Note
Don't enable Continue on error on the Options tab. If there's an error during this
step, the task sequence fails whether or not you enable this setting.
This task sequence step runs only in the full OS. It doesn't run in Windows PE.
To add this step in the task sequence editor, select Add, select Images, and select
Upgrade Operating System.
Tip
Windows 11 and Windows 10 media include multiple editions. When you configure
a task sequence to use an OS upgrade package or OS image, be sure to select a
supported edition.
_SMSTSOSUpgradeActionReturnCode
SetupCompletePause
OSDSetupAdditionalUpgradeOptions
Get-CMTSStepUpgradeOperatingSystem
New-CMTSStepUpgradeOperatingSystem
Remove-CMTSStepUpgradeOperatingSystem
Set-CMTSStepUpgradeOperatingSystem
Upgrade package
Select this option to specify the Windows OS upgrade package to use for the upgrade.
Source path
Specifies a local or network path to the Windows media that Windows Setup uses. This
setting corresponds to the Windows Setup command-line option /InstallFrom .
You can also specify a variable, such as %MyContentPath% or %DPC01% . When you use a
variable for the source path, set its value earlier in the task sequence. For example, use
the Download Package Content step to specify a variable for the location of the OS
upgrade package. Then, use that variable for the source path for this step.
Edition
Specify the edition within the OS media to use for the upgrade.
Product key
Specify the product key to apply to the upgrade process.
Starting in version 2103, select this option to upgrade a client's Windows OS by using a
feature update. This option uses content that you synchronize through the software
update point. The size of the servicing ESD file is generally smaller than the OS upgrade
package and WIM image file.
Select the new button (gold asterisk), and add a feature update.
7 Note
The user experience with a feature update in a task sequence is the same as with an OS
upgrade package.
Add drivers to the destination computer during the upgrade process. The drivers must
be compatible with Windows 10 or later. This setting corresponds to the Windows Setup
command-line option /InstallDriver . For more information, see Windows Setup
command-line options.
Driver package: Select Browse and choose an existing driver package from the list.
Staged content: Select this option to specify the location for the driver content.
You can specify a local folder, network path, or a task sequence variable. When you
use a variable for the source path, set its value earlier in the task sequence. For
example, by using the Download Package Content step.
Tip
If you want to have dynamic content for multiple types of hardware:
Use multiple instances of this step with conditions for the hardware types and
separate driver content.
Use multiple instances of the Download Package Content step. Place the
content in a common location, and then use the Staged content option. The
benefit of this method is the task sequence has a single Upgrade OS step.
7 Note
Time-out (minutes)
Specify the number of minutes before Configuration Manager fails this step. This option
is useful if Windows Setup stops processing but doesn't terminate.
When you enable this option, this step doesn't put the Configuration Manager client
into provisioning mode. Windows Setup runs silently in the background, and the client
continues to function as normal. For more information, see Provisioning mode.
Setup returns an exit code as a result of the scan. The following table provides some of
the more common exit codes:
For more information about this parameter, see Windows Setup Command-Line
Options.
Specifies that Setup completes the installation, ignoring any dismissible compatibility
messages. This setting corresponds to the Windows Setup command-line option
/Compat IgnoreWarning .
Enable setup to perform Dynamic Update operations, such as search, download, and
install updates. This setting corresponds to the Windows Setup command-line option
/DynamicUpdate . This setting isn't compatible with Configuration Manager software
updates. Enable this option when you manage updates with stand-alone Windows
Server Update Services (WSUS) or Windows Update for Business.
The Install Software Updates step is commonly used in Configuration Manager task
sequences. When installing or updating the OS, it triggers the software updates
components to scan for and deploy updates. This step can cause challenges for some
customers, such as long timeout delays or missed updates. Use the information in this
article to help mitigate common issues with this step, and for better troubleshooting
when things go wrong.
Recommendations
To help this process be successful, use the following recommendations:
Single index
Many image files include multiple indexes, such as for different editions of Windows.
Reduce the image file to a single index that you require. This practice reduces the
amount of time to apply software updates to the image. It also enables the next
recommendation to reduce the image size.
Automate this process when you add an OS image to the site. For more information, see
Add an OS image.
Command
There's an option to automate this process. For more information, see Optimized image
servicing.
For more information on this process, see Create a task sequence to capture an OS.
Time to create and capture image, even though it's mostly automated
Increased time to distribute the image to distribution points, which can be seen as
outage for active deployments
Time to test through pre-production environments may be longer than OS patch
cycle, which can make the updated image irrelevant
Fewer updates to apply at deployment time per client, which saves time and
bandwidth during deployment
Fewer updates to worry about causing restarts
You can schedule the servicing process at the site
Tip
You can automate the selection of software updates using PowerShell. Use the Get-
CMSoftwareUpdate cmdlet to get a list of updates. Then use the New-
CMOperatingSystemImageUpdateSchedule cmdlet to create the offline servicing
schedule. The following example shows one method to automate this action:
PowerShell
$OSBuild = "1809"
A known good source, which reduces the risk of image corruption as a possible
issue
Eliminates modifications to image as a possible issue
Flowchart
This flowchart diagram shows the process when you include the Install Software
Updates step in a task sequence.
In progress: Has the timer reached the value in task sequence variable
SMSTSSoftwareUpdateScanTimeout? (Default 1 hour)
Yes: The step fails.
No: Go to Monitoring
Failed: The step fails.
Complete: Go to Enumerate update list
5. Enumerate update list: The SUM agent enumerates the list of updates returned by
the scan, determining which are available or mandatory.
6. Are there any updates in the list of scan results?
7. Deployment process: The install updates process happens in parallel with the
deployment monitoring process.
a. Install updates: The task sequence engine calls the SUM agent via Update
Deployment API to install all available or only mandatory updates. This behavior
is based on the configuration of the step, whether you select Required for
installation - Mandatory software updates only or Available for installation -
All software updates. You can also specify this behavior using the
SMSInstallUpdateTarget variable.
i. SUM agent install: Normal install process using existing cached list of
updates, with standard content download. Install update via Windows
Update Agent (WUA). (UpdatesDeployment.log, UpdatesHandler.log,
WuaHandler.log, WindowsUpdate.log)
b. Start deployment timer and show progress: The task sequence engine starts an
installation timer, shows subprogress at 10% intervals in TS Progress UI, and
waits.
i. Monitoring: The task sequence engine polls the SUM agent for status.
ii. What's the response from the SUM agent?
Timeouts
The diagram includes two of the timeout variables that apply to this step. There are
other standard timers from other components that can affect this process.
Troubleshooting
Use the following resources and additional information to help you troubleshoot issues
with this step:
Make sure to target your software update deployments to the same collection as
the task sequence deployment.
Make sure to include software update points in boundary groups. For more
information, see Configuration Manager clients don't get software updates.
To help improve overall performance, reduce the size of the software update
catalog. For example:
Remove unnecessary classifications, products, and languages. For more
information, see Configure classifications and products to synchronize.
Reindex the site database and rebuild statistics. For more information, see the
FAQ for site sizing and performance.
Superseded.
7 Note
Configuration Manager does this action for you. For more information,
see WSUS cleanup behavior.
Itanium
Beta
Version Next
ARM
The default task sequence template for Windows in-place upgrade includes groups with
recommended actions to add before and after the upgrade process. These actions are
common among many customers who are successfully upgrading Windows on devices.
This article provides information about these recommended steps during different
phases of the upgrade process.
Battery checks
Add steps in this group to check whether the computer is using battery, or wired power.
This action requires a custom script or utility to run this check.
If it returns any results, then the device is running on battery. Otherwise, the device is
connected to wired power.
If it returns any results, then the device is running on Wi-Fi. Otherwise, the device is
connected to wired network connection.
If the application uses Windows Installer, copy the Uninstall program command line
from the Programs tab on the Windows Installer deployment type properties of the
application. Then add a Run Command Line step in this group with the uninstall
program command line. For example:
msiexec /x {150031D8-1234-4BA8-9F52-D6E5190D1CBA} /q
If you're using a third-party disk encryption program, provide its encryption driver to
Windows Setup with the /ReflectDrivers command-line option. Add a Set Task
Sequence Variable step to the task sequence in this group. Set the task sequence
variable to OSDSetupAdditionalUpgradeOptions. Set the value to /ReflectDrivers with
the path to the driver. This task sequence variable appends the Windows Setup
command-line used by the task sequence. Contact your software vendor for any further
guidance on this process.
You use a single upgrade task sequence for both x86 and x64 platforms. Include
two Download Package Content steps in the Prepare for Upgrade group. Set
conditions on each step to detect the client architecture. This condition causes the
step to download only the appropriate OS upgrade package. Configure each
Download Package Content step to use the same variable, and use the variable for
the media path on the Upgrade Operating System step.
7 Note
Post-processing
After you create the task sequence, add more steps in the Post-Processing group of the
task sequence.
7 Note
This task sequence isn't linear. There are conditions on steps that can affect the
results of the task sequence. This behavior depends on whether it successfully
upgrades the client computer, or if it has to roll back the client computer to the
original OS.
The default task sequence template for Windows in-place upgrade includes other
groups with recommended actions to add after the upgrade process. These actions in
the Post-Processing group are common among many customers who are successfully
upgrading Windows on devices. If you have an existing task sequence that doesn't
already have these actions, manually add them to your task sequence in the Post-
Processing group.
4. Add a Run Command Line step in this group. Specify the package that contains the
XML file, and then specify the following command line:
Rollback
When something goes wrong with the upgrade process after the computer restarts,
Windows Setup rolls back the system to the previous OS. The task sequence then
continues with any steps in the Rollback group. After you create the task sequence, add
optional steps in this group as necessary. For example, reverse any changes made to the
system in the Prepare for Upgrade group, such as uninstalling incompatible software.
Collect logs
To gather logs from the client, add steps in this group.
A common practice is to copy the log files to a network share. To establish this
connection, use the Connect to Network Folder step.
To do the copy operation, use a custom script or utility with either the Run
Command Line or Run PowerShell Script step.
For more information on setupact.log and other Windows Setup logs, see
Windows Setup Log files.
For more information on _SMSTSLogPath and other useful variables, see Task
sequence variables.
One such tool is Windows SetupDiag. It's a standalone diagnostic tool to get details
about why a Windows upgrade was unsuccessful.
Tip
Always use the most recent version of SetupDiag for the latest functionality and
fixes to known issues. For more information, see SetupDiag.
Other recommendations
Windows documentation
Review Windows documentation to Resolve Windows client upgrade errors. This article
also includes detailed information about the upgrade process.
b. Specify the same upgrade package, and then enable the option to Perform
Windows Setup compatibility scan without starting upgrade.
c. Enable Continue on error on the Options tab.
2. Immediately following this Upgrade assessment step, add a Run Command Line
step. Specify the following command line:
This command causes the command prompt to exit with the specified non-zero
exit code, which the task sequence considers a failure.
This condition means that the task sequence only runs this Run Command Line
step if the return code isn't a success code.
For more information, see the Upgrade operating system task sequence step.
Manage BitLocker
If you're using BitLocker Disk Encryption, then by default Windows Setup automatically
suspends it during upgrade. Windows Setup includes the /BitLocker command-line
parameter to control this behavior. If your security requirements need devices to always
have active disk encryption, then use the OSDSetupAdditionalUpgradeOptions task
sequence variable in the Prepare for Upgrade group to include /BitLocker
TryKeepActive . For more information, see Windows Setup Command-line Options.
Remove default apps
Some customers remove default provisioned apps in Windows. For example, the Bing
Weather app, or the Microsoft Solitaire Collection. In some situations, these apps return
after upgrading Windows. For more information, see How to keep apps removed from
Windows client from returning during an update.
Add a Run Command Line step to the task sequence in the Prepare for Upgrade group.
Specify a command line similar to the following example:
"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Deprovisione
d\Microsoft.BingWeather_8wekyb3d8bbwe" /f
Next steps
For more information, see the following articles:
The Pre-provision BitLocker task sequence step in Configuration Manager allows you to
enable BitLocker from the Windows Preinstallation Environment (Windows PE) prior to
operating system deployment. Only the used drive space is encrypted, and therefore,
encryption times are much faster. This is done with a randomly generated clear
protector applied to the formatted volume and encrypting the volume prior to running
the Windows setup process. The ability to pre-provision BitLocker was introduced with
Windows 8 and Windows Server 2012. However, you can pre-provision BitLocker on a
hard drive and install Windows 7 as long as you follow specific steps. After Windows 7
Setup completes, you must set a BitLocker key protector because the Windows 7
BitLocker control panel does not support BitLocker with a clear protector. You must add
a key protector by using the Enable BitLocker step or by using the manage-bde.exe
command-line tool.
) Important
Pre-provision BitLocker
7 Note
The task sequence might have additional steps depending on how you configured
the settings in the wizard. For example, you might have the Capture Windows
Settings step if you selected Captured Microsoft Windows settings on the State
Migration page of the wizard.
Task Details
sequence
step
Disable This step disables BitLocker encryption, if it is currently enabled. For more
BitLocker information, see Disable BitLocker.
Restart This step restarts the computer in Windows PE by running the boot image assigned
Computer to the task sequence. You must use a boot image with Windows PE 4 or later to pre-
in provision BitLocker. For more information, see Restart Computer.
Windows
PE
Partition These steps format and partition the specified drive on the destination computer by
Disk 0 - using BIOS or UEFI. The task sequence uses UEFI when it detects that the destination
BIOS
computer is in UEFI mode. For more information, see Format and Partition Disk.
Partition
Disk 0 -
UEFI
Pre- This step enables BitLocker on a drive while in Windows PE. Only the used drive
provision space is encrypted. Because you partitioned and formatted the hard drive in the
BitLocker previous step, there is no data, and encryption completes very quickly. For more
information, see Pre-provision BitLocker.
Apply This step prepares the answer file that is used to install the operating system on the
Operating destination computer and sets the OSDTargetSystemDrive task sequence variable to
System the drive letter of the partition that contains the operating system files. The answer
file and variable are used by the Setup Windows and ConfigMgr step to install the
operating system. For more information, see Apply Operating System Image.
Apply This step adds Windows settings to the answer file. The answer file is used by the
Windows Setup Windows and ConfigMgr step to install the operating system. For more
Settings information, see Apply Windows Settings.
Task Details
sequence
step
Apply This step adds Network settings to the answer file. The answer file is used by the
Network Setup Windows and ConfigMgr step to install the operating system. For more
Settings information, see Apply Network Settings Step.
Apply This step matches and installs drivers as part of the operating system deployment.
Device For more information, see Auto Apply Drivers.
Drivers
Setup This step performs the transition from Windows PE to the new operating system.
Windows This task sequence step is a required part of any operating system deployment. It
and installs the Configuration Manager client into the new operating system and
ConfigMgr prepares for the task sequence to continue execution in the new operating system.
For more information, see Setup Windows and ConfigMgr.
Enable This step enables BitLocker encryption on the hard drive and sets key protectors.
BitLocker Because the hard drive was pre-provisioned with BitLocker, this step completes very
quickly. Windows 7 requires that you add a key protector. If you do not use this step,
you can run the manage-bde.exe command-line tool to set a key protector. For
more information, see Enable BitLocker.
How to use task sequence variables in
Configuration Manager
Article • 10/04/2022
The task sequence engine in the OS deployment feature of Configuration Manager uses
many variables to control its behaviors. Use these variables to:
For a reference of all available task sequence variables, see Task sequence variables.
Types of variables
There are several types of variables:
Built-in
Action
Custom
Read-only
Array
Built-in variables
Built-in variables provide information about the environment where the task sequence
runs. Their values are available throughout the whole task sequence. Typically, the task
sequence engine initializes built-in variables before it runs any steps.
For example, _SMSTSLogPath is an environment variable that specifies the path to which
Configuration Manager components write log files. Any task sequence step can access
this environment variable.
The task sequence evaluates some variables before each step. For example,
_SMSTSCurrentActionName lists the name of the current step.
Action variables
Task sequence action variables specify configuration settings that a single task sequence
step uses. By default, the step initializes its settings before it runs. These settings are
available only while the associated task sequence step runs. The task sequence adds the
action variable value to the environment before it runs the step. It then removes the
value from the environment after the step runs.
For example, you add the Run Command Line step to a task sequence. This step
includes a Start In property. The task sequence stores a default value for this property as
the WorkingDirectory variable. The task sequence initializes this value before it runs the
Run Command Line step. While this step is running, access the Start In property value
from the WorkingDirectory value. After the step completes, the task sequence removes
the value of the WorkingDirectory variable from the environment. If the task sequence
includes another Run Command Line step, it initializes a new WorkingDirectory variable.
At that time, the task sequence sets the variable to the starting value for the current
step. For more information, see WorkingDirectory.
The default value for an action variable is present when the step runs. If you set a new
value, it's available to multiple steps in the task sequence. If you override a default value,
the new value stays in the environment. This new value overrides the default value for
other steps in the task sequence. For example, you add a Set Task Sequence Variable
step as the first step of the task sequence. This step sets the WorkingDirectory variable
to C:\ . Any Run Command Line step in the task sequence uses the new starting
directory value.
Some task sequence steps mark certain action variables as output. Steps later in the task
sequence read these output variables.
7 Note
Not all task sequence steps have action variables. For example, although there are
variables associated with the Enable BitLocker action, there are no variables
associated with the Disable BitLocker action.
Custom variables
These variables are any that Configuration Manager doesn't create. Initialize your own
variables to use as conditions, in command lines, or in scripts.
When you specify a name for a new task sequence variable, follow these guidelines:
The task sequence variable name can include letters, numbers, the underscore
character ( _ ), and a hyphen ( - ).
Task sequence variable names have a minimum length of one character and a
maximum length of 256 characters.
User-defined variable names can't begin with the underscore character. Only read-
only task sequence variables are preceded by the underscore character.
Task sequence variable names aren't case-sensitive. For example, OSDVAR and
osdvar are the same task sequence variable.
Task sequence variable names can't begin or end with a space. They also can't have
embedded spaces. The task sequence ignores any spaces at the beginning or the
end of a variable name.
There's no set limit to how many task sequence variables you can create. However, the
number of variables is limited by the size of the task sequence environment. The total
size limit for the task sequence environment is 8 KB. For more information, see Reduce
the size of task sequence policy.
Read-only variables
You can't change the value of some variables, which are read-only. Usually the name
begins with an underscore character ( _ ). The task sequence uses them for its
operations. Read-only variables are visible in the task sequence environment.
7 Note
Read-only task sequence variables can be read by steps in a task sequence but they
can't be set. For example, use a read-only variable as part of the command line for
a Run Command Line step. You can't set a read-only variable by using the Set Task
Sequence Variable step.
Array variables
The task sequence stores some variables as an array. Each element in the array
represents the settings for a single object. Use these variables when a device has more
than one object to configure. The following task sequence steps use array variables:
Delete a variable from the environment by using the same methods as creating a
variable. To delete a variable, set the variable value to an empty string.
You can combine methods to set a task sequence variable to different values for the
same sequence. For example, set the default values using the task sequence editor, and
then set custom values using a script.
If you set the same variable by different methods, the task sequence engine uses the
following order:
3. Variables set by any method during the task sequence take precedence over
collection or device variables.
Task sequence variable values can be case-sensitive depending on the usage of the
value. In most cases, task sequence variable values aren't case-sensitive. A variable
that includes a password is case-sensitive.
You can specify a script name from a package, or directly enter a PowerShell script in the
step. Then use the step property to Output to task sequence variable to save the script
output to a custom task sequence variable.
7 Note
You can also use a PowerShell script to set one or more variables with the
TSEnvironment object. For more information, see How to use variables in a
running task sequence in the Configuration Manager SDK.
2. Use the option to Enter a PowerShell script to specify the following command:
PowerShell
(Get-Culture).TwoLetterISOLanguageName
For more information on the cmdlet, see Get-Culture. For more information on the
two-letter ISO language names, see List of ISO 639-1 codes .
4. On the Apply OS step for the English language image, create the following
condition: Task Sequence Variable CurrentOSLanguage equals "en"
Tip
When the Run PowerShell Script step runs on a device with the English language
version of Windows, the command returns the value en . It then saves that value into the
custom variable. When the Apply OS step for the English language image runs on the
same device, the condition evaluates to true. If you have multiple instances of the Apply
OS step for different languages, the task sequence dynamically runs the step that
matches the OS language.
You can hide per-device and per-collection variables so that they aren't visible in the
Configuration Manager console. When you use the option Do not display this value in
the Configuration Manager console, the value of the variable isn't displayed in the
console. The task sequence log file (smsts.log) or the task sequence debugger won't
show the variable value either. The variable can still be used by the task sequence when
it runs. If you no longer want these variables to be hidden, delete them first. Then
redefine the variables without selecting the option to hide them.
2 Warning
If you include variables in the Run Command Line step's command line, the task
sequence log file displays the full command line including the variable values. To
prevent potentially sensitive data from appearing in the log file, set the task
sequence variable OSDDoNotLogCommand to TRUE .
You can manage per-device variables at a primary site or at a central administration site.
Configuration Manager doesn't support more than 1,000 assigned variables for a device.
) Important
When you use per-collection variables for task sequences, consider the following
behaviors:
When you delete a collection, this action also deletes the task sequence
variables that you configured for the collection.
4. For each variable that you want to create, select the New icon. Specify the Name
and Value of the task sequence variable. If you want to hide the variable so that it's
not visible in the Configuration Manager console, select the option Do not display
this value in the Configuration Manager console.
5. After you've added all the variables to the device properties, select OK.
3. For each variable that you want to create, select the New icon. Specify the Name
and Value of the task sequence variable. If you want to hide the variable so that it's
not visible in the Configuration Manager console, select the option Do not display
this value in the Configuration Manager console.
4. Optionally, specify the priority for Configuration Manager to use when the task
sequence variables are evaluated.
5. After you've added all the variables to the collection properties, select OK.
For more information, see How to use variables in a running task sequence in the
Configuration Manager SDK.
Prestart command
The prestart command is a script or executable that runs in Windows PE before the user
selects the task sequence. The prestart command can query a variable or prompt the
user for information, and then save it in the environment. Use the TSEnvironment COM
object to read and write variables from the prestart command.
For more information, see Prestart commands for task sequence media.
Task Sequence Wizard
After you select a task sequence in the Task Sequence Wizard window, the page to edit
task sequence variables includes an Edit button. You can use accessible keyboard
shortcuts to edit the variables. This change helps in cases where a mouse isn't available.
7 Note
Task sequences are stored on stand-alone media. However, all other types of
media, such as prestaged media, retrieve the task sequence from a management
point.
When you run a task sequence from media, you can add a variable on the
Customization page of the wizard.
Use the media variables in place of per-collection or per-computer variables. If the task
sequence is running from media, per-computer and per-collection variables don't apply
and aren't used.
Tip
The task sequence writes the package ID and prestart command line to the
CreateTSMedia.log file on the computer that runs the Configuration Manager
console. This log file includes the value for any task sequence variables. Review this
log file to verify the value for the task sequence variables.
Use in a step
Step condition
Custom script
Windows setup answer file
Use in a step
Specify a variable value for a setting in a task sequence step. In the task sequence editor,
edit the step, and specify the variable name as the field value. Enclose the variable name
in percent signs ( % ).
For example, use the variable name as part of the Command Line field of the Run
Command Line step. The following command line writes the computer name to a text
file.
Step condition
Use built-in or custom task sequence variables as part of a condition on a step or group.
The task sequence evaluates the variable value before it runs the step or group.
1. In the task sequence editor, select the step or group to which you want to add the
condition.
2. Switch to the Options tab for the step or group. Click Add Condition, and select
Task Sequence Variable.
3. In the Task Sequence Variable dialog box, specify the following settings:
The three examples above form a common condition to test whether the task sequence
is running from a boot image in Windows PE:
See this condition on the Capture Files and Settings group of the default task sequence
template to install an existing OS image.
For more information about conditions, see Task sequence editor - Conditions.
Custom script
Read and write variables by using the Microsoft.SMS.TSEnvironment COM object while
the task sequence is running.
The following Windows PowerShell example queries the _SMSTSLogPath variable to get
the current log location. The script also sets a custom variable.
PowerShell
$LogPath = $tsenv.Value("_SMSTSLogPath")
See also
Task sequence steps
This article is a reference for all of the available variables in alphabetical order. Use the
browser Find function (typically CTRL + F) to find a specific variable. The variable notes
if it's specific to particular step. The article on task sequence steps includes the list of
variables specific to each step.
_OSDDetectedWinDir
The task sequence scans the computer's hard drives for a previous operating system
installation when Windows PE starts. The Windows folder location is stored in this
variable. You can configure your task sequence to retrieve this value from the
environment and use it to specify the same Windows folder location to use for the new
operating system installation.
_OSDDetectedWinDrive
The task sequence scans the computer's hard drives for a previous operating system
installation when Windows PE starts. The hard drive location for where the operating
system is installed is stored in this variable. You can configure your task sequence to
retrieve this value from the environment and use it to specify the same hard drive
location to use for the new operating system.
_OSDMigrateUsmtPackageID
Applies to the Capture User State step.
(input)
Specifies the package ID of the Configuration Manager package that contains the USMT
files. This variable is required.
_OSDMigrateUsmtRestorePackageID
Applies to the Restore User State step.
(input)
Specifies the package ID of the Configuration Manager package that contains the USMT
files. This variable is required.
_SMSTSAdvertID
Stores the current running task sequence deployment unique ID. It uses the same
format as a Configuration Manager software distribution deployment ID. If the task
sequence is running from stand-alone media, this variable is undefined.
Example
ABC20001
_SMSTSAppInstallNeedsRetry
Starting this Configuration Manager 2211 HFRU Kb 16643863 and above
This value is set to true if the previous application failed to install and is required to be
retried.
_SMSTSAssetTag
Applies to the Set Dynamic Variables step.
_SMSTSBootImageID
If the current running task sequence references a boot image package, this variable
stores the boot image package ID. If the task sequence doesn't reference a boot image
package, this variable isn't set.
Example
ABC00001
_SMSTSBootUEFI
The task sequence sets this variable when it detects a computer that's in UEFI mode.
_SMSTSClientCache
The task sequence sets this variable when it caches content on the local drive. The
variable contains the path to the cache. If this variable doesn't exist, then there's no
cache.
_SMSTSClientGUID
Stores the value of Configuration Manager client GUID. If the task sequence is running
from standalone media, this variable isn't set.
Example
0a1a9a4b-fc56-44f6-b7cd-c3f8ee37c04c
_SMSTSCurrentActionName
Specifies the name of the currently running task sequence step. This variable is set
before the task sequence manager runs each individual step.
Example
run command line
_SMSTSDefaultGateways
Applies to the Set Dynamic Variables step.
_SMSTSDownloadOnDemand
If the current task sequence is running in download-on-demand mode, this variable is
true . Download-on-demand mode means the task sequence manager downloads
content locally only when it must access the content.
_SMSTSInWinPE
When the current task sequence step is running in Windows PE, this variable is true .
Test this task sequence variable to determine the current OS environment.
_SMSTSIPAddresses
Applies to the Set Dynamic Variables step.
_SMSTSLastActionName
Stores the name of the last action that was run. This variable relates to
_SMSTSLastActionRetCode. The task sequence logs these values to the smsts.log file.
This variable is beneficial when troubleshooting a task sequence. When a step fails, a
custom script can include the step name along with the return code.
_SMSTSLastActionRetCode
Stores the return code from the last action that was run. This variable can be used as a
condition to determine if the next step is run.
Example
0
_SMSTSLastActionSucceeded
If the last step succeeded, this variable is true .
If the task sequence skipped the last action, because the step is disabled or the
associated condition evaluated to false, this variable isn't reset. It still holds the
value for the previous action.
_SMSTSLastContentDownloadLocation
This variable contains the last location where the task sequence downloaded or
attempted to download content. Inspect this variable instead of parsing the client logs
for this content location.
_SMSTSLaunchMode
Specifies that the task sequence started via one of the following methods:
SMS: The Configuration Manager client, such as when a user starts it from
Software Center
UFD: Legacy USB media
UFD+FORMAT: Newer USB media
CD: A bootable CD
DVD: A bootable DVD
PXE: Network boot with PXE
HD: Prestaged media on a hard disk
_SMSTSLogPath
Stores the full path of the log directory. Use this value to determine where the task
sequence steps log their actions. This value isn't set when a hard drive isn't available.
_SMSTSMacAddresses
Applies to the Set Dynamic Variables step.
_SMSTSMachineName
Stores and specifies the computer name. Stores the name of the computer that the task
sequence uses to log all status messages. To change the computer name in the new OS,
use the OSDComputerName variable.
_SMSTSMake
Applies to the Set Dynamic Variables step.
_SMSTSMDataPath
Specifies the path defined by the SMSTSLocalDataDrive variable. This path specifies
where the task sequence stores temporary cache files on the destination computer while
it's running. When you define SMSTSLocalDataDrive before the task sequence starts,
such as by setting a collection variable, Configuration Manager then defines the
_SMSTSMDataPath variable once the task sequence starts.
_SMSTSMediaType
Specifies the type of media used to initiate the installation, which includes:
PXE : PXE
OEMMedia : Prestaged Media
_SMSTSModel
Applies to the Set Dynamic Variables step.
_SMSTSMP
Stores the URL or IP address of a Configuration Manager management point.
_SMSTSMPPort
Stores the port number of a Configuration Manager management point.
_SMSTSOrgName
Stores the branding title name that the task sequence displays in the progress dialog.
_SMSTSOSUpgradeActionReturnCode
Applies to the Upgrade operating system step.
Stores the exit code value that Windows Setup returns to indicate success or failure. This
variable is useful with the /Compat command-line option.
Example
On the completion of a compat-only scan, take action in later steps depending on the
failure or success exit code. On success, initiate the upgrade. Or set a marker in the
environment to collect with hardware inventory. For example, add a file or set a registry
key. Use this marker to create a collection of computers that are ready to upgrade, or
that require action before upgrade.
_SMSTSPackageID
Stores the current running task sequence ID. This ID uses the same format as a
Configuration Manager package ID.
Example
HJT00001
_SMSTSPackageName
Stores the current running task sequence name. A Configuration Manager administrator
specifies this name when creating the task sequence.
Example
Deploy Windows 10 task sequence
_SMSTSRunFromDP
Set to true if the current task sequence is running in run-from-distribution-point mode.
This mode means the task sequence manager obtains required package shares from
distribution point.
_SMSTSSerialNumber
Applies to the Set Dynamic Variables step.
_SMSTSSetupRollback
Specifies whether Windows Setup performed a rollback operation during an in-place
upgrade. The variable values can be true or false .
_SMSTSSiteCode
Stores the site code of the Configuration Manager site.
Example
ABC
_SMSTSTimezone
This variable stores the time zone information in the following format:
Bias,StandardBias,DaylightBias,StandardDate.wYear,wMonth,wDayOfWeek,wDay,wHour,wMin
ute,wSecond,wMilliseconds,DaylightDate.wYear,wMonth,wDayOfWeek,wDay,wHour,wMinute,w
Second,wMilliseconds,StandardName,DaylightName
Example
For the time zone Eastern Time (US and Canada):
Time
_SMSTSType
Specifies the type of the current running task sequence. It can have one of the following
values:
_SMSTSUseCRL
When the task sequence uses HTTPS to communicate with the management point, this
variable specifies whether it uses the certificate revocation list (CRL).
_SMSTSUserStarted
Specifies whether a user started the task sequence. This variable is set only if the task
sequence is started from Software Center. For example, if _SMSTSLaunchMode is set to
SMS .
true : Specifies that the task sequence is manually started by a user from Software
Center.
_SMSTSUseSSL
Specifies whether the task sequence uses SSL to communicate with the Configuration
Manager management point. If you configure your site systems for HTTPS, the value is
set to true .
_SMSTSUUID
Applies to the Set Dynamic Variables step.
_SMSTSWTG
Specifies if the computer is running as a Windows To Go device.
_TS_CRMEMORY
Applies to the Check Readiness step.
A read-only variable for whether the Minimum memory (MB) check returned true ( 1 ) or
false ( 0 ). If you don't enable the check, the value of this read-only variable is blank.
_TS_CRSPEED
Applies to the Check Readiness step.
A read-only variable for whether the Minimum processor speed (MHz) check returned
true ( 1 ) or false ( 0 ). If you don't enable the check, the value of this read-only variable is
blank.
_TS_CRDISK
Applies to the Check Readiness step.
A read-only variable for whether the Minimum free disk space (MB) check returned true
( 1 ) or false ( 0 ). If you don't enable the check, the value of this read-only variable is
blank.
_TS_CROSTYPE
Applies to the Check Readiness step.
A read-only variable for whether the Current OS to be refreshed is check returned true
( 1 ) or false ( 0 ). If you don't enable the check, the value of this read-only variable is
blank.
_TS_CRARCH
Applies to the Check Readiness step.
A read-only variable for whether the Architecture of current OS check returned true ( 1 )
or false ( 0 ). If you don't enable the check, the value of this read-only variable is blank.
_TS_CRMINOSVER
Applies to the Check Readiness step.
A read-only variable for whether the Minimum OS version check returned true ( 1 ) or
false ( 0 ). If you don't enable the check, the value of this read-only variable is blank.
_TS_CRMAXOSVER
Applies to the Check Readiness step.
A read-only variable for whether the Maximum OS version check returned true ( 1 ) or
false ( 0 ). If you don't enable the check, the value of this read-only variable is blank.
_TS_CRCLIENTMINVER
Applies to the Check Readiness step.
A read-only variable for whether the Minimum client version check returned true ( 1 ) or
false ( 0 ). If you don't enable the check, the value of this read-only variable is blank.
_TS_CROSLANGUAGE
Applies to the Check Readiness step.
A read-only variable for whether the Language of current OS check returned true ( 1 ) or
false ( 0 ). If you don't enable the check, the value of this read-only variable is blank.
_TS_CRACPOWER
Applies to the Check Readiness step.
A read-only variable for whether the AC power plugged in check returned true ( 1 ) or
false ( 0 ). If you don't enable the check, the value of this read-only variable is blank.
_TS_CRNETWORK
Applies to the Check Readiness step.
A read-only variable for whether the Network adapter connected check returned true
( 1 ) or false ( 0 ). If you don't enable the check, the value of this read-only variable is
blank.
_TS_CRUEFI
Applies to the Check Readiness step.
A read-only variable for whether the Computer is in UEFI mode check returned BIOS ( 0 )
or UEFI ( 1 ). If you don't enable the check, the value of this read-only variable is blank.
_TS_CRWIRED
Applies to the Check Readiness step.
A read-only variable for whether the Network adapter is not wireless check returned
true ( 1 ) or false ( 0 ). If you don't enable the check, the value of this read-only variable is
blank.
_TS_CRTPMACTIVATED
Starting in version 2111
A read-only variable for whether the TPM 2.0 or above is activated check returned
inactive ( 0 ) or active ( 1 ). If you don't enable the check, the value of this read-only
variable is blank.
_TS_CRTPMENABLED
Starting in version 2111
A read-only variable for whether the TPM 2.0 or above is enabled check returned
disabled ( 0 ) or enabled ( 1 ). If you don't enable the check, the value of this read-only
variable is blank.
_TSAppInstallStatus
The task sequence sets this variable with the installation status for the application during
the Install Application step. It sets one of the following values:
Error: At least one application failed because of an error during the Install
Application step.
Warning: No errors occurred during the Install Application step. One or more
applications, or a required dependency, didn't install because a requirement wasn't
met.
Success: There are no errors or warnings detected during the Install Application
step.
_TSSecureBoot
Use this variable to determine the state of secure boot on a UEFI-enabled device. The
variable can have one of the following values:
NA : The associated registry value doesn't exist, which means the device doesn't
support secure boot.
Enabled : The device has secure boot enabled.
Disabled : The device has secure boot disabled.
OSDAdapter
Applies to the Apply Network Settings step.
(input)
This task sequence variable is an array variable. Each element in the array represents the
settings for a single network adapter on the computer. Access the settings for each
adapter by combining the array variable name with the zero-based network adapter
index and the property name.
If the Apply Network Settings step configures multiple network adapters, it defines the
properties for the second network adapter by using the index 1 in the variable name. For
example: OSDAdapter1EnableDHCP, OSDAdapter1IPAddressList, and
OSDAdapter1DNSDomain.
Use the following variable names to define the properties of the first network adapter
for the step to configure:
OSDAdapter0EnableDHCP
This setting is required. Possible values are True or False . For example:
true : enable Dynamic Host Configuration Protocol (DHCP) for the adapter
OSDAdapter0IPAddressList
Comma-delimited list of IP addresses for the adapter. This property is ignored unless
EnableDHCP is set to false . This setting is required.
OSDAdapter0SubnetMask
Comma-delimited list of subnet masks. This property is ignored unless EnableDHCP is
set to false . This setting is required.
OSDAdapter0Gateways
Comma-delimited list of IP gateway addresses. This property is ignored unless
EnableDHCP is set to false . This setting is required.
OSDAdapter0DNSDomain
Domain Name System (DNS) domain for the adapter.
OSDAdapter0DNSServerList
Comma-delimited list of DNS servers for the adapter. This setting is required.
OSDAdapter0EnableDNSRegistration
OSDAdapter0EnableFullDNSRegistration
Set to true to register the IP address for the adapter in DNS under the full DNS name
for the computer.
OSDAdapter0EnableIPProtocolFiltering
Set to true to enable IP protocol filtering on the adapter.
OSDAdapter0IPProtocolFilterList
Comma-delimited list of protocols allowed to run over IP. This property is ignored if
EnableIPProtocolFiltering is set to false .
OSDAdapter0EnableTCPFiltering
OSDAdapter0TCPFilterPortList
Comma-delimited list of ports to be granted access permissions for TCP. This property is
ignored if EnableTCPFiltering is set to false .
OSDAdapter0TcpipNetbiosOptions
OSDAdapter0MacAddress
OSDAdapter0Name
The name of the network connection as it appears in the network connections control
panel program. The name is between 0 and 255 characters long.
OSDAdapter0Index
Index of the network adapter settings in the array of settings.
Example
OSDAdapterCount = 1
OSDAdapter0EnableDHCP = FALSE
OSDAdapter0IPAddressList = 192.168.0.40
OSDAdapter0SubnetMask = 255.255.255.0
OSDAdapter0Gateways = 192.168.0.1
OSDAdapter0DNSSuffix = contoso.com
OSDAdapterCount
Applies to the Apply Network Settings step.
(input)
Specifies the number of network adapters installed on the destination computer. When
you set the OSDAdapterCount value, also set all the configuration options for each
adapter.
For example, if you set the OSDAdapter0TCPIPNetbiosOptions value for the first
adapter, then you must configure all the values for that adapter.
If you don't specify this value, the task sequence ignores all OSDAdapter values.
OSDAppInstallRetries
Starting this Configuration Manager 2211 HFRU Kb 16643863 and above
(input)
Specifies the number of times the task sequence step tries to install an application in the
case of failure. The value must be specified to trigger a retry in the case of application
installation failure. Application installation retry is attempted ONLY when 'Install Next
Application on Failure' option is not selected on the task.
Defaults to 0 and task sequence does not retry application installation by default.
OSDAppInstallRetryTimeout
Starting this Configuration Manager 2211 HFRU Kb 16643863 and above
(input)
Specifies the time in milliseconds, that the task sequence should wait before retrying an
application installation on failure. The value defaults to 30 seconds (30000 milliseconds).
For example, specify a value of 45000 for a retry delay of 45 seconds.
OSDApplyDriverBootCriticalContentUniqueID
Applies to the Apply Driver Package step.
(input)
Specifies the content ID of the mass storage device driver to install from the driver
package. If this variable isn't specified, no mass storage driver is installed.
OSDApplyDriverBootCriticalHardwareComponent
Applies to the Apply Driver Package step.
(input)
Specifies whether a mass storage device driver is installed, this variable must be scsi.
(input)
Specifies the boot critical ID of the mass storage device driver to install. This ID is listed
in the scsi section of the device driver's txtsetup.oem file.
OSDApplyDriverBootCriticalINFFile
Applies to the Apply Driver Package step.
(input)
OSDAutoApplyDriverBestMatch
Applies to the Auto Apply Drivers step.
(input)
If there are multiple device drivers in the driver catalog that are compatible with a
hardware device, this variable determines the step's action.
Valid values
false : Installs all compatible device drivers, and Windows chooses the best driver
to use
OSDAutoApplyDriverCategoryList
Applies to the Auto Apply Drivers step.
(input)
A comma-delimited list of the driver catalog category unique IDs. The Auto Apply
Driver step only considers the drivers in at least one of the specified categories. This
value is optional, and it's not set by default. Obtain the available category IDs by
enumerating the list of SMS_CategoryInstance objects on the site.
OSDBitLockerPIN
Applies to the Enable BitLocker step.
Specify the PIN for BitLocker encryption. This variable is only valid if the BitLocker mode
is TPM and PIN.
OSDBitLockerRebootCount
Applies to the Disable BitLocker step.
Use this variable to set the number of restarts after which to resume protection.
Valid values
An integer from 1 to 15 .
OSDBitLockerRebootCountOverride
Applies to the Disable BitLocker step.
Set this value to override the count set by the step or the OSDBitLockerRebootCount
variable. While the other methods only accept values 1 to 15, if you set this variable to 0,
BitLocker remains disabled indefinitely. This variable is useful when the task sequence
sets one value, but you want to set a separate value on a per-device or per-collection
basis.
Valid values
An integer from 0 to 15 .
OSDBitLockerRecoveryPassword
Applies to the Enable BitLocker step.
(input)
Instead of generating a random recovery password, the Enable BitLocker step uses the
specified value as the recovery password. The value must be a valid numerical BitLocker
recovery password.
OSDBitLockerStartupKey
Applies to the Enable BitLocker step.
(input)
Instead of generating a random startup key for the key management option Startup Key
on USB only, the Enable BitLocker step uses the Trusted Platform Module (TPM) as the
startup key. The value must be a valid, 256-bit Base64-encoded BitLocker startup key.
OSDCaptureAccount
Applies to the Capture OS Image step.
(input)
Specifies a Windows account name that has permissions to store the captured image on
a network share (OSDCaptureDestination). Also specify the
OSDCaptureAccountPassword.
OSDCaptureAccountPassword
Applies to the Capture OS Image step.
(input)
Specifies the password for the Windows account (OSDCaptureAccount) used to store
the captured image on a network share (OSDCaptureDestination).
OSDCaptureDestination
Applies to the Capture OS Image step.
(input)
Specifies the location where the task sequence saves the captured OS image. The
maximum directory name length is 255 characters. If the network share requires
authentication, specify the OSDCaptureAccount and OSDCaptureAccountPassword
variables.
OSDComputerName (input)
Applies to the Apply Windows Settings step.
Example
%_SMSTSMachineName% (default)
OSDComputerName (output)
Applies to the Capture Windows Settings step.
Set to the NetBIOS name of the computer. The value is set only if the
OSDMigrateComputerName variable is set to true .
OSDConfigFileName
Applies to the Apply OS Image step.
(input)
Specifies the file name of the OS deployment answer file associated with the OS
deployment image package.
OSDDataImageIndex
Applies to the Apply Data Image step.
(input)
Specifies the index value of the image that's applied to the destination computer.
OSDDiskIndex
Applies to the Format and Partition Disk step.
(input)
Specifies the physical disk number to be partitioned.
In version 2010 and earlier, this number can't be larger than 99. In version 2103 and
later, the maximum number is 10,000. This change helps support storage area network
(SAN) scenarios.
OSDDNSDomain
Applies to the Apply Network Settings step.
(input)
Specifies the primary DNS server that the destination computer uses.
OSDDNSSuffixSearchOrder
Applies to the Apply Network Settings step.
(input)
OSDDomainName
Applies to the Apply Network Settings step.
(input)
Specifies the name of the Active Directory domain that the destination computer joins.
The specified value must be a valid Active Directory Domain Services domain name.
OSDDomainOUName
Applies to the Apply Network Settings step.
(input)
Specifies the RFC 1779 format name of the organizational unit (OU) that the destination
computer joins. If specified, the value must contain the full path.
Example
LDAP://OU=MyOu,DC=MyDom,DC=MyCompany,DC=com
OSDDoNotLogCommand
Applies to the Install Package and Run Command Line steps.
(input)
To prevent potentially sensitive data from being displayed or logged, set this variable to
TRUE . This variable masks the program name in the smsts.log during an Install Package
step.
When you set this variable to TRUE , it also hides the command line from the Run
Command Line step in the log file.
OSDEnableTCPIPFiltering
Applies to the Apply Network Settings step.
(input)
Valid values
true
false (default)
OSDGPTBootDisk
Applies to the Format and Partition Disk step.
(input)
Specifies whether to create an EFI partition on a GPT hard disk. EFI-based computers use
this partition as the startup disk.
Valid values
true
false (default)
OSDImageCreator
Applies to the Capture OS Image step.
(input)
An optional name of the user who created the image. This name is stored in the WIM
file. The maximum length of the user name is 255 characters.
OSDImageDescription
Applies to the Capture OS Image step.
(input)
OSDImageIndex
Applies to the Apply OS Image step.
(input)
Specifies the image index value of the WIM file that's applied to the destination
computer.
OSDImageVersion
Applies to the Capture OS Image step.
(input)
OSDInstallDriversAdditionalOptions
Applies to the Apply Driver Package step.
(input)
Specifies additional options to add to the DISM command line when applying a driver
package. The task sequence doesn't verify the command-line options.
To use this variable, enable the setting, Install driver package via running DISM with
recurse option, on the Apply Driver Package step.
OSDJoinAccount
Applies to the following steps:
(input)
Specifies the domain user account that's used to add the destination computer to the
domain. This variable is required when joining a domain.
For more information on the task sequence domain joining account, see Accounts.
OSDJoinDomainName
Applies to the Join Domain or Workgroup step.
(input)
Specifies the name of an Active Directory domain the destination computer joins. The
length of the domain name must be between 1 and 255 characters.
OSDJoinDomainOUName
Applies to the Join Domain or Workgroup step.
(input)
Specifies the RFC 1779 format name of the organizational unit (OU) that the destination
computer joins. If specified, the value must contain the full path. The length of the OU
name must be between 0 and 32,767 characters. This value isn't set if the OSDJoinType
variable is set to 1 (join workgroup).
Example
LDAP://OU=MyOu,DC=MyDom,DC=MyCompany,DC=com
OSDJoinPassword
Applies to the following steps:
(input)
Specifies the password for the OSDJoinAccount that the destination computer uses to
join the Active Directory domain. If the task sequence environment doesn't include this
variable, then Windows Setup tries a blank password. If the variable OSDJoinType
variable is set to 0 (join domain), this value is required.
OSDJoinSkipReboot
Applies to the Join Domain or Workgroup step.
(input)
Specifies whether to skip restarting after the destination computer joins the domain or
workgroup.
Valid values
true
false
OSDJoinType
Applies to the Join Domain or Workgroup step.
(input)
Valid values
OSDJoinWorkgroupName
Applies to the Join Domain or Workgroup step.
(input)
Specifies the name of a workgroup that the destination computer joins. The length of
the workgroup name must be between 1 and 32 characters.
OSDKeepActivation
Applies to the Prepare Windows for Capture step.
(input)
Valid values
true : keep the activation flag
OsdLayeredDriver
Starting in version 2107
Specify an integer value for the layered driver to install with Windows. For more
information, see the LayeredDriver Windows setting.
2 Korean PC/AT 101-Key Compatible keyboard or the Microsoft Natural keyboard (type 1)
3 Korean PC/AT 101-Key Compatible keyboard or the Microsoft Natural keyboard (type 2)
4 Korean PC/AT 101-Key Compatible keyboard or the Microsoft Natural keyboard (type 3)
OSDLocalAdminPassword
Applies to the Apply Windows Settings step.
(input)
Specifies the local Administrator account password. If you enable the option to
Randomly generate the local administrator password and disable the account on all
supported platforms, then the step ignores this variable. The specified value must be
between 1 and 255 characters.
OSDLogPowerShellParameters
Applies to the Run PowerShell Script step.
(input)
To prevent potentially sensitive data from being logged, the Run PowerShell Script step
doesn't log script parameters in the smsts.log file. To include the script parameters in
the task sequence log, set this variable to TRUE.
OSDMigrateAdapterSettings
Applies to the Capture Network Settings step.
(input)
Specifies whether the task sequence captures the network adapter information. This
information includes configuration settings for TCP/IP and DNS.
Valid values
true (default)
false
OSDMigrateAdditionalCaptureOptions
Applies to the Capture User State step.
(input)
Specify additional command-line options for the user state migration tool (USMT) that
the task sequence uses to capture user state. The step doesn't expose these settings in
the task sequence editor. Specify these options as a string, which the task sequence
appends to the automatically generated USMT command line for ScanState.
The USMT options specified with this task sequence variable aren't validated for
accuracy prior to running the task sequence.
OSDMigrateAdditionalRestoreOptions
Applies to the Restore User State step.
(input)
Specifies additional command-line options for the user state migration tool (USMT) that
the task sequence uses when restoring the user state. Specify the additional options as a
string, which the task sequence appends to the automatically generated USMT
command line for LoadState.
The USMT options specified with this task sequence variable aren't validated for
accuracy prior to running the task sequence.
OSDMigrateComputerName
Applies to the Capture Windows Settings step.
(input)
Valid values
true (default). The OSDComputerName (output) variable is set to the NetBIOS
OSDMigrateConfigFiles
Applies to the Capture User State step.
(input)
Specifies the configuration files used to control the capture of user profiles. This variable
is used only if OSDMigrateMode is set to Advanced . This comma-delimited list value is
set to perform customized user profile migration.
Example
miguser.xml,migsys.xml,migapps.xml
OSDMigrateContinueOnLockedFiles
Applies to the Capture User State step.
(input)
If USMT can't capture some files, this variable allows the user state capture to proceed.
Valid values
true (default)
false
OSDMigrateContinueOnRestore
Applies to the Restore User State step.
(input)
Valid values
true (default)
false
OSDMigrateEnableVerboseLogging
Applies to the following steps:
Capture User State
Restore User State
(input)
Enables verbose logging for USMT. The step requires this value.
Valid values
true
false (default)
OSDMigrateLocalAccounts
Applies to the Restore User State step.
(input)
Valid values
true
false (default)
OSDMigrateLocalAccountPassword
Applies to the Restore User State step.
(input)
OSDMigrateMode
Applies to the Capture User State step.
(input)
OSDMigrateNetworkMembership
Applies to the Capture Network Settings step.
(input)
Specifies whether the task sequence migrates the workgroup or domain membership
information.
Valid values
true (default)
false
OSDMigrateRegistrationInfo
Applies to the Capture Windows Settings step.
(input)
Valid values
true (default). The OSDRegisteredOrgName (output) variable is set to the
OSDMigrateSkipEncryptedFiles
Applies to the Capture User State step.
(input)
false (default)
OSDMigrateTimeZone
Applies to the Capture Windows Settings step.
(input)
Valid values
true (default). The variable OSDTimeZone (output) is set to the time zone of the
computer.
false
OSDNetworkJoinType
Applies to the Apply Network Settings step.
(input)
Value values
0 : Join an Active Directory domain
1 : Join a workgroup
OSDPartitions
Applies to the Format and Partition Disk step.
(input)
This task sequence variable is an array variable of partition settings. Each element in the
array represents the settings for a single partition on the hard disk. Access the settings
defined for each partition by combining the array variable name with the zero-based
disk partition number and the property name.
Use the following variable names to define the properties for the first partition that this
step creates on the hard disk:
OSDPartitions0Type
Specifies the type of partition. This property is required. Valid values are Primary ,
Extended , Logical , and Hidden .
OSDPartitions0FileSystem
Specifies the type of file system to use when formatting the partition. This property is
optional. If you don't specify a file system, the step doesn't format the partition. Valid
values are FAT32 and NTFS .
OSDPartitions0Bootable
Specifies whether the partition is bootable. This property is required. If this value is set
to TRUE for MBR disks, then the step marks this partition as active.
OSDPartitions0QuickFormat
Specifies the type of format that is used. This property is required. If this value is set to
TRUE , the step performs a quick format. Otherwise, the step performs a full format.
OSDPartitions0VolumeName
Specifies the name that's assigned to the volume when it's formatted. This property is
optional.
OSDPartitions0Size
Specifies the size of the partition. This property is optional. If this property isn't
specified, the partition is created using all remaining free space. Units are specified by
the OSDPartitions0SizeUnits variable.
OSDPartitions0SizeUnits
The step uses these units to interpret the OSDPartitions0Size variable. This property is
optional. Valid values are MB (default), GB , and Percent .
OSDPartitions0VolumeLetterVariable
When this step creates partitions, it always uses the next available drive letter in
Windows PE. Use this optional property to specify the name of another task sequence
variable. The step uses this variable to save the new drive letter for future reference.
If you define multiple partitions with this task sequence step, the properties for the
second partition are defined by using the 1 index in the variable name. For example:
OSDPartitions1Type, OSDPartitions1FileSystem, OSDPartitions1Bootable,
OSDPartitions1QuickFormat, and OSDPartitions1VolumeName.
OSDPartitionStyle
Applies to the Format and Partition Disk step.
(input)
Valid values
OSDProductKey
Applies to the Apply Windows Settings step.
(input)
Specifies the Windows product key. The specified value must be between 1 and 255
characters.
OSDRandomAdminPassword
Applies to the Apply Windows Settings step.
(input)
Specifies a randomly generated password for the local Administrator account in the new
OS.
Valid values
true (default): Windows Setup disables the local Administrator account on the
target computer
false : Windows Setup enables the local administrator account on the target
computer, and sets the account password to the value of OSDLocalAdminPassword
OSDRecoveryKeyPollingFrequency
Applies to the Enable BitLocker step.
The frequency, in seconds, that the BitLocker action will poll the site database for
recovery key escrow status. Minimum value is 15 seconds. Default value is 300 seconds
(5 minutes).
OSDRecoveryKeyPollingTimeout
Applies to the Enable BitLocker step.
The maximum number of seconds for the BitLocker action to wait for the recovery key
to be escrowed to the site database. Minimum value is 30 seconds. Default value is 1800
seconds (30 minutes).
OSDRegisteredOrgName (input)
Applies to the Apply Windows Settings step.
Specifies the default registered organization name in the new OS. The specified value
must be between 1 and 255 characters.
OSDRegisteredOrgName (output)
Applies to the Capture Windows Settings step.
Set to the registered organization name of the computer. The value is set only if the
OSDMigrateRegistrationInfo variable is set to true .
OSDRegisteredUserName
Applies to the Apply Windows Settings step.
(input)
Specifies the default registered user name in the new OS. The specified value must be
between 1 and 255 characters.
OSDServerLicenseConnectionLimit
Applies to the Apply Windows Settings step.
(input)
Specifies the maximum number of connections allowed. The specified number must be
in the range between 5 and 9999 connections.
OSDServerLicenseMode
Applies to the Apply Windows Settings step.
(input)
Valid values
PerSeat
PerServer
OSDSetupAdditionalUpgradeOptions
Applies to the Upgrade Operating System step.
(input)
Specifies the additional command-line options that are added to Windows Setup during
an upgrade. The task sequence doesn't verify the command-line options.
For more information, see Windows Setup Command-Line Options.
OSDStateFallbackToNAA
Applies to the Request State Store step.
(input)
When the computer account fails to connect to the state migration point, this variable
specifies whether the task sequence falls back to use the network access account (NAA).
Valid values
true
false (default)
OSDStateSMPRetryCount
Applies to the Request State Store step.
(input)
Specifies the number of times that the task sequence step tries to find a state migration
point before the step fails. The specified count must be between 0 and 600.
OSDStateSMPRetryTime
Applies to the Request State Store step.
(input)
Specifies the number of seconds that the task sequence step waits between retry
attempts. The number of seconds can be a maximum of 30 characters.
OSDStateStorePath
Applies to the following steps:
(input)
The network share or local path name of the folder where the task sequence saves or
restores the user state. There is no default value.
OSDTargetSystemDrive
Applies to the Apply OS Image step.
(output)
Specifies the drive letter of the partition that contains the OS files after the image is
applied.
OSDTargetSystemRoot (input)
Applies to the Capture OS Image step.
Specifies the path to the Windows directory of the installed OS on the reference
computer. The task sequence verifies it as a supported OS for capture by Configuration
Manager.
OSDTargetSystemRoot (output)
Applies to the Prepare Windows for Capture step.
Specifies the path to the Windows directory of the installed OS on the reference
computer. The task sequence verifies it as a supported OS for capture by Configuration
Manager.
OSDTimeZone (input)
Applies to the Apply Windows Settings step.
Specifies the default time zone setting that's used in the new OS.
Set the value of this variable to the language invariant name of time zone. For example,
use the string in the Std value for a time zone under the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones .
OSDTimeZone (output)
Applies to the Capture Windows Settings step.
Set to the time zone of the computer. The value is set only if the OSDMigrateTimeZone
variable is set to true .
OSDWindowsSettingsInputLocale
Applies to the Apply Windows Settings step.
Specifies the default input locale setting that's used in the new OS.
For more information on the Windows setup answer file value, see Microsoft-Windows-
International-Core - InputLocale.
OSDWindowsSettingsSystemLocale
Applies to the Apply Windows Settings step.
Specifies the default system locale setting that's used in the new OS.
For more information on the Windows setup answer file value, see Microsoft-Windows-
International-Core - SystemLocale.
OSDWindowsSettingsUILanguage
Applies to the Apply Windows Settings step.
Specifies the default user interface language setting that's used in the new OS.
For more information on the Windows setup answer file value, see Microsoft-Windows-
International-Core - UILanguage.
OSDWindowsSettingsUILanguageFallback
Applies to the Apply Windows Settings step.
Specifies the fallback user interface language setting that's used in the new OS.
For more information on the Windows setup answer file value, see Microsoft-Windows-
International-Core - UILanguageFallback.
OSDWindowsSettingsUserLocale
Applies to the Apply Windows Settings step.
Specifies the default user locale setting that's used in the new OS.
For more information on the Windows setup answer file value, see Microsoft-Windows-
International-Core - UserLocale.
OSDWipeDestinationPartition
Applies to the Apply Data Image step.
(input)
Valid values
true (default)
false
OSDWorkgroupName
Applies to the Apply Network Settings step.
(input)
Specifies the name of the workgroup that the destination computer joins.
Specify either this variable or the OSDDomainName variable. The workgroup name can
be a maximum of 32 characters.
SetupCompletePause
Applies to the Upgrade Operating System step.
Use this variable to address timing issues with the Window 10 in-place upgrade task
sequence on high performance devices when Windows setup is complete. When you
assign a value in seconds to this variable, the Windows setup process delays that
amount of time before it starts the task sequence. This timeout provides the
Configuration Manager client additional time to initialize.
The following log entries are common examples of this issue that you can remediate
with this variable:
The TSManager component records entries similar to the following errors in the
smsts.log:
log
log
ERRORLEVEL = -1073741701
Exiting setupcomplete.cmd
SMSClientInstallProperties
Applies to the Setup Windows and ConfigMgr step.
(input)
Specifies the client installation properties that the task sequence uses when installing
the Configuration Manager client.
For more information, see About client installation parameters and properties.
SMSConnectNetworkFolderAccount
Applies to the Connect To Network Folder step.
(input)
Specifies the user account that is used to connect to the network share in
SMSConnectNetworkFolderPath. Specify the account password with the
SMSConnectNetworkFolderPassword value.
For more information on the task sequence network folder connection account, see
Accounts.
SMSConnectNetworkFolderDriveLetter
Applies to the Connect To Network Folder step.
(input)
Specifies the network drive letter to connect to. This value is optional. If it's not
specified, then the network connection isn't mapped to a drive letter. If this value is
specified, the value must be in the range from D to Z. Don't use X, it's the drive letter
used by Windows PE during the Windows PE phase.
Examples
D:
E:
SMSConnectNetworkFolderPassword
Applies to the Connect To Network Folder step.
(input)
SMSConnectNetworkFolderPath
Applies to the Connect To Network Folder step.
(input)
Specifies the network path for the connection. If you need to map this path to a drive
letter, use the SMSConnectNetworkFolderDriveLetter value.
Example
\\server\share
SMSInstallUpdateTarget
Applies to the Install Software Updates step.
(input)
Specifies whether to install all updates or only mandatory updates.
Valid values
All
Mandatory
SMSRebootMessage
Applies to the Restart Computer step.
(input)
Example
SMSRebootTimeout
Applies to the Restart Computer step.
(input)
Specifies the number of seconds that the warning is displayed to the user before the
computer restarts.
Examples
SMSTSAllowTokenAuthURLForACP
Applies to version 2203 and later
SMSTSAssignmentsDownloadInterval
The number of seconds to wait before the client attempts to download the policy since
the last attempt that returned no policies. By default, the client waits 0 seconds before
retrying.
You can set this variable by using a prestart command from media or PXE.
SMSTSAssignmentsDownloadRetry
The number of times a client attempts to download the policy after no policies are
found on the first attempt. By default, the client retries 0 times.
You can set this variable by using a prestart command from media or PXE.
SMSTSAssignUsersMode
Specifies how a task sequence associates users with the destination computer. Set the
variable to one of the following values:
Auto: When the task sequence deploys the OS to the destination computer, it
creates a relationship between the specified users and destination computer.
Pending: The task sequence creates a relationship between the specified users and
the destination computer. An administrator must approve the relationship to set it.
Disabled: The task sequence doesn't associate users with the destination computer
when it deploys the OS.
SMSTSDisableStatusRetry
In disconnected scenarios, the task sequence engine repeatedly tries to send status
messages to the management point. This behavior in this scenario causes delays in task
sequence processing.
Set this variable to true and the task sequence engine doesn't attempt to send status
messages after the first message fails to send. This first attempt includes multiple retries.
When the task sequence restarts, the value of this variable persists. However, the task
sequence tries sending an initial status message. This first attempt includes multiple
retries. If successful, the task sequence continues sending status regardless of the value
of this variable. If status fails to send, the task sequence uses the value of this variable.
7 Note
Task sequence status reporting relies upon these status messages to display the
progress, history, and details of each step. If status messages fail to send, they're
not queued. When connectivity is restored to the management point, they're not
sent at a later time. This behavior results in task sequence status reporting to be
incomplete and missing items.
SMSTSDisableWow64Redirection
Applies to the Run Command Line step.
(input)
By default on a 64-bit OS, the task sequence locates and runs the program in the
command line using the WOW64 file system redirector. This behavior allows the
command to find 32-bit versions of OS programs and DLLs. Setting this variable to true
disables the use of the WOW64 file system redirector. The command finds native 64-bit
versions of OS programs and DLLs. This variable has no effect when running on a 32-bit
OS.
SMSTSDownloadAbortCode
This variable contains the abort code value for the external program downloader. This
program is specified in the SMSTSDownloadProgram variable. If the program returns an
error code equal to the value of the SMSTSDownloadAbortCode variable, then the
content download fails and no other download method is attempted.
SMSTSDownloadProgram
Use this variable to specify an alternate content provider (ACP). An ACP is a downloader
program that's used to download content. The task sequence uses the ACP instead of
the default Configuration Manager downloader. As part of the content download
process, the task sequence checks this variable. If specified, the task sequence runs the
program to download the content.
SMSTSDownloadRetryCount
The number of times that Configuration Manager attempts to download content from a
distribution point. By default, the client retries 2 times.
SMSTSDownloadRetryDelay
The number of seconds that Configuration Manager waits before it retries to download
content from a distribution point. By default, the client waits 15 seconds before retrying.
SMSTSDriverRequestConnectTimeOut
Applies to the Auto Apply Drivers step.
When requesting the driver catalog, this variable is the number of seconds the task
sequence waits for the HTTP server connection. If the connection takes longer than the
timeout setting, the task sequence cancels the request. By default, the timeout is set to
60 seconds.
SMSTSDriverRequestReceiveTimeOut
Applies to the Auto Apply Drivers step.
When requesting the driver catalog, this variable is the number of seconds the task
sequence waits for a response. If the connection takes longer than the timeout setting,
the task sequence cancels the request. By default, the timeout is set to 480 seconds.
SMSTSDriverRequestResolveTimeOut
Applies to the Auto Apply Drivers step.
When requesting the driver catalog, this variable is the number of seconds the task
sequence waits for HTTP name resolution. If the connection takes longer than the
timeout setting, the task sequence cancels the request. By default, the timeout is set to
60 seconds.
SMSTSDriverRequestSendTimeOut
Applies to the Auto Apply Drivers step.
When sending a request for the driver catalog, this variable is the number of seconds
the task sequence waits to send the request. If the request takes longer than the
timeout setting, the task sequence cancels the request. By default, the timeout is set to
60 seconds.
SMSTSErrorDialogTimeout
When an error occurs in a task sequence, it displays a dialog box with the error. The task
sequence automatically dismisses it after the number of seconds specified by this
variable. By default, this value is 900 seconds (15 minutes).
SMSTSLanguageFolder
Use this variable to change the display language of a language neutral boot image.
SMSTSLocalDataDrive
Specifies where the task sequence stores temporary cache files on the destination
computer while it's running.
Set this variable before the task sequence starts, such as by setting a collection variable.
Once the task sequence starts, Configuration Manager defines the _SMSTSMDataPath
variable based on what the SMSTSLocalDataDrive variable was defined to.
SMSTSMP
Use this variable to specify the URL or IP address of the Configuration Manager
management point.
SMSTSMPListRequestTimeoutEnabled
Applies to the following steps:
Install Application
Install Software Updates
(input)
If the client isn't on the intranet, use this variable to enable repeated MPList requests to
refresh the client. By default, this variable is set to True .
When clients are on the internet, set this variable to False to avoid unnecessary delays.
SMSTSMPListRequestTimeout
Applies to the following steps:
Install Application
Install Software Updates
(input)
If the task sequence fails to retrieve the management point list (MPList) from location
services, this variable specifies how many milliseconds it waits before it retries the step.
By default, the task sequence waits 60000 milliseconds (60 seconds) before it retries. It
retries up to three times.
SMSTSPeerDownload
Use this variable to enable the client to use Windows PE peer cache. Setting this variable
to true enables this functionality.
SMSTSPeerRequestPort
A custom network port that Windows PE peer cache uses for the initial broadcast. The
default port configured in client settings is 8004.
SMSTSPersistContent
Use this variable to temporarily persist content in the task sequence cache. This variable
is different from SMSTSPreserveContent, which keeps content in the Configuration
Manager client cache after the task sequence is complete. SMSTSPersistContent uses the
task sequence cache, SMSTSPreserveContent uses the Configuration Manager client
cache.
SMSTSPostAction
Specifies a command that's run after the task sequence completes. Just before exiting
the task sequence, the TSManager process spawns the specified post action. It doesn't
wait or record any status, just exits after calling that command.
SMSTSPreserveContent
This variable flags the content in the task sequence to be kept in the Configuration
Manager client cache after the deployment. This variable is different from
SMSTSPersistContent, which only keeps the content for the duration of the task
sequence. SMSTSPersistContent uses the task sequence cache, SMSTSPreserveContent
uses the Configuration Manager client cache. Set SMSTSPreserveContent to true to
enable this functionality.
SMSTSRebootDelay
Specifies how many seconds to wait before the computer restarts. If this variable is zero
(0), the task sequence manager doesn't display a notification dialog before reboot.
Example
SMSTSRebootDelayNext
Use this variable with the existing SMSTSRebootDelay variable. If you want any later
reboots to happen with a different timeout than the first, set SMSTSRebootDelayNext to
a different value in seconds.
Example
You want to give users a 60-minute reboot notification at the start of a Windows in-
place upgrade task sequence. After that first long timeout, you want additional timeouts
to only be 60 seconds. Set SMSTSRebootDelay to 3600 , and SMSTSRebootDelayNext to
60 .
SMSTSRebootMessage
Specifies the message to display in the restart notification dialog. If this variable isn't set,
a default message appears.
Example
SMSTSRebootRequested
Indicates that a restart is requested after the current task sequence step is completed. If
the task sequence step requires a restart to complete the action, set this variable. After
the computer restarts, the task sequence continues to run from the next task sequence
step.
SMSTSRetryRequested
Requests a retry after the current task sequence step is completed. If this task sequence
variable is set, also configure the SMSTSRebootRequested variable. After the computer
is restarted, the task sequence manager reruns the same task sequence step.
SMSTSRunCommandLineAsUser
Applies to the Run Command Line step.
Use task sequence variables to configure the user context for the Run Command Line
step. You don't need to configure the Run Command Line step with a placeholder
account to use the SMSTSRunCommandLineUserName and
SMSTSRunCommandLineUserPassword variables.
true : Any further Run Command Line steps run in the context of the user
specified in SMSTSRunCommandLineUserName .
false : Any further Run Command Line steps run in the context that you
SMSTSRunCommandLineUserName
Applies to the Run Command Line step.
(input)
Specifies the account by which the command line is run. The value is a string of the form
username for a local account or domain\username for a domain one. Specify the
account password with the SMSTSRunCommandLineUserPassword variable.
7 Note
For more information on the task sequence run-as account, see Accounts.
SMSTSRunCommandLineUserPassword
Applies to the Run Command Line step.
(input)
SMSTSRunPowerShellAsUser
Applies to the Run PowerShell Script step.
Use task sequence variables to configure the user context for the Run PowerShell Script
step. You don't need to configure the Run PowerShell Script step with a placeholder
account to use the SMSTSRunPowerShellUserName and
SMSTSRunPowerShellUserPassword variables.
true : Any further Run PowerShell Script steps run in the context of the user
specified in SMSTSRunPowerShellUserName .
false : Any further Run PowerShell Script steps run in the context that you
SMSTSRunPowerShellUserName
Applies to the Run PowerShell Script step.
(input)
Specifies the account by which the PowerShell script is run. The value is a string of the
form username or domain\username. Specify the account password with the
SMSTSRunPowerShellUserPassword variable.
7 Note
To use these variables, configure the Run PowerShell Script step with the setting to
Run this step as the following account. When you enable this option, if you're
setting the user name and password with variables, specify any value for the
account.
For more information on the task sequence run-as account, see Accounts.
SMSTSRunPowerShellUserPassword
Applies to the Run PowerShell Script step.
(input)
SMSTSSoftwareUpdateScanTimeout
Applies to the Install Software Updates step.
(input)
Control the timeout for the software updates scan during this step. For example, if you
expect numerous updates during the scan, increase the value. The default value is 3600
seconds (60 minutes). The variable value is set in seconds.
SMSTSUDAUsers
Specifies the primary users of the destination computer by using the following format:
<DomainName>\<UserName> . Separate multiple users by using a comma ( , ). For more
SMSTSWaitCcmexecOperationalTimeout
(input)
Use this variable to control the timeout period for the task sequence to wait for the SMS
Agent Host service (ccmexec) to completely start. Specify this value in seconds. The
default timeout period is 30 minutes, or 1800 seconds.
Examples of SMSTSWaitCcmexecOperationalTimeout
SMSTSWaitForSecondReboot
Applies to the Install Software Updates step.
(input)
This optional task sequence variable controls client behavior when a software update
installation requires two restarts. Set this variable before this step to prevent a task
sequence from failing because of a second restart from software update installation.
Set the SMSTSWaitForSecondReboot value in seconds to specify how long the task
sequence pauses on this step while the computer restarts. Allow sufficient time in case
there's a second restart.
For example, if you set SMSTSWaitForSecondReboot to 600 , the task sequence pauses
for 10 minutes after a restart before additional steps run. This variable is useful when a
single Install Software Updates task sequence step installs hundreds of software
updates.
7 Note
This variable only applies to a task sequence that deploys an OS. It doesn't work in
a custom task sequence.
TSDebugMode
Set this variable to TRUE on a collection or computer object to which the task sequence
is deployed. Any device that has this variable set will put any task sequence deployed to
it into debug mode.
TSDebugOnError
Set this variable to TRUE to automatically start the task sequence debugger when the
task sequence returns an error.
TSDisableProgressUI
Use this variable to control when the task sequence displays progress to end users. To
hide or display progress at different times, set this variable multiple times in a task
sequence.
TSErrorOnWarning
Applies to the Install Application step.
(input)
Specify whether the task sequence engine considers a detected warning as an error
during this step. The task sequence sets the _TSAppInstallStatus variable to Warning
when one or more applications, or a required dependency, didn't install because it
didn't meet a requirement. When you set this variable to True , and the task sequence
sets _TSAppInstallStatus to Warning , the outcome is an error. A value of False is the
default behavior.
TSProgressInfoLevel
Specify this variable to control the type of information that the task sequence progress
window displays. Use the following values for this variable:
1 : Include the current step and total steps to the progress text. For example, 2 of
10.
2 : Include the current step, total steps, and percentage completed. For example, 2
of 10 (20% complete).
3 : Include the percentage completed. For example, (20% complete).
TSUEFIDrive
Use on the properties of a FAT32 partition in the Variable field. When the task sequence
detects this variable, it prepares the disk for transition to UEFI before it restarts the
computer. For more information, see Task sequence steps to manage BIOS to UEFI
conversion.
WorkingDirectory
Applies to the Run Command Line step.
(input)
Specifies the starting directory for a command-line action. The specified directory name
can't exceed 255 characters.
Examples
C:\
%SystemRoot%
Deprecated variables
The following variables are deprecated:
OSDPreserveDriveLetter
) Important
See also
Task sequence steps
Using task sequence variables
Planning considerations for automating tasks
Prestart commands for task sequence
media in Configuration Manager
Article • 10/04/2022
You can create a prestart command in Configuration Manager to use with boot media,
stand-alone media, and prestaged media. The prestart command is a script or
executable that runs before the task sequence is selected and can interact with the user
in Windows PE. The prestart command can prompt a user for information and save it in
the task sequence environment or query a task sequence variable for information. When
the destination computer boots, the command-line is run before the policy is
downloaded from the management point. Use the following procedures to create a
script to use for the prestart command, distribute the content associated with the
prestart command, and configure the prestart command in media.
VBScript
dim logPath
logPath = env("_SMSTSLogPath")
env("MyCustomVariable") = "varname"
For more information about creating a package, see Packages and programs.
2. In the Software Library workspace, expand Operating Systems, and then click Task
Sequences.
3. On the Home tab, in the Create group, click Create Task Sequence Media to start
the Create Task Sequence Media Wizard.
4. On the Select Media Type page, select Stand-alone media, Bootable media, or
Prestaged media, and then click Next.
5. Navigate to the Customization page of the wizard. For more information about
configuring the other pages in the wizard, see Create task sequence media.
6. On the Customization page, specify the following information, and then click Next.
In the Command line text box, enter the script or executable that you created
for the prestart command.
) Important
Click Set to select the package that is associated with the prestart command
files.
Click Browse to select the distribution point that hosts the content for the
prestart command.
If the task sequence unexpectedly fails, the client can be left in provisioning mode. For
example, if the device restarts in the middle of task sequence processing, and it's unable
to recover. An administrator must manually identify and fix clients in this state.
PowerShell
) Important
One of the changes made by this WMI method is setting a registry value, but it
makes other changes as well. Just changing the registry value doesn't fully take the
client out of provisioning mode. If you manually edit the registry, the client may
exhibit unexpected behaviors.
machine entered provisioning mode. The format is epoch (Unix timestamp) and is in
UTC.
This timestamp is also reset to the current time when you manually place the machine in
provisioning mode by using the following command:
PowerShell
Task sequence
The following diagram shows how the task sequence sets provisioning mode:
Client remediation
The following diagram shows how the client exits provisioning mode:
See also
Setup Windows and ConfigMgr