Thursday, July 14, 2016

install windows 7/windows 10 using winpe iso

WinPE (Windows Preinstallation Environment) is a lightweight windows that is used for deploying, or troubleshooting windows os when it is offline.

*** setup adk and create winpe iso image

1- download Windows Assessment and Deployment Kit and install it, the download link is below
https://www.microsoft.com/en-us/download/details.aspx?id=39982

2- after install it, run "Deployment and Imaging Tools Environment" that it will drop a shell and use the following commands in the shell

c:\> copype x86 c:\winpe_x86
c:\> makewinpemedia /iso c:\winpe_x86 c:\winpe_x86\winpex86.iso

after finish we will get a winpe iso image called winpex.iso


*** setup linux (samba)  that provide windows 7 installation file
1- for example you have windows 7 iso file call win7.iso then we will mount it /mnt
$ sudo mount win7.iso /mnt

2- add the following lines to your samba configuration file, /etc/samba/smb.conf
[win7]
   comment = windows 7
   browseable = yes
   path =  /mnt
   read only = yes
   guest ok = yes


3- restart samba service to finish
$ sudo /etct/init.d/smbd restart

*** on client that will want to install windows 7
1- if you use vmware of virtualbox to test just boot from iso, but if you use real pc, you have to burn it and then boot from the cd

2- after booting, then we can a cmd shell, by default winpe will assign ip using dhcp, but if you does have dhcp server we can assign ip address using the following command

c:\> netsh interface ip set address "Ethernet0" static 192.168.202.254 255.255.255.0

3- then we can map drive from our samba server to drive z: with the following command

c:\> net use z: \\192.168.202.1\win7


4- now we change the drive to drive z: and run setup.exe, then the installation windows 7 process will start

c:\> z:
z:\> setup.exe


****for windows 10 the process it quick similar,

No comments:

Post a Comment