/build/static/layout/Breadcrumb_cap_w.png

Deploy a Windows 7 Image Containing the 100 MB System Partition

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"
exit
[/blockquote][/blockquote]
  • 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
clean
create partition primary size=100
assign letter="D"
active
create partition primary
assign letter="C"
exit
[/blockquote][/blockquote]
  • 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:
[/blockquote][/blockquote]
  • 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:
[/blockquote][/blockquote]
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   [ + ] Show comments

Answers (3)

Posted by: RealityHook 11 years ago
Orange Senior Belt
0

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? 

Posted by: Brian_GSO 14 years ago
Yellow Belt
0
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.
Posted by: RinkyTTU 12 years ago
Senior Yellow Belt
0
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?
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ