Loading a registry hive can come to handy when you need to explore and export another user’s HKEY_CURRENT_USER (HKCU) registry key.
You can do this easily with the Registry Editor but I would like to script this so that I could export user’s registry for migration purpose.
To load the registry hive:
reg load HKU\hivename c:\Users\username\ntuser.dat
Now to export a registry:
reg export HKU\hivename\Software\Intel c:\temp\Intel.reg
To unload the registry hive:
reg unload HKU\hivename