An oldie but a goodie – this came about again when creating Windows 7 WIM files for SCCM. It really does save a lot of time – otherwise you would need to deploy your image, make changes to the registry and then recapture. This process is much quicker! I use the DISM tool from the WAIK toolkit but you could also use imageX to mount the image.
Steps:
Mount the WIM
Open the Deployment Tools Command prompt and enter:
Result:
Load the registry hive
From a command prompt enter:
Result:
Open regedit
You will then see the registry that is contained in the WIM file, in this case it is called test. Make your changes, then exit regedit.
Unload the registry hive
From a command prompt enter:
Result:
Unmount the image
Open the Deployment Tools Command prompt and enter:
Result:
Steps:
Mount the WIM
Open the Deployment Tools Command prompt and enter:
Code: Select all
dism /mount-wim /wimfile:d:\temp\test.wim /index:1 /mountdir:c:\mount
Result:
Code: Select all
D:\>dism /mount-wim /wimfile:d:\temp\test.wim /index:1 /mountdir:c:\mount
Deployment Image Servicing and Management tool
Version: 6.1.7600.16385
Mounting image
[==========================100.0%==========================]
The operation completed successfully.
Load the registry hive
From a command prompt enter:
Code: Select all
reg load HKLM\test c:\mount\windows\system32\config\software
Result:
Code: Select all
D:\>reg load HKLM\test c:\mount\windows\system32\config\software
The operation completed successfully.
Open regedit
You will then see the registry that is contained in the WIM file, in this case it is called test. Make your changes, then exit regedit.
Unload the registry hive
From a command prompt enter:
Code: Select all
reg unload HKLM\test
Result:
Code: Select all
D:\>reg unload HKLM\test
The operation completed successfully.
Unmount the image
Open the Deployment Tools Command prompt and enter:
Code: Select all
dism /unmount-wim /mountdir:c:\mount /commit
Result:
Code: Select all
D:\>dism /unmount-wim /mountdir:c:\mount /commit
Deployment Image Servicing and Management tool
Version: 6.1.7600.16385
Image File : d:\temp\test.wim
Image Index : 1
Saving image
[==========================100.0%==========================]
Unmounting image
[==========================100.0%==========================]
The operation completed successfully.