Step-by-Step: Basic Windows 7 Deployment for IT Professionals
https://msdn.microsoft.com/en-us/library/dd349348(v=ws.10).aspx
Published: October 22, 2009
Updated: October 13, 2010
Applies To: Windows 7
Note
This content applies to Windows 7. For Windows 8 content, see Windows Deployment with the Windows ADK.
October 2009
Applies to:
Windows 7
Windows Server 2008 R2
Introduction
IT professionals can deploy Windows 7 by using the Windows® Automated Installation Kit (Windows AIK).
The Windows® Automated Installation Kit (Windows AIK) is designed to help IT professionals deploy the Windows® 7 operating system.
This document shows you how to configure and deploy a Windows® image. At the end of this process, you will have a valid answer file, a bootable
Windows Preinstallation Environment (Windows PE), and you will have deployed your first custom Windows image. After creating this basic answer file,
you can modify it to include additional customizations. You can also automate parts of the process by scripting some of the manual steps in this
scenario. For a comprehensive description of all the tools and deployment methods, see the Windows® Automated Installation Kit (Windows AIK)
User's Guide or http://go.microsoft.com/fwlink/?LinkId=121503.
In this example, you build a basic answer file, and then install Windows using that answer file. This process includes:
Step 1: Building an Answer File
Step 2: Building a Reference Installation
Step 3: Creating Bootable Windows PE Media
Step 4: Capturing the Installation onto a Network Share
Step 5: Deploying from a Network Share
For a video version of these procedures, see the five-part, step-by-step Deployment with the Windows AIK Demo.
Requirements
To complete this scenario, you need the following:
Windows 7 product DVD disc
Windows AIK DVD disc. You can download the Windows AIK .iso file from http://go.microsoft.com/fwlink/?LinkId=136976.
A technician computer
A technician computer can be any computer on which you will install the Windows Automated Installation Kit (Windows AIK). The technician
computer must be running Windows Server® 2003, Windows Vista®, or Windows 7. This computer also requires a network adapter, a working
network environment, a DVD-ROM drive, and a CD-R/RW-capable drive (or a combination drive that supports both).
第 1 頁,共 17 頁
27/1/2016 8:49
Step-by-Step: Basic Windows 7 Deployment for IT Professionals
https://msdn.microsoft.com/en-us/library/dd349348(v=ws.10).aspx
A reference computer
A reference computer is a fully assembled computer on which you install a customized installation by using the Windows product DVD and an
answer file. Once installed, you capture and store an image of the installation on a network share. There are no software requirements for this
computer. Both technician and reference computers require a network adapter and a working network environment.
Note
The disk-partition requirements are different between BIOS-based and UEFI-based computers. This guide describes how to create an answer
file for BIOS-based computers. Most 32-bit and many 64-bit computers are BIOS-based.
Network connectivity
A USB flash drive (UFD)
CD-ROM burning software
One blank CD-R/RW disc
Optional: a destination computer
The destination computer is the computer that you intend to deliver to an end user. After you build a reference installation, you will capture and
store an image of that installation on a network share. You will then deploy the image from the network share onto the destination computer.
Note
For this example, you can reuse the reference computer as your destination computer. After you capture and store an image of the reference
installation, you can then reformat the hard drive of the reference computer, returning it to a blank state. The computer will then become
your destination computer.
Install the Windows AIK
To install the Windows AIK:
1. Insert the Windows AIK DVD into the technician computer's DVD-ROM drive.
The Setup program automatically starts.
2. Follow the online instructions.
Note
If the Setup program does not start automatically, in Windows Explorer, browse to the DVD drive containing the Windows AIK DVD, and then click
StartCD.exe. Click Windows AIK Setup to begin the installation.
Step 1: Building an Answer File
The first step in creating a custom installation is to build an answer file. You use an answer file to configure Windows settings during installation. For
example, you can configure the default Internet Explorer® settings, networking configurations, and other customizations. Additionally, the answer file
contains all of the settings that are required for an unattended installation. During installation, you will not be prompted with user interface pages.
In this section, you will create an answer file using Windows System Image Manager (Windows SIM), a utility for creating and modifying unattended
answer files and configuration sets. A simple answer file includes basic Windows Setup configuration and minimum Windows Welcome customizations.
This example does not import any special drivers, applications, or packages.
After you install the Windows AIK on your technician computer, a sample of this answer file, Corp_autounattended_sample.xml, will be available at
C:\Program Files\Windows AIK\Samples.
第 2 頁,共 17 頁
27/1/2016 8:49
Step-by-Step: Basic Windows 7 Deployment for IT Professionals
https://msdn.microsoft.com/en-us/library/dd349348(v=ws.10).aspx
For a related video demonstration, see Step 1: Create an Answer File.
To create an answer file
In this step, you copy a Windows image file (.wim) to your technician computer and create an answer file.
1. On your technician computer, insert the Windows 7 product DVD.
2. Navigate to the \Sources directory on your DVD-ROM drive and copy the Install.wim file from the Windows product DVD to a location on the
computer.
3. To open Windows SIM, click Start, click All Programs, click Microsoft Windows AIK, and then click Windows System Image Manager.
4. On the Windows SIM File menu, click Select Windows Image.
5. In the Select a Windows Image dialog box, navigate to the location where you saved Install.wim in Step 1, and then click Open.
You will be prompted to select an image. Choose the Windows image that you want to install, and then click OK.
You will be prompted to create a catalog file. Click Yes to generate the file.
If you are prompted to approve the program by a User Account Control window, you can select to allow the program or cancel the installation.
6. On the File menu, click New Answer File. An empty answer file appears in the Answer File pane.
Add and Configure Windows Settings
In this step, you define basic disk configuration and Windows Welcome settings.
1. In the Windows SIM Windows Image pane, expand the Components node to display available settings.
2. On the expanded list of components, add the components in the table below to your answer file by right-clicking the component, and then
selecting the appropriate configuration pass. This action adds the component to your answer file in the specified configuration pass, or phase, of
Windows installation. Adding the optional components allows you to more easily test your installation in Step 2, Building a Reference
Installation.
Note
Expand the component list in the Windows Image pane until you see the lowest child node from the table below. For example, expand
Microsoft-Windows-Setup to see the DiskConfiguration node. Expand the DiskConfiguration node until you see the Disk node. Continue
expanding the tree under Microsoft-Windows-Setup until you see the CreatePartition node listed in the table below. Add this CreatePartition
node to your answer file. This shortcut adds the setting and all parent settings to your answer file in one step.
Component
Configuration pass
Microsoft-Windows-Deployment\Reseal
oobeSystem
Microsoft-Windows-International-Core-WinPE\SetupUILanguage
windowsPE
Microsoft-Windows-Setup\DiskConfiguration\Disk\CreatePartitions\CreatePartition
windowsPE
Microsoft-Windows-Setup\DiskConfiguration\Disk\ModifyPartitions\ModifyPartition
windowsPE
Microsoft-Windows-Setup\DiskConfiguration\Disk\CreatePartitions\CreatePartition *
windowsPE
Microsoft-Windows-Setup\DiskConfiguration\Disk\ModifyPartitions\ModifyPartition *
windowsPE
Microsoft-Windows-Setup\ImageInstall\OSImage\InstallTo
windowsPE
Microsoft-Windows-Setup\UserData
windowsPE
第 3 頁,共 17 頁
27/1/2016 8:49
Step-by-Step: Basic Windows 7 Deployment for IT Professionals
https://msdn.microsoft.com/en-us/library/dd349348(v=ws.10).aspx
Microsoft-Windows-Shell-Setup\OOBE
oobeSystem
Optional: Microsoft-Windows-IE-InternetExplorer
specialize
* This example uses a two-partition configuration. Add a second CreatePartition and a second ModifyPartition component to your answer file by
right-clicking the component in the Windows SIM Windows Image pane, and then by selecting the appropriate configuration pass. This action
adds a second instance of the CreatePartition and ModifyPartition components to your answer file.
3. All of the settings you added must appear in the Windows SIM Answer File pane. Under Settings, select the appropriate setting and, in the
right-hand column, enter the appropriate value as specified in the following table.
Configuration
pass
Component
Value
1 WindowsPE
Microsoft-Windows-International-Core-WinPE
InputLocale = <Input Locale> For example,
en-US
SystemLocale = <System Locale> For example,
en-US
UILanguage = <UI Language> For example,
en-US
UserLocale = <User Locale> For example,
en-US
1 WindowsPE
Microsoft-Windows-International-Core-WinPE\SetupUILanguage
UILanguage = <UI Language> For example,
en-US
1 WindowsPE
Microsoft-Windows-Setup\DiskConfiguration
WillShowUI = OnError
1 WindowsPE
Microsoft-Windows-Setup\DiskConfiguration\Disk
DiskID = 0
WillWipeDisk = true
1 WindowsPE
Microsoft-Windows-Setup\DiskConfiguration\Disk\CreatePartitions
\CreatePartition
Order = 1
Size = 300
Type = Primary
1 WindowsPE
Microsoft-Windows-Setup\DiskConfiguration\Disk\CreatePartitions
\CreatePartition
Extend = true
Order = 2
Type = Primary
1 WindowsPE
Microsoft-Windows-Setup\DiskConfiguration
\Disk\ModifyPartitions\ModifyPartition
Active = true
Format = NTFS
Label = System
Order = 1
PartitionID = 1
1 WindowsPE
第 4 頁,共 17 頁
Microsoft-Windows-Setup\DiskConfiguration
\Disk\ModifyPartitions\ModifyPartition
Format = NTFS
Label = Windows
Order = 2
PartitionID = 2
27/1/2016 8:49
Step-by-Step: Basic Windows 7 Deployment for IT Professionals
1 WindowsPE
https://msdn.microsoft.com/en-us/library/dd349348(v=ws.10).aspx
Microsoft-Windows-Setup\ImageInstall\OSImage
InstallToAvailablePartition = false
WillShowUI = OnError
1 WindowsPE
Microsoft-Windows-Setup\ImageInstall\OSImage\InstallTo
DiskID = 0
PartitionID = 2
1 WindowsPE
Microsoft-Windows-Setup\UserData
AcceptEula = true
1 WindowsPE
Microsoft-Windows-Setup\UserData\ProductKey
Key = <product key>
WillShowUI = OnError
4 Specialize
Optional: Microsoft-Windows-IE-InternetExplorer
Home_Page = <Company Home Page>
7 oobeSystem
Microsoft-Windows-Deployment\Reseal
ForceShutdownNow = false
Mode = Audit
7 oobeSystem
Microsoft-Windows-Shell-Setup\OOBE
HideEULAPage = true
ProtectYourPC = 3
Important
These settings outline a basic unattended installation in which no user input is required during Windows Setup. When the installation is
complete, the computer will reboot to audit mode. Audit mode is a stage of Windows Setup that enables you to quickly boot to the desktop,
install additional applications and device drivers, and test the installation. Windows Welcome does not run in audit mode, but it will run the
next time the computer restarts, once you have run the sysprep command with the /oobe option. Windows Welcome, also called Machine
OOBE (out-of-box experience), prompts the end user to read the Microsoft Software License Terms and to configure the computer.
For more information about audit mode, see the Customize Windows in Audit Mode topic in the Windows® Automated Installation Kit
(Windows AIK) User's Guide or http://go.microsoft.com/fwlink/?LinkId=121506.
For more information about Sysprep.exe, see the Sysprep Technical Reference topic in the Waik.chm or http://go.microsoft.com/fwlink
/?LinkId=121713.
Validate and Save Settings
In this step, you validate the settings in your answer file, and then save them to a file.
1. In Windows SIM, click Tools, and then click Validate Answer File.
The setting values in the answer file are compared with the available settings in the Windows image.
2. If the answer file validates successfully, a “No warnings or errors” message appears in the Messages pane at the bottom of the Windows SIM
window. Otherwise, error messages appear in the Messages pane.
3. If an error occurs, double-click the error message in the Messages pane to navigate to the incorrect setting. Change the setting to fix the error,
and then validate again by clicking Validate Answer File. Repeat this step until the answer file validates.
4. On the File menu, click Save Answer File. Save the answer file as Autounattend.xml.
5. Copy the Autounattend.xml file to the root directory of a USB flash drive (UFD).
You now have a basic answer file that automates Windows Setup. For more information about building answer files, see the Phase 3: Preparing and
Customizing Your Windows Image topic in the Waik.chm or this http://go.microsoft.com/fwlink/?LinkId=121501.
Step 2: Building a Reference Installation
A reference computer has a customized installation of Windows that you plan to duplicate onto one or more destination computers. You can create a
reference installation by using the Windows product DVD and an answer file.
第 5 頁,共 17 頁
27/1/2016 8:49
Step-by-Step: Basic Windows 7 Deployment for IT Professionals
https://msdn.microsoft.com/en-us/library/dd349348(v=ws.10).aspx
For a related video demonstration, see Step 2: Build a Reference Installation.
To install Windows from the product DVD
1. Turn on the reference computer and insert the Windows 7 product DVD and the UFD containing the answer file you created in the previous step
(Autounattend.xml).
Important
When using a UFD, insert the drive into the primary set of USB ports for the computer. For a desktop computer, this is typically in the back of
the computer.
2. Restart the computer by pressing the CTRL+ALT+DEL keys. To boot from the CD/DVD-ROM disc, you may have to override the boot order.
During initial boot, select the appropriate function key to override the boot order.
Windows 7 Setup (Setup.exe) will begin automatically. By default, Windows Setup will search the root directory of all removable media for an
answer file called Autounattend.xml.
3. After Setup finishes, you can validate that all customizations were applied. For example, if you included the optional Microsoft-WindowsIE-InternetExplorer component and set the Home_Page setting in your answer file, you can verify it now by opening Internet Explorer.
4. Prepare the computer for the end user. Use the sysprep command with the /generalize option to remove hardware-specific information from
the Windows installation, and the /oobe option to configure the computer to boot to Windows Welcome upon the next restart. In the System
Preparation Tool (Sysprep) window that is displayed on the desktop in audit mode:
a. Select Enter System Out Of Box Experience (OOBE) from the System Cleanup Action list
b. Select Generalize
c. Select Shutdown from the Shutdown Options list
d. Click OK
Note
You can also run the Sysprep tool from a command prompt by typing: c:\windows\system32\sysprep\sysprep.exe /oobe
/generalize /shutdown
Sysprep.exe prepares the image for capture by cleaning up various user- and computer-specific settings, as well as log files. The reference installation
now is complete and ready to be imaged.
Caution
When you run the sysprep /generalize command, out-of-box device drivers are removed from the Windows image. If you add out-of-box device
drivers during installation and you intend to capture the Windows image, set the PersistAllDeviceInstalls setting of the MicrosoftWindows-PnpSysprep component to True in the answer file. When you do this, Sysprep does not remove the detected device drivers.
You now have a computer that you can use as your reference computer. When deploying a large number of computers, it may be more efficient to
capture an image of the reference installation, and then deploy that image onto other new computers. Alternatively, you can repeat Step 2 for each new
computer.
To continue with this installation as a reference for image-based deployment, follow steps 3-5.
Step 3: Creating Bootable Windows PE Media
In this step, you create a bootable Windows PE RAM disk on a CD-ROM disc by using the Copype.cmd script. Windows PE RAM enables you to start a
computer for the purposes of deployment and recovery. Windows PE RAM boots directly into memory, enabling you to remove the Windows PE media
after the computer boots. Once you have booted into Windows PE, you can use the ImageX tool to capture, modify, and apply file-based disk images.
For more information about these tools, see the Deployment Tools Technical Reference topic in the Waik.chm or http://go.microsoft.com/fwlink
第 6 頁,共 17 頁
27/1/2016 8:49
Step-by-Step: Basic Windows 7 Deployment for IT Professionals
https://msdn.microsoft.com/en-us/library/dd349348(v=ws.10).aspx
/?LinkId=121497.
For a related video demonstration, see Step 3: Create a Bootable Windows PE CD-ROM.
1. On your technician computer, click Start, point to All Programs, point to Windows AIK, right- click Deployment Tools Command Prompt,
and then select Run as administrator.
The menu shortcut opens a Command Prompt window and automatically sets environment variables to point to all the necessary tools. By
default, all tools are installed at C:\Program Files\Windows AIK\Tools.
2. At the command prompt, run the Copype.cmd script:
copype.cmd <architecture> <destination>
where <architecture> can be x86, amd64, or ia64 and <destination> is a path to a local directory. For example, copype.cmd x86
c:\winpe_x86
The script creates the following directory structure and copies all the necessary files for that architecture. For example, \winpe_x86
\winpe_x86\ISO\winpe_x86\mount
3. Copy the base image (Winpe.wim) to the \Winpe_x86\ISO\sources folder and rename the file to Boot.wim.
copy c:\winpe_x86\winpe.wim c:\winpe_x86\ISO\sources\boot.wim
4. Copy ImageX into \Winpe_x86\ISO. For example, type:
copy "c:\program files\Windows AIK\Tools\x86\imagex.exe" c:\winpe_x86\iso\
Note
You can create an optional configuration file called Winscript.ini that will instruct the ImageX tool to exclude certain files during the capture
operation. Wimscript.ini should be saved to the same location as the ImageX tool. For more information, see the Create an ImageX
Configuration File topic in Opk.chm.
5. Create a Windows PE image (.iso) file by using the Oscdimg tool from the Deployment Tools Command Prompt. For example, type
oscdimg ‐n ‐bc:\winpe_x86\etfsboot.com c:\winpe_x86\ISO
c:\winpe_x86\winpe_x86.iso
6. Burn the image (Winpe_x86.iso) to a CD-ROM disc. Windows AIK does not include CD-ROM burning software. Use trusted third-party software
to burn the image to a CD-ROM disc.
You now have a bootable Windows PE RAM CD containing the ImageX tool. For more information about Windows PE, see the Windows Preinstallation
Environment (Windows PE) User’s Guide (Winpe.chm).
Step 4: Capturing the Installation onto a Network Share
In this step, you capture an image of your reference computer by using Windows PE and the ImageX tool. Then, you store that image on a network
share.
For a related video demonstration, see Step 4: Capture the customized Installation.
1. On your reference computer, insert your Windows PE media and restart the computer.
第 7 頁,共 17 頁
27/1/2016 8:49
Step-by-Step: Basic Windows 7 Deployment for IT Professionals
https://msdn.microsoft.com/en-us/library/dd349348(v=ws.10).aspx
Note
To boot from the CD/DVD-ROM drive, you may have to override the boot order. During initial boot, select the appropriate function key to
override the boot order.
Windows PE starts, and then launches a Command Prompt window.
2. Capture an image of the reference installation by using the ImageX tool located on your Windows PE media. For example, at the command
prompt, type
D:\imagex.exe /capture C: C:\myimage.wim "my Win7 Install" /compress fast /verify
3. Copy the image to a network location. You can do this because Windows PE provides network support. For example, at the command prompt,
type
net use n: \\server\share\
md Imagescopy C:\myimage.wim N:\Images
If necessary, provide network credentials for appropriate network access.
Step 5: Deploying from a Network Share
After you have an image of your reference installation, you can deploy the image onto new hardware.
In this step, you use the DiskPart tool to format the hard drive, and then you copy an image from the network share. For this example, you can use your
reference computer as your destination computer.
For a related video demonstration, see Step 5: Deploy the Windows Image from a Network Share.
1. On your destination computer, insert your Windows PE media and restart the computer by pressing the CTRL+ALT+DEL keys.
Note
If this was your reference computer, the hard drive contains an active partition. You must override the boot order to boot from the
CD/DVD-ROM drive. During initial boot, select the appropriate function key to override the boot order. If this is a newly assembled computer,
the hard drive is unformatted, and you can skip this step.
Windows PE starts, and then it launches a Command Prompt window.
2. Format the hard drive to reflect the disk configuration requirements by using the DiskPart tool from the Windows PE Command Prompt
window. For example, type
第 8 頁,共 17 頁
diskpart
select disk 0
clean
create partition primary size=300
select partition 1
format fs=ntfs label="System"
assign letter=S
active
create partition primary
select partition 2
format fs=ntfs label="Windows"
assign letter=C
exit
27/1/2016 8:49
Step-by-Step: Basic Windows 7 Deployment for IT Professionals
https://msdn.microsoft.com/en-us/library/dd349348(v=ws.10).aspx
Note
You can create a script with this information by saving it to a text file and by storing it in the same location as your image. To run the script
from a Windows PE Command Prompt window, type:
diskpart /s <scriptname>.txt
where <scriptname> is the name of the text file that includes the Diskpart commands.
3. Copy the image from the network share to your local hard drive. For example, at a command prompt, type
net use n: \\server\share\
copy N:\Images\myimage.wim C:
If necessary, provide network credentials for appropriate access.
4. Apply the image to the hard drive by using the ImageX tool located on your Windows PE media. For example, at a command prompt, type
D:\imagex.exe /apply C:\myimage.wim 1 C:
5. Use BCDboot to initialize the Boot Configuration Data (BCD) store and copy boot environment files to the system partition. For example, at a
command prompt, type
C:\windows\system32\bcdboot C:\windows
For more information about BCDboot, see the BCDboot Command-Line Options topic in the Waik.chm or http://go.microsoft.com/fwlink
/?LinkId=121711.
Your custom image is now deployed onto your destination computer. The computer is ready for customer delivery. Repeat Step 5: Deploying from a
Network Share for each additional computer that you deliver.
You have now completed a basic end-to-end deployment scenario by using an image-based deployment method. You have successfully created your
first answer file, a bootable Windows PE CD, and your first custom Windows image. You also have a basic understanding of how to use Windows SIM
and the ImageX and Windows PE technologies.
Next Steps
The next step is to make additional customizations to your answer file and to expand your knowledge of the deployment tools. For more information
about customizing and deploying your Windows image, see the Windows Automated Installation Kit Scenarios topic in the Waik.chm or
http://go.microsoft.com/fwlink/?LinkId=120339.
©2009 Microsoft Corporation. All rights reserved.
Information in this document, including URL and other Internet Web site references, is subject to change without notice.
Complying with all applicable copyright laws is the responsibility of the user. Without limiting the rights under copyright, no part of this document may
be reproduced, stored in or introduced into a retrieval system, or transmitted in any form or by any means (electronic, mechanical, photocopying,
recording, or otherwise), or for any purpose, without the express written permission of Microsoft Corporation.
Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual property rights covering subject matter in this document.
Except as expressly provided in any written license agreement from Microsoft, the furnishing of this document does not give you any license to these
patents, trademarks, copyrights, or other intellectual property.
Microsoft, Windows, Windows 7 and Windows Vista are trademarks of the Microsoft group of companies.
The names of actual companies and products mentioned herein may be the trademarks of their respective owners.
第 9 頁,共 17 頁
27/1/2016 8:49
Step-by-Step: Basic Windows 7 Deployment for IT Professionals
Community Additions
https://msdn.microsoft.com/en-us/library/dd349348(v=ws.10).aspx
another method
http://www.terabyteunlimited.com/kb/article.php?id=411
Instructions:
1. Verify the Windows partition is set active. Note: If the wrong partition is set active, the Windows repair will unable to complete successfully. If necessary, see
Note C below for instructions on using DISKPART to set the partition active.
2. Insert the Repair Disc into the CD/DVD drive and reboot the computer. Note: If the computer is not configured to boot the CD/DVD drive before the hard
drive, you may need to change the boot order in the BIOS.
3. When the message Press any key to boot from CD or DVD... appears, press a key to allow the Repair Disc to boot.
4. Select the desired language and keyboard layout you want to use and then click the Next button.
5. If using a Windows installation DVD, click the Repair your computer link in the bottom-left corner of the window.
6.
System Recovery Options will scan for Windows installations. It should report the following:
Windows found problems with your computer's startup options.
Do you want to apply repairs and restart your computer?
Click the Repair and restart button.
7. The computer will reboot. Repeat Steps 3 through 5 to return to the System Recovery Options screen.
8. After System Recovery Options completes its scan this time, the Windows installation requiring the repair should be displayed in the list of operating
systems. Normally, it is selected. If it's not, click it to select it. Note: If using a Windows 7 DVD or System Repair Disc, also make sure the Use recovery tools
that can help fix problems starting Windows... option is selected.
9. Click the Next button. The Choose a recovery tool window should be displayed.
10. Click the Startup Repair link. The system will be scanned and repairs will be attempted (it should only take a few seconds).
11. Click the Finish button.
12. This time, do not press a key to allow the Repair Disc to boot. Instead, allow Windows to try and boot. If the repairs were successful, Windows should boot
normally.
Technical Notes:
Note A - Windows Partition Restored to a Logical Partition
The automatic Windows boot repair procedures will not work on a logical partition as Windows won't see it as bootable. In this case, the files will need to be
manually copied onto the Windows partition (see Note B). Also, to boot Windows from a logical partition you must use a boot manager that supports it (such as
BootIt BM). The standard Windows boot manager won't boot Windows from a logical partition.
第 10 頁,共 17 頁
27/1/2016 8:49
Step-by-Step: Basic Windows 7 Deployment for IT Professionals
https://msdn.microsoft.com/en-us/library/dd349348(v=ws.10).aspx
Note B - Manually Copying the Booting Files:
If the partition that contains the booting files is available and the automatic repair method using the Repair Disc won't work, the files can be manually copied to the
Windows partition. In this example, E: is assigned to the partition containing the booting files and C: is assigned to the partition that needs the files.
1. Boot to the Repair Disc and enter the Repair Mode (reference Steps 2 though 5 above, if necessary).
2. Cancel any automatic repair attempts to return to the System Recovery Options window. If using a Windows 7 DVD or System Repair Disc, make sure the
Use recovery tools that can help fix problems starting Windows... option is selected.
3. Click the Next button. The Choose a recovery tool window should be displayed.
4. Click the Command Prompt link. The Command Prompt window will open.
5. Copy the bootmgr file from the source partition (E:) to the destination partition (C:). Make sure to use the drive letters as assigned on your computer. Run
the following command:
robocopy e:\ c:\ bootmgr
6. Copy the Boot folder. Run the following command:
robocopy e:\Boot C:\Boot /s
7. The booting files have now been copied. If you wish to verify that they were copied correctly, run the following command:
dir c:\ /ah
If the bootmgr file and the Boot folder show up in the list, the procedure was successful.
After the files are copied, the BCD file must be updated to point to the correct partition. This can be done easily using the BCD Edit capability in BootIt BM (How to
Use the BCD Edit Feature of BootIt BM). If BootIt BM is not being used or you wish to update the BCD file manually, run the following commands while still in the
Repair Mode Command Prompt of the Repair Disc:
bcdedit /store c:\boot\bcd /set {default} device partition=c:
bcdedit /store c:\boot\bcd /set {default} osdevice partition=c:
bcdedit /store c:\boot\bcd /set {bootmgr} device partition=c:
bcdedit /store c:\boot\bcd /set {memdiag} device partition=c:
As in the example above, C: is used as the drive letter assigned to the partition containing the copied BCD file. Make sure to use the correct drive letter for your
system.
Note C - Using DISKPART to Set the Windows Partition Active:
If you are not using BootIt BM, DISKPART can be used from the Repair Disc to set the Windows partition active.
第 11 頁,共 17 頁
27/1/2016 8:49
Step-by-Step: Basic Windows 7 Deployment for IT Professionals
https://msdn.microsoft.com/en-us/library/dd349348(v=ws.10).aspx
1. Boot to the Repair Disc and run the Command Prompt (reference Steps 1 though 4 in Note B, if necessary).
2. Start DISKPART by running the following command:
diskpart
3. DISKPART will start and you will be at the "DISKPART>" prompt.
4. List the drives by running the following command:
list disk
5. The installed drives will be listed, starting with Disk 0. In most cases, Disk 0 is the booting drive and also the drive containing the booting partition. You need
to select the drive that contains the partition which needs to be set active. In this example, that is Disk 0. Select the appropriate drive by running the
following command:
select disk 0
6. The next step is to select the partition. To see the list of partitions on the drive, run the following command:
list partition
7. Select the partition which needs to be set active. In this example, Partition 2 is the desired partition.
select partition 2
8. Set the selected partition active by running the following command:
active
9. Finally, exit DISKPART:
exit
RAJU2529
2/20/2015
No problem
first tell me ,are you booting with windows 7 os to the computer, if yes means , then iinsert WINDOWS 7 DVD and boot with it and soon press F8 key ,
you will see the options repair your computer and select and proceed with instructions
RAJU2529
2/20/2015
Bootmgr is missing
After following the hole process sucessfully I can't boot from the hard drive it displays BOOTMGR abscent Ctrl + Alt + Suppr
MASNSN
12/26/2013
Applying the wim file
Hi,
I have now followed the instructions and copied my Wim file of 6 GB to the C: drive, now when booting up it is installing devices. It starts, but slows down at 27%.
I had it running yesterday evening and when waking up this morning it was still running "configuring devices".
What am I doing wrong and how long should it normally take?
Scorgi1974
1/7/2013
error 0X80300024
第 12 頁,共 17 頁
27/1/2016 8:49
Step-by-Step: Basic Windows 7 Deployment for IT Professionals
https://msdn.microsoft.com/en-us/library/dd349348(v=ws.10).aspx
after creating aotounattend.xml file, I went to step2: building reference installation. however, recieving the below error message:
"windows could not set a partition active on disk 0. The target disk, partition, or volume does not support the specified operation. The error occurred while applying
the unattend asnwer file's <DiskConfiguration> setting. Error code: 0X80300024"
it happened in the beginning of installation.
what's more, before that error, system still asked me to choose which languange in the installation and I also need to click install button to begin installation.
I believe that with answer file, windows 7 should start installation automatically. Am I right?
MarlonJazz
4/20/2012
Where are x86_Microsoft-Windows-IE-Internet-Explorer?
I found only amd64 (why AMD? LOL)
and wow64 (windows on windows ?)
but not in the x86 list
### Response: 10-7-2011 ###
Following the instructions above to select the install.wim file will give you this result unfortunately. There's an easier way in that you can open the catalog file
included in the same directory as the install.wim file reducing the long processing time needed to recreate the catalog file from the selected image. Of course, I only
used the Win7 Pro x86_32 install DVD and the catalog file was included and luckily it didn't have the AMD and WOW junk in there. Other installs may not have this
catalog file so your results may vary.
quinnese pollerana
4/8/2012
MAK Voume Product Key Fails
Here is the article to explaining the correct Pass to have the Product Key listed:
"If you specify a product key in the windowsPE configuration pass with ProductKey (Microsoft-Windows-Setup), then Windows welcome will prompt for a product
key. If you specify the ProductKey (Microsoft-Windows-Shell-Setup) setting during the specialize pass, then Windows Welcome will not prompt for a product key."
Source: http://technet.microsoft.com/en-us/library/cc749389(WS.10).aspx
So rather than:
WindowsPE Microsoft-Windows-Setup\UserData\ProductKey
Do:
Specialize Microsoft-Windows-Shell-Setup\ProductKey
ktaber
2/8/2012
Step 3 went wrong
Step 3 went wrong.
第 13 頁,共 17 頁
27/1/2016 8:49
Step-by-Step: Basic Windows 7 Deployment for IT Professionals
https://msdn.microsoft.com/en-us/library/dd349348(v=ws.10).aspx
After you executed "copype.cmd <architecture> <destination>",you should navigate to the destination folder.
You will see "winpe.wim" in the destination folder.Then you must rename this file with the name "boot.wim" and move it to the \iso\sources folder.
lovelife789
11/19/2011
One more bug
Sysprep almost always fails for me. I'm using Win7 Ultimate x86 at the moment, and sysprep errors out because of Windows Media Player running something in the
background that has to do with DRM. Before running Step 2 part 4, be sure to start Task Manager and end any process starting with "wmp". Lesser versions of Win7
may not have this problem. Right now the best solution would probably be to make a custom batch script that uses taskkill to end the process and then run sysprep
/generalize /oobe /quiet /unattend:filename.xml
As a side note, trying to work with the Default Profile means you need to use that /unattend flag and create a separate answerfile. You'll still use WAIK and can copy
the AutoUnattend.xml file, but add/change a few entries such as CopyProfile, and ReSeal mode should be OOBE
lovelife789
11/19/2011
WDS or MDT
Could somebody tell me which one I should use. I have 500 workstations these consisit of 4 models.
use MDT2010 in conjunction with WDS use WDS as only the transport server (uncheck the first option) and enable mpio on the server.
davidwj
6/8/2011
BCDBoot Step
In the above example, the command line for the BCDBoot setup should be:
C:\windows\system32\bcdboot C:\windows /s S:
This however requires you to follow the example to the bit. The Diskpart script creates two partitions. The first one with 300 MB gets formatted with NTFS and
mounted as drive S:. This is where the boot code has to go.
The second partition, mounted as C: actually will contain the extracted Windows image.
MGOtto
1/23/2011
Diskpart missing one step, machine powercycles
Hello,
I found that the DISKPART instructions are missing the command to make C: active after the drive letter has been assigned to partition 2. If you dont' do this,
bcdboot will give you a failure error.
Also, for some reason, after following all these steps and applying the OS image and copying boot files, the OS won't boot. Win7 starts, but after a few seconds it
stops and restarts. Does anyone knwo why this might be?
Thanks.
JUgarte
10/14/2010
Windows 7 product DVD
The first item on the Requirements list is the Windows 7 product DVD. Further on, the instructions say to Navigate to the \Sources directory on your DVD-ROM drive
and copy the Install.wim file
I don't have a Windows 7 product DVD. Win7 was preinstalled on my Lenovo laptop, and all they gave me was a "Operating System Recovery Disc Windows 7
Professional", which contains neither a \Sources directory not an Install.wim file.
第 14 頁,共 17 頁
27/1/2016 8:49
Step-by-Step: Basic Windows 7 Deployment for IT Professionals
https://msdn.microsoft.com/en-us/library/dd349348(v=ws.10).aspx
Am I out of luck? How can I receive or download a Windows 7 product DVD? I'm not asking for another Product Key, just an install disc. Any suggestions? Thanks!
Keeves
6/3/2010
Unattended Installation fails on Disk Configuration
I tried the steps above to build a reference computer and each time it fails on the disk configuration. Any assistance?
tfl - 30 05 10] Hi - and thanks for your post.You should post questions like this to the Technet Forums at
http://forums.microsoft.com/technet or the MS Newsgroups at http://www.microsoft.com/communities/newsgroups/en-us/.
You are much more likely get a quick response using the forums than through the Community Content. For specific help
about:
Exchange
: http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public.exchange%2C&
SQL Server
Windows
:
:
http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public.sqlserver%2C&
http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public.windows%2C&
Windows Server :
Virtual Server :
http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public.windows.server%2C&
http://groups.google.com/group/microsoft.public.virtualserver/topics?lnk
Full Public
http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public%2C&
:
Thomas Lee
5/30/2010
BFSVC: BcdOpenSystemStore failexd with error code status={c0000098}
Installed Windows 7 on the reference machine and syspreped that machine in audit mode. captured the Windows7 image by using imageX booted from Winpeboot
Hardisk. After capturing is successfull. Deployed the same in other machine which dont have Operating System by making partitons using command Diskpart. The
Deployment is also succesfull. But when intializing BCD boot like
D:\Windows\systme32\BCDbboot D:\Windows
BFSVC:BcdOpenSystemStore failed with unexpected error code, Status = {c0000098}.
Getting the error So please suggest on the same.How to resolve the above error code.
[tfl - 30 05 10] Hi - and thanks for your post.You should post questions like this to the Technet Forums at
http://forums.microsoft.com/technet or the MS Newsgroups at http://www.microsoft.com/communities/newsgroups/en-us/.
You are much more likely get a quick response using the forums than through the Community Content. For specific help
about:
Exchange
:
http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public.exchange%2C&
SQL Server
Windows
:
:
http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public.sqlserver%2C&
http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public.windows%2C&
Windows Server :
Virtual Server :
http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public.windows.server%2C&
http://groups.google.com/group/microsoft.public.virtualserver/topics?lnk
Full Public
http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public%2C&
:
Thomas Lee
5/30/2010
first boot to desktop
i'm trying to sysprep my win 7 image so that on first boot it will go straight to the desktop and that's it. running sysprep /oobe or /audit brings up the welcome
window and each time I start it displays "setup is preparing your computer for first use" and then it launches sysprep. i just want to go directly to my desktop. i have
other scripts that configure my machine and joins the domain.
bitter tea
第 15 頁,共 17 頁
27/1/2016 8:49
Step-by-Step: Basic Windows 7 Deployment for IT Professionals
https://msdn.microsoft.com/en-us/library/dd349348(v=ws.10).aspx
4/5/2010
BCD Boot issue?
After the fix in the post above me, everything works nearly flawlessly. Nearly.
Step 5, part 5:
Run
d:\windows\system32\bcdboot d:\windows
I've never had this work on the first attempt. I'll follow the instructions, move the hard drive into a different computer, and the computer will not load, with an error
saying BOOTMGR is missing. I hook up the drive to the old computer, load in WindowsPE, run the above command a second time, and then the drive becomes
bootable on the new system. I've even found that if I just run the command twice in a row without restarting, the OS works fine. I don't know enough about bcdboot
to say why it's like this, so I just made adfgdfgdfgdf script that runs this command twice along with diskpart, etc.
Edit: Came back to update this because sometimes even after running the command twice I get maybe 1 in 10 images that error out. I've updated my script to run
the bcdboot command 4 times in a row (at least it doesn't take long to run)
alvinlee2010
4/1/2010
Image Capture Drive Letter Disparity
Winpe arranged the drive letters so that we had to substitute drive letter f: for d: and d: for c: in the command step 4 number 2.
D:\imagex.exe /capture C: C:\myimage.wim "my Win7 Install" /compress fast /verify
became
F:\imagex.exe /capture D: D:\myimage.wim "my Win7 Install" /compress fast /verify
Tom BW
2/4/2010
AntiVirus
If I install Norton AntiVirus on my reference image, it will not boot after sysprepping. The boot will fail during the "starting services" stage and I will end up in an
endless reboot cycle. I would advise against installing antivirus software on the reference image.
computerwhiz766
1/14/2010
Product Key fails with Volume License media
After following these instructions, I was getting this error when I tried to run the unattended install.
The unattended answer file contains an invalid product key.
Either remove the invalid product key or provide
a valid product in the unattend answer file to proceed with Windows installation.
Took a while, but i found that this ties into the fact that I'm using a volume license installation disk, and setting the product key during the PE stage was somehow
"breaking" things. The workaround is to set the product key at a later pass, specifically Pass 4 - Specialize. Specifically, you want to set the ProductKey in MicrosoftWindows-Shell-Setup, and only in that component. The Microsoft-Windows-Setup\UserData\ProductKey component definitely gives you headaches when dealing
with volume licensing! Hope this spares someone the trouble I suffered.
ASTX813
1/5/2010
I need help with Windows 7
Im trying upgrade my computer with Windows 7. Need help with it - please help?
[tfl - 14 06 09] Hi - and thanks for your post.You should post questions like this to the Technet Forums at
http://forums.microsoft.com/technet or the MS Newsgroups at http://www.microsoft.com/communities/newsgroups/en-us/.
You are much more likely get a quick response using the forums than through the Community Content. For specific help
about:
Exchange
:
http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public.exchange%2C&
SQL Server
:
http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public.sqlserver%2C&
Windows
:
http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public.windows%2C&
Windows Server :
第 16 頁,共 17 頁
http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public.windows.server%2C&
27/1/2016 8:49
Step-by-Step: Basic Windows 7 Deployment for IT Professionals
https://msdn.microsoft.com/en-us/library/dd349348(v=ws.10).aspx
Virtual Server :
http://groups.google.com/group/microsoft.public.virtualserver/topics?lnk
Full Public
http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public%2C&
:
UNDER-COVER
12/20/2009
© 2016 Microsoft
第 17 頁,共 17 頁
27/1/2016 8:49
© Copyright 2025 Paperzz