wmmayms Posted July 23, 2010 Report post Posted July 23, 2010 DISM.exe is a new command line tool included in the Windows Automated Installation Kit (Windows AIK) 2.0. You can use DISM to service Windows images, both WIM and VHD files. This is a useful tool that can be used to add/remove device drivers, OS Packages, hotfixes, etc. Here is how to create a custom boot image with diffrent keyboard layout And if read closly you will learn how to modify the registry and filstructure on a WIM file. 1. Make sure you have Windows Automated Installation Kit installed (make sure you have the latest version) 2. Open "Deployment Tools Command Prompt" (Start -> All programs -> Microsoft Windows AIK) 3. Copy base files to c:\winpe (change x86 to amd64 for 64bit) copype x86 c:\winpe 4. Mount imagefile Dism /mount-wim /wimfile:c:\winpe\winpe.wim /index:1 /mountdir:c:\winpe\mount 5. Change to Swedish keyboard layout (or whatever you prefer, make changes to the red parts) Dism /image:C:\winpe\mount /Set-SysLocale:[color="#ff0000"]sv-SE[/color] Dism /image:C:\winpe\mount /Set-UserLocale:[color="#ff0000"]sv-SE[/color] Dism /image:C:\winpe\mount /Set-InputLocale:[color="#ff0000"]sv-SE[/color] For the curious, this changes some of the <%mountpath%>\Windows\System32\config\*.* registry hives: Changes can be viewed by opening regedit, select HKLM and choose file, load hive (for example DEFAULT) 6. Create a "Tools" folder on this path: C:\winpe\mount (<%mountpath%>) 7. Input all programs you need into the folder 8. Edit the following regkey: HKEY_LOCAL_MACHINE\<filename>\ControlSet001\Control\Session Manager\Environment Input this value: %SystemRoot%\system32;%SystemRoot%;%SystemDrive%\Tools; Into the value named "path" 9. Save the changes Dism /Unmount-Wim /MountDir:C:\winpe\mount /Commit 10. Change format from Windows Image format so we can boot from the file copy c:\winpe\winpe.wim c:\winpe\iso\sources\boot.wim When this is done This new custome boot image can be added to SCCM: c:\winpe\iso\sources\boot.wim PS don´t forget to add F8 support!! Cheers Marcus Quote Share this post Link to post Share on other sites More sharing options...
wmmayms Posted July 23, 2010 Report post Posted July 23, 2010 Btw If you want to burn this wim file here is the command for creating the ISO. Run it in the "Deployment Tools Command Prompt" oscdimg –n –bc:\winpe\etfsboot.com c:\winpe\iso c:\winpe\winpe.iso Note that the –b switch indicates where the boot sector for the CD will be, and the last parameter tells it where to create the image. When this is done you can just burn the ISO with any burning program. Quote Share this post Link to post Share on other sites More sharing options...
Barty Posted February 7, 2012 Report post Posted February 7, 2012 Realy great guide!!! Quote Share this post Link to post Share on other sites More sharing options...
Techwork Posted October 6, 2012 Report post Posted October 6, 2012 Great guide, it was just what I needed to add Danish keybord to my WinPE image :-) Quote Share this post Link to post Share on other sites More sharing options...
janhoedt Posted October 17, 2013 Report post Posted October 17, 2013 Please clarify the "For the curious, this changes some of the <%mountpath%>\Windows\System32\config\*.* registry hives:Changes can be viewed by opening regedit, select HKLM and choose file, load hive (for example DEFAULT)" I cannot load "a hive", deafult is in use ...? Quote Share this post Link to post Share on other sites More sharing options...
janhoedt Posted October 17, 2013 Report post Posted October 17, 2013 ... and importing the image in SCCM, it says "only finalized boot images are supported". Quote Share this post Link to post Share on other sites More sharing options...