wiki:opsi/winpe
Last modified 4 years ago Last modified on 06/10/13 13:26:02

WinPE

Used to install Windows >= 7 with OPSI.

Gernerl Information about WinPE at http://en.wikipedia.org/wiki/Windows_Preinstallation_Environment

Since Windows 8, WinPE 4.0 is available. However, Windows 8 can also be installed using WinPE 3.x.

WinPE 3.x

Since Windows 7.

see http://download.uib.de/opsi4.0/doc/html/opsi-getting-started/opsi-getting-started.html#opsi-getting-started-firststeps-osinstall-fill-base-packages-nt6

Alternativly use following commands:

Install Windows WAIK

c:

rem Create Initial winpe directory
c:\Program Files\Windows AIK\Tools\PETools\copype.cmd amd64 c:\winpe64

copy c:\winpe64\winpe.wim c:\winpe64\ISO\sources\boot.wim

# set variables
set wim=c:\winpe64\ISO\sources\boot.wim
set md=c:\winpe64\mount

rem Mount and modify WinPE boot image

cd c:\winpe64
dism /Get-WIMInfo /WimFile:%wim%

dism /cleanup-wim

dism /Mount-Wim /WimFile:%wim% /index:1 /MountDir:%md%

type C:\winpe64\mount\Windows\System32\startnet.cmd
echo c:\opsi\startnet.cmd > %md%\Windows\System32\startnet.cmd

dism /unmount-Wim /MountDir:%md% /Commit

More customazations are explained at wiki:opsi/dism

Copy ISO subdirectory as winpe Directory to OPSI server:

cp ISO/. /var/lib/opsi/depot/win*\winpe/.

Hint: The boot.wim file is also accessable by the 7z archiving programm (at least for WinPE versions <4.0)

WinPE 4.0

Currently this is not supported by OPSI. Modifying this images works, but driver integration fails (create_driver_links.py tries to extract drivers using 7z, which does not work for WinPE >= 4.0).

Modify WinPE for OPSI

Install Windows ADK, see "Windows Deployment with the Windows ADK" at http://technet.microsoft.com/en-us/library/hh824947.aspx

Perform the following commands:

c:

rem Set Environment variables

cd C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Deployment Tools
DandIsetenv


rem Create Initial winpe directory

cd C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment
copype amd64 c:\winpe


rem Mount and modify WinPE boot image

cd c:\winpe
dism /Get-WIMInfo /WimFile:C:\winpe\media\sources\boot.wim

dism /cleanup-wim

dism /Mount-Wim /WimFile:C:\winpe\media\sources\boot.wim /index:1 /MountDir:C:\winpe\mount

type C:\winpe\mount\Windows\System32\startnet.cmd
echo c:\opsi\startnet.cmd > C:\winpe\mount\Windows\System32\startnet.cmd

dism /unmount-Wim /MountDir:C:\winpe\mount /Commit

Copy media subdirectory as winpe Directory to OPSI server:

cp media/. /var/lib/opsi/depot/win*\winpe/.

Other