Create your own Windows 7 WINPE disk

Here is a quick guide to build your own Windows 7 WINPE environment, that you can use to do tasks on your computer (on your neighbours computers) standalone.
Examples of use: infected computers with virus, harddisk partitioning

The environment i have created is very flexibel.
You can change it the way you want it to be.

Step 1 Download Windows AIK
================================
Download from:
http://www.microsoft.com/downloads/details.aspx?familyid=696dd665-9f76-4177-a811-39c26d3b3b34&displaylang=en

[Free download]

Step 2 Download and install Virtual CloneDrive
======================================================
Download from: http://www.slysoft.com/nl/download.html

[Fee download]

Step 3 Install Windows AIK
============================================================
3.1 mount Windows AIK .ISO file with Virtual CloneDrive
3.2 install Windows AIK

Some help can be found on:
http://itsvista.com/2006/12/installing-windows-aik-without-a-disc-is-free-and-easy/

Step 4 Create your development environment
===========================================================
4.1 create map on your harddisk with the name winpe_develop
4.2 create map x:\winpe_develop\harddisk [this is for the harddisk tools]
4.3 create map x:\winpe_develop\security [this is for antivirus]
4.4 create map x:\winpe_develop\utils
4.5 create map x:\winpe_develop\portableapps [this is for the portableapps]
4.6 create map x:\winpe_develop\driverspacks

Step 5
==============================================================
Download Firefox portableapp from http://portableapps.com/apps/internet
put in [do not install] x:\winpe_develop\portableapps

Download further utilities from
http://portableapps.com/apps/utilities

Download 7-Zip portable from:
http://portableapps.com/apps/utilities/7-zip_portable
This is needed for the driverpacks (see below)

Step 6
================================================================
Download driverpacks from http://driverpacks.net/driverpacks/latest
and put them in x:\winpe_develop\driverpacks

You can unzip them with 7-ZIP portable once running your environment
These driverspacks are not loaded with the RAMDisk
They stay on the DVD

Loading a driver with Winpe can be done (some examples):
:: 3com
drvload %~dp0\DP_LAN_wnt5_x86-32_8121\D\L\3A\w9x90xbc.inf
drvload %~dp0\DP_LAN_wnt5_x86-32_8121\D\L\3A\w9xel90x.inf
drvload %~dp0\DP_LAN_wnt5_x86-32_8121\D\L\3B\net3c985.inf
drvload %~dp0\DP_LAN_wnt5_x86-32_8121\D\L\3C\el2000x.inf
drvload %~dp0\DP_LAN_wnt5_x86-32_8121\D\L\3D\el99x_nt.inf
:: intel
drvload %~dp0\DP_LAN_wnt5_x86-32_8121\D\L\I1\e1e5132.inf
drvload %~dp0\DP_LAN_wnt5_x86-32_8121\D\L\I1\e100b325.inf


Step 6
===================================================================
Run scripts


Script 1
------------------------------
@call "C:\Program Files\Windows AIK\Tools\PETools\pesetenv.cmd"
@cd \winpe_develop
@imagex /unmount c:\winpe_x86\mount
@rd /s/q C:\winpe_x86
@call copype.cmd x86 C:\winpe_x86 >nul
@imagex /mountrw c:\winpe_x86\winpe.wim 1 c:\winpe_x86\mount
@cd "c:\Program files\windows aik\tools\x86\servicing"
@dism /image:c:\winpe_x86\mount /Set-ScratchSpace:512 /quiet

Script 2
--------------------------------------------------
@CD c:\winpe_x86\mount
@MD c:\winpe_x86\mount\programs
@MD c:\winpe_x86\mount\security
@MD c:\winpe_x86\mount\harddisk
@MD c:\winpe_x86\mount\portableapps
@xcopy c:\winpe_develop\harddisk\driveimagexml\driveimage_xml\*.* c:\winpe_x86\mount\harddisk\driveimagexml\ /s/v/e/y
@xcopy c:\winpe_develop\security\stinger\*.* c:\winpe_x86\mount\security\stinger\ /s/v/e/y
@xcopy "c:\winpe_develop\security\free-av tools\antivir cmdscan\antivir_avcls_de\*.*" c:\winpe_x86\mount\security\antivir\ /s/v/e/y
@xcopy "c:\winpe_develop\security\free-av tools\virusdefupdate\ivdf_fusebundle_nt_en\*.*" c:\winpe_x86\mount\security\antivir\ /s/v/e/y
@md c:\winpe_x86\mount\ccleaner
@xcopy c:\winpe_develop\security\ccleaner\ccsetup219\*.* c:\winpe_x86\mount\security\ccleaner\ /s/v/e/y
@xcopy c:\winpe_develop\security\ntpwed03\*.* c:\winpe_x86\mount\security\ntpwed03\ /s/v/e/y
@xcopy c:\winpe_develop\recovery\msdart65\tools\mount\*.* c:\winpe_x86\mount\ /s/v/e/y
@xcopy c:\winpe_develop\recovery\msdart65\sweeper\mount\*.* c:\winpe_x86\mount\ /s/v/e/y
@xcopy c:\winpe_develop\recovery\wrr\*.* c:\winpe_x86\mount\wrr\ /s/v/e/y
@md c:\winpe_x86\mount\portableapps
@xcopy c:\winpe_develop\portableapps\*.* c:\winpe_x86\mount\portableapps\ /s/v/e/y
@del c:\winpe_x86\mount\windows\system32\winpeshl.ini
copy c:\winpe_develop\winpe_tools\winpeshl\winpeshl.ini c:\winpe_x86\mount\Windows\System32

Script 3 Copy the driverspacks to the DVD (not to the .WIM file (!))
---------------------------------------------------
@xcopy c:\winpe_develop\driverpacks\*.* c:\winpe_x86\iso\driverpacks\ /s/v/e

Script 4 Create .WIM file and create .ISO file with .WIM file on it.
-----------------------------------------------------
@call "C:\Program Files\Windows AIK\Tools\PETools\pesetenv.cmd"
@cd \winpe_develop
@imagex /unmount /commit c:\winpe_x86\mount
@copy c:\winpe_x86\winpe.wim c:\winpe_x86\iso\sources\boot.wim
@oscdimg -n -bc:\winpe_x86\etfsboot.com c:\winpe_x86\ISO c:\winpe_x86\winpe_x86.iso

Step 7
===========================================================
Burn .ISO file on DVD with ImgBurn

More info on WinPE
==============================================================
http://www.windowsnetworking.com/articles_tutorials/Deploying-Vista-Part11.html

Geen opmerkingen: