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:
dism /mount-wim /wimfile:d:\temp\test.wim /index:1 /mountdir:c:\mount
Load the registry hive
From a command prompt enter:
reg load HKLM\test c:\mount\windows\system32\config\software
Result:
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:
reg unload HKLM\test
Result:
D:\>reg unload HKLM\test
The operation completed successfully.
Unmount the image
Open the Deployment Tools Command prompt and enter:
dism /unmount-wim /mountdir:c:\mount /commit
Result:
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.

Related Articles
11 users responded in this post
When u ran the command reg load HKLM\test c:\mount\windows\system32\config\software ,from where did you load the reg key ? to get test Hive with all folders like adobe,apple computer INC etc ? I have a reg Key which i need to import but not sure how ?
Jag, once you have mounted your WIM file into C:\mount, you simply run ‘reg load HKLM\test c:\mount\windows\system32\config\software’
I make this small program in java for use the Dism.exe present in Windows 7 with GUI or Visual Mode,
Download Link:
GDism ELDI v2.2 Final:
mediafire : ?uvxd4dk6kuv9ian (…fire.com/?uvx…)
Commands you can use on GUI or Visual Mode:
* Mount-Wim
* Commit-Wim
* Unmount-Wim
* Get-WinInfo
* Get-MountedWinInfo
* CleanUp-Wim
* Get-Packages
* Add-Package
* Remove-Package
* Get-Drivers
* Get-DriverInfo
* Add-Driver
* Remove-Driver
* Make ISO
You must need the JRE installed (Java Runtime Enviroment).
@ByELDI
v2.2
Progress Bar
Time Counter
v2.1
Fixed iso making
Menu translated
Button Cancel Process
v2.0
Better Interface for results text
Make iso image with oscdimg
Support WAIK
Support x64
Better Config File
Size reduced
v1.4
Fixed Process on wait list
Config File
v1.3
Translate English-Espanol
Multiples Process Waiting
v1.2
Fixed Drivers Functions
http://www.mediafire.com/?uvxd4dk6kuv9ian
Ok this is nice. I want to delete the user profiles in my .wim file. I know that the settings are in this key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
I’ve mounted my .wim file and succeeded doing the software key. But how do I access the profile list?
Foundet
registry editor in Windows server would not “expand” the “test” key. When opening in Windows 7 its OK
GDism ELDI last version in:
http://heldigard.blogspot.com/2010/09/gdism-eldi.html
Another tip – if you want to edit the Default User’s registry, once you have mounted the WIM in c:\mount, simply use ‘reg load HKLM\test “C:\mount\Documents and Settings\Default User\NTUSER.DAT”‘ and open your registry editor.
If you are looking for HKEY_CLASSES_ROOT, the is a subcomponent of SOFTWARE (HKEY_LOCAL_MACHINE\Software\Classes)
You can load the registry hives by other method as well, just open regedit and select HKLM and go to “File>load hives” and then navigate to “mount\windows\system32\config” and then select the “software” and you can give whatever name you wish, in the current example they have given “Test” name, now all your software registries are now loaded in “test” folder of HKLM. Now just change the path of registry you want to integrate from “HKLM\software” to “HKLM\Test” and run the registry it will integrate the registry in wim.
Don’t forget to unload the hives, select “Test” folder and go to “File>Unload hives” its all done.
Thanks for the info. I did exactly what you mention here but I want to create a registry in HKLM\system\currentcontrolset\services. How do you open this path in registry? It doesn’t show currentControlSet.
Any help is very much appreciated.
Lucy
LucyB – I’ve pretty sure CurrentControlSet doesn’t exist until the OS is running, so you aren’t able to update it in an offline WIM file.
currentcontrolset01 is the saved state from offline PE. So if you change the key here it will be used if you boot from PE
Leave A Reply