DISM - Edit Registry on an Offline Image  

Page 2 of 3 FirstFirst 123 LastLast

  1. Posts : 52
    Windows 10 Pro 64-Bit
       #10

    SIW2,

    I am new to editing the registry of an image, I didn't know Hkey_Current_User is created after installation. I haven't noticed this process being slow, or difficulty unloading.
    Did a little research, but couldn't find how to use regedit directly on an image.
    Last edited by Barefoot; 03 Aug 2018 at 10:53.
      My Computer


  2. Posts : 4,511
    several
       #11

    You need to mount the image or extract the config folder.

    Open regedit , click HKLM to highlight it, then click FILE>LOAD HIVE. There is no need to use powershell or cmd prompt. You can just use the regedit user interface.
      My Computer


  3. Posts : 3
    Win 7
       #12

    @SIW2:
    because, i am not an expert, i don't understand resp. -can't follow your advice:

    "You need to mount the image or extract the config folder.

    Open regedit , click HKLM to highlight it, then click FILE>LOAD HIVE. There is no need to use powershell or cmd prompt. You can just use the regedit user interface.

    Config Folder? I can't see or find a config folder in the extracted image.....

    Anyway:

    On Win 7, i used the Windows ADK Tools, which i downloaded to manage Win 10 1809 red Oktober on my Win 7 host.

    Everything was fine - exept my first try: I was so stupid and followed exactly what the threadstarter did:
    I created a folder on drive D !!!!
    That wa stupid!, because this folder actually belongs to the dual installed XP!

    Anyway: I changed it to dirve C and everything was fine - exept ONE Point!

    In regedit, i was searching for a special point - the stupid sermouse driver, which can be critical on several toughbook with GPS. Microsoft know about that... anyway.

    I knew the location under System - but could NOT find the same location,
    because actually it is: "CurrentControlSet" - this is in the Offline NOT present!

    It's CurrentControlSet 001 or so.

    Does someone know about that? before i create several WinPE SE Win10 1809 ISO's for nothing?

    Regards

    - - - Updated - - -

    Based on the commands, which Kari posted:

    Is it possible, to delete all other versions - exept the professional - from the WIM file?

    - - - Updated - - -

    Solved!
    Here:
    Windows 10 1809 - Basic WIM Optimization and Offline Servicing with SCCM
      My Computer


  4. Posts : 125
    Windows 10 Pro x64 Full Retail Version
       #13

    Putting drivers in was not a problem at all. So i don't know why i'm having a problem putting registry entries in.

    Sorry to be a bother again but i'm getting confused as what i did wrong. I followed this tutorial and when i got to do the reg part i keep getting an error even tried the help from inside powershell and did what the help said and still got an error. I want to learn how to do this so i can do some of this stuff on the site and not have to ask for help. It just won't let me make the temp hive in my host reg.

    DISM - Edit Registry on an Offline Image-pwershell-reg-entries.jpg
    Last edited by Snakefist; 06 Nov 2020 at 16:26.
      My Computer


  5. Posts : 17,661
    Windows 10 Pro
    Thread Starter
       #14

    Snakefist said:
    Putting drivers in was not a problem at all. So i don't know why i'm having a problem putting registry entries in.
    You mount the offline image to folder C:\Mounts, then you try to edit registry in folder C:\Mount. System cannot find registry in folder C:\Mount, because you missed the last character S in folder name.

    In other words, this is a user caused error, a typo.

    Kari
      My Computer


  6. Posts : 125
    Windows 10 Pro x64 Full Retail Version
       #15

    Kari said:
    You mount the offline image to folder C:\Mounts, then you try to edit registry in folder C:\Mount. System cannot find registry in folder C:\Mount, because you missed the last character S in folder name.

    In other words, this is a user caused error, a typo.

    Kari
    Thanks, i see this now. I blame my insomnia on that typo.

    So i finally got it mounted and used the exact same command in this tutorial using mounted since it wouldn't let me mount to the other folder. PS C:\Windows\system32> reg load HKLM\OFFLINE D:\Mounted\Windows\System32\Config\Software
    The operation completed successfully.

    Now i'm taking this here in the offline hive HKEY_LOCAL_MACHINE\OFFLINE\Classes\Applications\explorer.exe is where i will add these in to. In the host regedit.

    [HKEY_CURRENT_USER\Software\Classes\Applications\Explorer.exe]

    [HKEY_CURRENT_USER\Software\Classes\Applications\Explorer.exe\Drives]

    [HKEY_CURRENT_USER\Software\Classes\Applications\Explorer.exe\Drives\C]

    [HKEY_CURRENT_USER\Software\Classes\Applications\Explorer.exe\Drives\C\DefaultIcon]
    @="imageres.dll,-425"

    Please correct me if i am wrong trying to learn how to do advance stuff like this.
      My Computer


  7. Posts : 317
    Microsoft Windows 10 x64
       #16

    I created a wim image (20201213_1458_C.wim) of my C:\ Disk before formatting and installing new Windows 20H2
    Late on, I discover that I have lost some favorites links stored in the registry
    then I followed Kari procedures to recover them

    Under command prompt (admin mode)
    Dism /Get-WimInfo /WimFile:"K:\WimFiles\20201213_1458_C.wim"
    Dism /Get-WimInfo /WimFile:"K:\WimFiles\20201213_1458_C.wim" /Index:1
    Dism /Mount-Wim /WimFile:"K:\WimFiles\20201213_1458_C.wim" /Index:1 /MountDir:"C:\Mount\WIM"
    reg load HKU\OFFLINE "C:\Mount\WIM\Users\---MyLogin---\NTUSER.DAT"
    regedit

    --- search and export relevant registry key ---

    reg unload HKU\OFFLINE
    Dism.exe /Unmount-Image /MountDir:"C:\Mount\WIM" /Discard
    Worked like a charm !

    Thanks Kari
    Last edited by D4ni3l; 21 Dec 2020 at 12:52.
      My Computer


  8. Posts : 4
    windows8.1
       #17

    reg load HKLM\SOFT F:\win11\x\Windows\System32\Config\Software\Microsoft\Windows\CurrentVersion\Run

    ERROR: The system was unable to find the specified registry key or value.
      My Computer


  9. Posts : 4,511
    several
       #18

    1. First load the hive . The hive is in red. It is a file with no extension

    reg load HKLM\SOFT F:\win11\x\Windows\System32\Config\Software

    2. Then use regedit to look in the SOFT key you just created to find Microsoft\Windows\CurrentVersion\Run
      My Computer


  10. Posts : 4,511
    several
       #19

    It is easier to use regedit

    Click HKLM to highlight it. This is the key you are going to load the hive under

    DISM - Edit Registry on an Offline Image-regedit1.jpg


    Click File > Load Hive

    DISM - Edit Registry on an Offline Image-regedit2.jpg


    Browse to the hive you want to load

    DISM - Edit Registry on an Offline Image-regedit3.jpg

    Give it a name

    DISM - Edit Registry on an Offline Image-regedit4.jpg

    There it is

    DISM - Edit Registry on an Offline Image-regedit5.jpg
      My Computer


 

Tutorial Categories

DISM - Edit Registry on an Offline Image Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 03:23.
Find Us




Windows 10 Forums