Here WinPE mirroring refers to a CD-ROM mirror that can directly boot the system and run a WinPE. There are two types of such mirrors.
A, WinPE system files directly into the mirror. When such a system is started, the system disk (typically x:) is a disc image. So when you remove the disc, there is a problem with the system running.
B, WinPE system files into an SDI image. This way after the system boot WinPE in memory, the system disk is in the memory of the RAMDisk, so the system will not run out of trouble after removing the disc.
The required resources for mirroring: Windows product CD (example Win2003 server disk, if it is XP, the Win2003 disk is replaced with an XP disk), a Windows OPK CD or a Windows PE CD.
The Windows OPK CD is for OEM use only. The Windows PE CD is intended for use only by non-OEM customers who purchase licenses from Microsoft. Functionally, the Windows PE creation tool in the Windows PE CD is the same as the creation tool in OPK.
Mirroring Fabrication Step: Create a directory on your hard disk that stores the Windows PE creation tool (represented as build_location). For example, please type:
The MD c:/build_x86 places a Windows OPK CD or a Windows PE CD on the CD-ROM drive (represented as cd_drive). Copy CD_DRIVE/WINPE and all subdirectories to build_location. For example, please type:
xcopy E:/winpe c:/build_x86/s the Windows OPK CD or Windows PE CD out of the CD-ROM drive. Place the Windows product CD in the CD-ROM drive. Into the build_location. For example, please type:
The CD c:/build_x86 runs a mkimg command with the following two required options:
Mkimg.cmd source_directory winpe_image
For example, please type:
Mkimg.cmd e:/C:/winpe
The Mkimg command has several parameters to choose from, namely:
/Nover |
Disables version checking that is typically used to prevent the creation of unsupported Windows PE images. |
/WMI |
Add WMI providers and classes from the Wbemoc.inf and MOF repositories. |
/pnp |
Add the Plug and Play device driver detection feature. |
/NOWF |
Disables Windows firewall. Windows Firewall is enabled by default while Mkimg creates Windows PE. |
You can select parameters based on different needs.
8. Another common custom PE script is buildoptionalcomponents.vbs. Its parameters can be:
Options |
function |
/ado |
Build ADO (ActiveX database objects) for Microsoft SQL Server connections. |
/d:location |
Specify an alternate target location (I386) for the Windows PE Optional component file. If not specified, the files are saved to the desktop. |
/e |
Automatically probe the resulting folder when finished. |
/hta |
Build an HTA (HTML application). |
/ Q |
Run the script without prompting. Notify only on failure. |
/s:location |
Specifies an alternate source location other than the Windows product CD. |
/wsh |
Build WSH (Windows script Host). |
/x |
Provides sample scripts that can be used to verify that a component is installed correctly. |
For example, you can perform:
buildoptionalcomponents.vbs/d:winpe_img/s:cd_drive/hta/wsh/x/e
All the files in this WinPE are basically built, and the following is the steps to make a bootable disc image. Two types of optical disc image production methods are also starting from the next change. The simpler one (a) is introduced.
A-class mirror production:
You only need to build all the files in the Winpe_img directory into a bootable CD image. The same is done under the Build_location directory:
oscdimg-h-n-betfsboot.com winpe_img c:/winpe.iso
The disc image is ready.
B-class Mirror production:
Required software: SDI Loader in Windows Embedded Studio.
1. Create a new directory Workdir
2, open SDI Loader, click Add Disk, locate to Workdir, enter new file name PE.SDI, point Open, in the pop-up hint box to determine the midpoint, create a new Disk image, fill size information, note that do not exceed or too close to the target machine memory size. Preferably less than half the size of the target memory. At this point the new disk image is already loaded.
3, run DiskPart for disk partitions, such as the execution of the command sequence can be:
Clean
List disk
Select disk=x Note: The hard disk number that X sees when it is the list disk.
Create Partition Primary
The partition is then formatted, the assignment letter is manipulated, the format file format is NTFS, and the best
Open file compression support.
4, in the build_location to execute the following command: K: For disk image allocation of the letter.
Robocopy.exe/mir winpe_img k://r:3/w:4
The reason for using Robocopy is that the newly created NTFS partition supports compression and can be compressed and copied when there is not enough space to ensure the smooth completion of the copy. To this SDI production finished.
5, open the SDI Loader, the PE.SDI uninstall.
6, the new folder in Workdir i386, from the Winpe_img Directory I386 folder under the
Ntdetect.com
Setupldr. BIN
Two files are copied to the newly created i386.
7. Create a new text file in Workdir Winnt.sif, which reads as follows:
[SetupData]
BootDevice = "RAMDisk (0)"
Bootpath = "/i386/system32/"
OsLoadOptions = "/noguiboot/fastdetect/minint/rdimageoffset=36352/rdpath=pe." SDI "
8, the production of bootable CD-ROM image
oscdimg-h-n-betfsboot.com winpe_img c:/winpe.iso