This topic describes how to deploy images captured from your reference computer to one or more destination computers. This process is called build-to-plan.
Prerequisites
-
Image-capturing tools, such as a Windows® Preinstallation Environment (Windows PE) RAM disk containing the ImageX tool. You can create a Windows PE RAM disk with ImageX by using the process described in Windows PE Walkthroughs.
-
Windows image (.wim) files. You can capture images by using the process described in Capture Images.
In This Topic
Booting the Destination Computer by Using Windows PE
Connecting to the Network Distribution Share
Connect to the network distribution share where your Windows image is stored. For example, you can use the net use command to do this.
net use n: \\server\share
If prompted, provide your network credentials.
Managing Multiple Hard Disks
If you are deploying to a computer that contains multiple hard disks, see these topics for instructions on identifying each disk.
Creating the Partition Structure for the Hard Disks
On the destination computer, create a structure for the partitions where you apply your images. The partition structure on the destination computer must match the partition structure of the reference computer.
-
Start the destination computer by using Windows PE. For more information, see Booting Windows PE.
-
At the Windows PE command prompt, type
diskpart to start the DiskPart tool.
-
Create your partition structure using the diskpart commands.
select disk 0
clean
create partition primary size=350
format quick fs=ntfs label="System"
assign letter="S"
active
create partition primary size=75000
format quick fs=ntfs label="Windows"
assign letter="W"
create partition primary size=15000
format quick fs=ntfs label="Recovery image"
assign letter="R"
attributes volume set nodefaultdriveletter
exit
For samples of DiskPart scripts for recommended partition structures, see Sample: Apply Images on a BIOS-based Computer by Using ImageX and Sample: Apply Images on a UEFI-based Computer by Using ImageX.
Applying Your Windows Images
Use the ImageX tool to apply images to your Windows partition.
If you apply an image to a volume with an existing Windows installation, files from the previous installation might not be deleted. Format the volume by using a tool such as DiskPart before applying the new image.
For each partition that you apply an image to, run the ImageX/apply <image_file> <image_number | image_name> <image_path> command.
imagex /apply N:\Images\my-windows-partition.wim 1 W:\
For more information about ImageX, see ImageX Command-Line Options.
Setting up a System Partition
To set up a basic system partition, you can use the BCDboot tool to copy a simple set of system files to a system partition. These files include boot configuration data (BCD) information used to start Windows.
Use the BCDboot tool to copy common system partition files and to initialize boot configuration data:
W:\Windows\System32\bcdboot W:\Windows /l en-US
For more information on the BCDboot tool, see BCDboot Command-Line Options.
Note |
You can also set up the system partition by applying an image. Use the ImageX/apply <image_file> <image_number | image_name> <image_path> command:imagex /apply N:\Images\my-system-partition.wim 1 S:\ |
Setting up a Recovery Partition
You can set up the computer to reinstall your Windows image in the event of a system failure. For more information, see Deploy a System Recovery Image.
Setting up Other Partition Types
Microsoft Reserved partitions (MSR) and Extended partitions are managed by the computer. Do not apply an image to these partitions.
Preparing the Computer for Shipping
When the computer is ready to be shipped, shut down the computer.
You can automate the shutdown process by using the wpeutil shutdown command. For more information, see Wpeutil Command-Line Options.
The default setting boots the computer to Windows Welcome on its next startup.
Testing and Customizing the Computer
See Also