Modify Windows 7 PE for USB & Custom Programs

Friday, March 26th, 2010
Last Updated:
Tuesday, March 15th, 2011

Disclaimer: Accessing the information on this page means you agree to the Sites Terms of Service

I hope this to become a more through blog down the road, but for now it is simply a collection of thoughts and info...

Mount wim image for editing:
dism /mount-wim /wimfile:winpe.wim /index:1 /mountdir:c:\[windowspe build dir]\mount

Unmount WIM image:
NOTE: VERY IMPORTANT! Make sure to close all Windows Explorer windows, and do not reside within the actual mount DIR if in DOS. Otherwise the unmount process won't complete successfully...

dism /unmount-wim /mountdir:c:\pebuild\mount /commit

Autostart / Autoexec.bat / Startnet.cmd
There is no Autoexec.bat file, however there is file located in the mount\windows\system32 dir called: Startnet.cmd

Note: For some reason, editing an image, then saving / commiting it multiple times, causes the image to grow in size ~800Kb / 1000Kb each time.

Post Comment