Creating a Customized Windows RE Image
In Windows 7, users can initiate image-based recovery without having to first start Windows RE manually. The Recovery control panel allows users to back up their personal data and then restarts the system into Windows RE, where the image recovery application is launched automatically.
You can create a custom Windows RE image by completing the following steps:
- Click Start, point to All Programs, and then click either Microsoft Windows OPK, Microsoft Windows AIK, or Microsoft Windows PE Kit as appropriate.
- Right-click Deployment Tools Command Prompt, and then click Run As Administrator.
- Make directories for mounting the image. At the command prompt, do the following:
- Enter c:, and then enter mkdir c:\win7.
- Enter cd win7, and then enter mkdir mount. You will use this directory to mount the Windows 7 image.
- Enter mkdir mountre. You will use this directory to mount the Windows Recovery Environment.
- Insert the Windows 7 distribution media into the DVD-ROM drive, and then copy the Windows install image from the distribution media to your hard disk by entering copy e:\sources\install.wim c:\win7, where e: is the drive designator for the DVD-ROM drive.
- Mount the Windows 7 image on the distribution media by entering imagex /mountrw e:\sources\install.wim c:\win7\mount.
- Copy the original Windows RE image from the mounted image by entering copy c:\sources\mount\windows\system32\recovery\winre.wim c:\win7.
- Unmount the Windows 7 image by entering imagex /unmount c:\win7\mount.
- Mount the Windows RE image by entering imagex /mountrw c:\win7\winre.wim c:\win7\mountre.
- Customize the Windows RE image as necessary by using the techniques discussed in the section "Customizing a Windows PE Image" earlier in the tutorial. Be sure to add the following package to the image: WinPE-SRTPackage. This package is required.
- Unmount the customized Windows RE image, and then save your changes by entering imagex /unmount /commit c:\win7\mountre.
- Mount the Windows 7 image you copied previously to the C:\Win7 directory by entering imagex /mountrw c:\win7\install.wim c:\win7\mount.
- Overwrite the original Windows RE image in the Windows 7 image with your customized Windows RE image by entering copy c:\win7\winre.wim c:\ win7\mount\Windows\System32\recovery.
- Save the changes to the Windows 7 image by entering imagex /unmount c:\win7\mount /commit.
Now you have a bootable Windows RE image in the C:\Win7\Winre.wim file and Windows 7 distribution media containing a bootable Windows RE image. You can create Windows RE recovery media using the C:\Win7\Winre.wim file as discussed in the next section.
In this tutorial:
- Deploying Windows 7
- Working with Windows PE
- Understanding Windows pe
- Configuring Windows PE
- Preparing a Build environment
- Creating a Build: the essentials
- Mounting a Windows pe Image
- Customizing a Windows PE Image
- Capturing and Optimizing a Build
- Creating a Bootable ISO Image and Bootable Media
- Creating a Bootable USB Flash Drive
- Booting to an Image from a hard Disk
- Adding Windows pe Images to Windows Deployment Services
- Working with Windows RE
- Creating a Customized Windows RE Image
- Creating Windows re recovery Media
- Adding Windows RE Images to Windows Deployment Services
- Deploying Windows with a Customized Windows RE
- Creating Windows Images for Deployment
- Understanding Windows Imaging
- Creating a Windows Install Image
- Configuring and Using Windows Deployment Services
- Setting Up Windows Deployment Services
- Importing Images
- Installing Windows from an Image
- Capturing Images
- Managing access and prestaging Computers
- Modifying Image File Security
- Customizing Windows Images