150 likes | 303 Views
Migrating from Ghost to WIM. Mike Stone – Alfred University LabMan 2012. Topics covered. The fundamental differences between Ghost and WIM files How to create a WinPE 3.0 Environment How to create, append, apply, and manage WIM files Applied automation through WinPE 3.0.
E N D
Migrating from Ghost to WIM Mike Stone – Alfred University LabMan 2012
Topics covered • The fundamental differences between Ghost and WIM files • How to create a WinPE 3.0 Environment • How to create, append, apply, and manage WIM files • Applied automation through WinPE 3.0 Mike Stone - Alfred University - LabMan 2012
Topics NOT covered • How to build a Windows 7 image • How to build an unattend.xml sysprep answer file • WDS and/or SCCM integration Mike Stone - Alfred University - LabMan 2012
Where we started from • Ghost 11 and 11.5 • Dell CFI Imaging • Manual Lab Updates Mike Stone - Alfred University - LabMan 2012
The old process • Receive a “seed” system for each unique piece of hardware. • Build a new image • Build a new Netboot Ghost CD • Capture the image • Apply the image via Ghostcast • Update the image periodically (or not) Mike Stone - Alfred University - LabMan 2012
Frequent problems encountered • Ghostcast horribly unreliable. • NDIS2 drivers scarce, difficult to manage. • Hardware generalization difficult Mike Stone - Alfred University - LabMan 2012
Major differences • Ghost can be disk or partition capture/restore. WIM is partition-based only. • Management of WIM files is largely command-line based. • Post-capture file, driver, and update management much easier using WIMs. • WIM can be a container of multiple image indexes. Mike Stone - Alfred University - LabMan 2012
WIM index basics Mike Stone - Alfred University - LabMan 2012
First thing’s first - Prerequisites • Windows Automated Installation Toolkit (Windows AIK). • Familiarity with basic Windows command-line environment. Mike Stone - Alfred University - LabMan 2012
Three basic tools of WIM management with WinPE 3.0 • ImageX:Creates, Appends, Deletes, and Applies WIM images. • DISM: Manages existing WIM files – driver injections, package injections, mounting and unmounting to access file system, etc. • Diskpart: Partitioning Utility. Mike Stone - Alfred University - LabMan 2012
Build your WinPE 3.0 Systemhttp://genesis.alfred.edu • Open Deploy Tools Command Prompt as Administrator • call copype.cmd x86 c:\PE\winpe_x86 • copy c:\PE\winpe_x86\winpe.wim c:\PE\winpe_x86\ISO\sources\boot.wim • DISM /Mount-wim /WimFile:c:\PE\winpe_x86\ISO\sources\boot.wim /index:1 /MountDir:c:\PE\winpe_x86\mount • DISM /image:c:\PE\winpe_x86\mount /Add-Package /PackagePath:"c:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-wmi.cab“ • DISM /image:c:\PE\winpe_x86\mount /Add-Package /PackagePath:"c:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-hta.cab“ • DISM /image:c:\PE\winpe_x86\mount /Add-Package /PackagePath:"c:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-mdac.cab“ • DISM /image:c:\PE\winpe_x86\mount /Add-Package /PackagePath:"c:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-scripting.cab“ • DISM /image:c:\PE\winpe_x86\mount /Add-Package /PackagePath:"c:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-wds-tools.cab“ • copy "c:\Program Files\Windows AIK\Tools\x86\imagex.exe" "c:\PE\winpe_x86\mount\Windows\system32\imagex.exe“ • DISM.exe /unmount-Wim /MountDir:c:\PE\winpe_x86\mount /Commit • oscdimg -n –b c:\PE\winpe_x86\etfsboot.com c:\PE\winpe_x86\ISO c:\PE\winpe_x86\winpe_x86.iso Mike Stone - Alfred University - LabMan 2012
ImageX Imagex /capture /check /verify [source] [destination.wim] “[short descriptor]” “[long descriptor]” Imagex /append /check /verify [source] [existingwim.wim] “[short descriptor]” “[long descriptor]” Imagex /apply /check /verify [wimfile.wim] [indexnumber] [destination] Mike Stone - Alfred University - LabMan 2012
DISM Deployment Image Servicing and Management Dism /mount-wim /wimfile:[wimfile] /index:[index number] /mountdir:[folder to mount into] Dism /image:[folder wim is mounted in] /Add-Driver /forceunsigned /recurse /driver:[folder containing drivers] Dism /unmount-wim /mountdir:[folder wim is mounted in] /commit (or /discard) Mike Stone - Alfred University - LabMan 2012
The Genesis Project Mike Stone - Alfred University - LabMan 2012
Migrating from Ghost to WIM Mike Stone – Alfred University LabMan 2012