Cannot import edited Registry hive

Page 5 of 6 FirstFirst ... 3456 LastLast

  1. Posts : 416
    Win10 32bit v20H2
    Thread Starter
       #41

    I have told you that I get a Command Prompt from a v22H2 Upgrade USB - I do not know if that is WinPe.
    I also don't know how to run that 'as administrator'.
    I followed your steps all the way up to 'merge'. That triggered "Can not import '...\system.reg'. Error accessing registry."

    I'm also concerned that it is only SYSTEM in HKEY_L_M that needs editing. If 'merge' had worked, would it have targeted the
    SYSTEM in HKEY_L_M ?
      My Computer


  2. Posts : 416
    Win10 32bit v20H2
    Thread Starter
       #42

    I've managed to get a booting USB of WinPe - but it does not see the drive whose registry I want to edit. What now ?
      My Computer


  3. Posts : 890
    10 Pro/11 Pro Dual Boot
       #43

    Sebastian42 said:
    I've managed to get a booting USB of WinPe - but it does not see the drive whose registry I want to edit. What now ?
    just reinstall windows already. would have been done by now
      My Computers


  4. Posts : 2,799
    Linux Mint 20.1 Win10Prox64
       #44

    @sabastian42
    @garlin gave you the correct answer. Personally, I always use PowerRun when dealing with registry since most system registry keys are owned by Trusted Installer.
    If you want to delete a registry key:
    1. export the key to a .reg file, use notepad to edit and place a '-' right after the [ bracket.
    2. Open PowerRun then drop the .reg file to its windows
    3. Double click on the file to run it, or hi-lite it then click on Run Button on the top left to execute it.

    This should work unless the registry key is locked by some other process which you have to turn off for it to work.
    Cannot import edited Registry hive-2023-06-16_104157.png

    IMO. never, never change permission on any registry key.
      My Computer


  5. Posts : 416
    Win10 32bit v20H2
    Thread Starter
       #45

    Topgunbdcp - Could you please SHOW where 'and place a '-' right after the [ bracket.' applies ?
      My Computer


  6. Posts : 2,799
    Linux Mint 20.1 Win10Prox64
       #46

    Cannot import edited Registry hive-1stlines.jpg

    Windows Registry Editor Version 5.00
    [-HKEY_LOCAL_MACHINE\Systemkey]

    This will delete systemkey and everything under systemkey
      My Computer


  7. Posts : 416
    Win10 32bit v20H2
    Thread Starter
       #47

    Topgunbdcp - Thanks. This thread has had several different suggestions; I've now found the WinPe one to not fulfill its promise, so I'm looking more closely at yours.
    1. 'Export the key to a reg file' You had started to talk about PowerRun, but I presume you mean export from Regedit.
    Notepad allows me to delete the unwanted entries in the reg file - why should I take the '-' route ?

    PowerRun gives me the same response as WinPe - Error accessing Registry




    SIW2 - #40 - I have finally managed to 'practice what you preach', but the obstacle is still there : "Cannot import the reg file; error accessing the registry."
    Last edited by Sebastian42; 19 Jun 2023 at 07:00.
      My Computer


  8. Posts : 2,799
    Linux Mint 20.1 Win10Prox64
       #48

    This is how regedit works. Using Notepad to edit so you can put a dash then use PowerRun to merge it back to the registry, that is to instruct regedit to delete the key.
      My Computer


  9. Posts : 16,950
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #49

    Sebastian42 said:
    Notepad allows me to delete the unwanted entries in the reg file - why should I take the '-' route ?
    That seems to be for future reference.
    You might use .reg files to augment existing Registry entries rather than, as now, completely replacing a hive.
    Being able to delete a Key with the - prefix can be quite useful.


    Denis
      My Computer


  10. Posts : 416
    Win10 32bit v20H2
    Thread Starter
       #50

    OK, I'll try again, using the '-' route
      My Computer


 

  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 02:06.
Find Us




Windows 10 Forums