Capturing the Installation onto a Network Share
-
Insert your Windows PE media into your reference computer and restart the computer. As before, you may have to override the boot order to boot from the CD/DVD-ROM drive. If so, select the appropriate function key to override the boot order during initial boot.
-
Windows PE starts and opens a command-prompt window. Use the ImageX tool located on your Windows PE media to capture an image of your reference computer installation. For example, if your optical drive is drive E:, your installation is on drive C:, and you want to capture the image on drive D:, you would enter:
e:\imagex.exe /capture C: d:\installationimage.wim "my Win7 Install" /compress fast /verify
-
net use y: \\network_share\images copy d:\myimage.wim y:
-
If necessary, provide network credentials for appropriate network access. Your image is now on volume Y:.
Deploying from a Network Share
-
On your destination computer, insert your Windows PE media and restart the computer by pressing the CTRL+ALT+DEL keys. Windows PE opens a command-prompt window.
-
Format the hard drive to reflect the disk configuration requirements by using the Diskpart tool from the Windows PE command-prompt window. To do this, open an elevated command prompt.
-
Enter diskpart.
-
Enter select disk 0.
-
Enter clean.
-
Enter create partition primary size=100.
-
Enter select partition 1.
-
Enter format fs=ntfs label="system".
-
Enter assign letter=c.
-
Enter active.
Note SYSTEM PARTITION
Steps 6 through 9 create a 100-MB system partition. This is not strictly necessary because the Windows 7 installation routine creates a system partition automatically on installation if one has not been created already. However, Microsoft recommends creating this partition before installation.
-
Enter create partition primary.
-
Enter select partition 2.
-
Enter assign letter=d.
-
Enter exit.
Note CREATING A SCRIPT
You can create a script with this information in a text file and store in the same location as your image. To run the script from a Windows PE command-prompt window, enter diskpart /s <scriptname>.txt, where <scriptname> is the name of the text file that includes the Diskpart commands. Figure 2-8 shows a typical script file named DiskConfigurationFormat.txt.
-
Copy the image from the network share to your local hard drive. For example, at an elevated command prompt, type:
net use y: \\network_share\images copy y:\installationimage.wim d:
-
If necessary, provide network credentials for appropriate access.
-
Apply the image to the hard drive by using the ImageX tool located on the Windows PE media. For example, at an elevated command prompt, enter:
e:\imagex.exe /apply d:\myimage.wim 1 C:
-
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:
d:\windows\system32\bcdboot d:\windows
No comments:
Post a Comment