Deploy a Windows 7 Image Containing the 100 MB System Partition

Here is how to capture and deploy a Windows 7 image with the 100 MB system partition in tact. There are a few things you should know about Windows 7 first.

When you install Windows 7 from from DVD on a clean drive with no format or partition information, Windows automatically install the system partition and marks the volume as "System Reserved". This partition is not viewable to the user in Explorer but is visible in Disk Manager.

If, on the other hand, the hard drive already has a single partition then this partition is not created.

Below instruction assume that the Windows 7 image is configured, includes the system partition, is prepared using sysprep if desired, and is ready for capture.

Capture the Image:
  • Boot the computer to the KACE boot environment. Once booted to the Main Menu, enter the Recovery page, and the Command Prompt.
  • At the command prompt enter "diskpart". A diskart prompt should appear. Enter the following commands to change the drive letter of C and D.
[blockquote][blockquote]select volume C
assign letter="W"
select volume D
assign letter="C"
select volume W
assign letter="D"
  • Once complete, go Back to the main menu, and select Imaging, then Capture this image to the KBOX. Name the image, select both drives from the windows, and start the capture.

Preparing Pre and Post Installation tasks:
  • On your KBOX webpage, enter the Library and then the Preinstallation Tasks tab.
  • From the Choose Action drop down select "New Diskpart Item". Name the item "Windows 7 - Create Two Partitions (3.1)".
  • Enter the following lines to the window and save:
[blockquote][blockquote]select volume 0
remove all noerr
select disk 0
create partition primary size=100
assign letter="D"
create partition primary
assign letter="C"
  • Enter the Preinstallation Tasks tab again and from the Choose action drop down select "New BAT Script Item". Name this task "Windows 7 - Format Disks (3.1)". In the command window, enter the following and save:

[blockquote][blockquote]format /q /y /fs:ntfs /v:Windows C:
bootsect.exe /NT60 C:
format /q /y /fs:ntfs /v:System D:
bootsect.exe /NT60 D:
  • Return the the Library and the Postinstallation Tasks Tab.
  • From the Choose action drop down, select New BAT script Item. Name the tasks "Windows 7 - Two Partition BCD Fix (3.1)". Select "KPE" as the operating system. This is a key step!
  • Enter the following into the command window:

[blockquote][blockquote]bcdedit /store D:\boot\bcd /set {bootmgr} device partition=D:
bcdedit /store D:\boot\bcd /set {default} device partition=C:
bcdedit /store D:\boot\bcd /set {default} OSdevice partition=C:
Deploy Image:
  • Enter the image you captured and go to the bottom of the page under the heading Preinstallation Tasks.
  • Add "Windows 7 - Create Two Partitions (3.1)" and "Windows 7 - Format Disks (3.1)" in that order by dragging the task from the right to the left.
  • On the first Postinstall task section, enable "Windows 7 - Two Partition BCD Fix (3.1)" by dragging it from the right to the left.
  • Save and Deploy the image.

You can download the task jobs from the attached file.

Then import them into your own KBOX using the Exports tab under KBOX Settings and Maintenance.

Last update: 2010-03-24 12:34
Author: AJ Paisley
0 Comments   [ - ] Hide Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity


Will this work on a Scripted Install because thats what I'm trying to do, since you can only use driver injection really on Scripted Installs rather then images.
Answered 04/06/2010 by: Brian_GSO
Yellow Belt

Please log in to comment
I am getting an error when running the Windows 7 - Two Partition BCD Fix regarding files not found. Can anyone comment on why the BCD part of this method is failing for me?
Answered 02/29/2012 by: RinkyTTU
Senior Yellow Belt

Please log in to comment

There is one problem with this procedure that we are encountering. Since the BCD is altered, you are unable to enable the TPM chip successfully for Bitlocker. Is there any fix for this or another way to capture a Windows 7 Image to the KBOX? 

Answered 06/17/2012 by: RealityHook
Orange Senior Belt

Please log in to comment