Regedit (command line) won't save changes: How can this be solved?

Page 1 of 2 12 LastLast

  1. Posts : 42
    Windows 10 Pro
       #1

    Regedit (command line) won't save changes: How can this be solved?


    Hi. My PC won't boot. Therefore I have to use the command prompt to start programs that can fix the problem. A fix is to create a new key in regedit. So, I'm in DOS, I can run regedit, but regedit won't save the changes I make. I want to mention some things:

    I understand that command.com may be run with or without elevated rights or privaleges.

    1) When I get to the command prompt by way of Windows Recovery Mode, am I running the command interpreter with elevated rights, that is, as an administrator, or not?

    2) If one were to run command.com with elevated rights, would that enable regedit to save changes?

    3) Can you run command com, with elevated rights, from the command line, when in DOS that is running without elevated rights?

    I do know about runas.exe, but will get to that if I have to.

    Thanks. Rich

    - - - Updated - - -

    The situation is, that if I start regedit from an elevated prompt, and if that allows regedit to save changes, then my problem would be solved. The theory though behind this (which may or not be correct) is that as far as regedit is concerned, running it from an elevated prompt must be someone with administrator privaledges.

    But if that does not work, I think I'd have to run runas.exe.
      My Computer


  2. Posts : 43,024
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #2

    Hi, Start by checking your disk - e.g. use a live boot disk (Google/search/create bootable disk/boot PC from it) - including Crystal Diskinfo
    - or remove system disk and test on another PC as a USB-connected disk

    If ok

    Offline registry editing: see e.g.
    Utilizing Offline Registry Editor to Repair the Registry
    Regedit as offline Registry editor – 4sysops

    It sounds as if you have a good idea as to what might be wrong if you are considering that.

    Hi. My PC won't boot.
    History: what happened that led to your PC becoming unbootable? E.g.
    - lightning strike
    - cat walked over keyboard
    - just didn't start one day
    - etc

    Do you have a recent 3rd party disk image? (Most people don't answe this question, alas- if you don't I'll assume you haven't started using disk imaging as is endlessly recommended here.
      My Computers


  3. Posts : 42
    Windows 10 Pro
    Thread Starter
       #3

    Hi. The actual problem with boot, is that signing in with my PIN is not available anymore. Not sure why. I'm going thru a list of fixes:

    * 1 Delete NGC folder
    * 2 Using Registry editor
    * 3 Remove and add PIN
    * 4 Use "I forgot my PIN" option
    * 5 Create a new Administrator account
    * 6 Modify TextHooks registry
    * 7 Check if CNG Key Isolation is running

    I tried 1, using something like file explorer in my BIOS program, but was unable to delete NGC.
    I feel sure there is no virus at work.

    I've just got my NUC, and made no backups. I feel sure no virus is at work.
      My Computer


  4. Posts : 5,453
    Windows 11 Home
       #4

    richard2277 said:
    The actual problem with boot, is that signing in with my PIN is not available anymore.
    Have you disabled MsCtfMonitor task or any of those services?

    CNG Key Isolation
    User Data services
    Text Input Management Service

    If you can boot, just not login, use utilman method to edit registry, it is easier than loading/unloading hive.
      My Computer


  5. Posts : 42
    Windows 10 Pro
    Thread Starter
       #5

    I'm not sure what counts as a boot. I do get to a point where I see a picture and when I press Enter I get (now) two Users. For some reason I now see the original user (Has my name) and "New User". I cannot recall personally creating "New User". I cannot enter my PIN if I choose user that has my name, I cannot "Set up my PIN", does not work. With "New User" I prompted to enter a password, but since I cannot recall making "New User" I cannot furnish a password that works. Be nice if there was a generic password I could use.

    I did not do anything with regard to:

    CNG Key Isolation
    User Data services
    Text Input Management Service
      My Computer


  6. Posts : 5,453
    Windows 11 Home
       #6

    richard2277 said:
    Be nice if there was a generic password I could use.
    Enable or Disable Elevated Administrator account in Windows 10
      My Computer


  7. Posts : 5,330
    Windows 11 Pro 64-bit
       #7

    In this video, i will explain in detail how to edit the Windows registry offline from a Windows Recovery Environment.

      My Computer


  8. Posts : 42
    Windows 10 Pro
    Thread Starter
       #8

    Hi. I get to the point of "Unload Hive" but it is greyed out. So, I cannot finish the process. Any ideas why? Is it a permissions thing? I can Export. I can Exit. I am keen on psyching out why I cannot successfuly save a modification to the registry from a Recovery Environment. Rich
      My Computer


  9. Posts : 5,330
    Windows 11 Pro 64-bit
       #9

    richard2277 said:
    Hi. I get to the point of "Unload Hive" but it is greyed out. So, I cannot finish the process. Any ideas why? Is it a permissions thing? I can Export. I can Exit. I am keen on psyching out why I cannot successfuly save a modification to the registry from a Recovery Environment. Rich
    Make sure you select the registry key folder you have temporally created for you to have Unload Hive option.
      My Computer


  10. Posts : 42
    Windows 10 Pro
    Thread Starter
       #10

    I went and used reg.exe, because I've read "If you want to work with the registry from the command line, you can do so using the REG command". I used the add command for this program. I typed out the correct string syntax to add the necessary value name & value. Reg.exe program reported success and I saw the added value in regedit. But no joy with login into windows after a reboot, and on inspection (after the reboot - using regedit) I saw the value name was not added. Weird. One would think, given the facts above, the recovery flash drive I have used, has copied over the registry into X drive, the temporary RAM drive created for recovery purposes. The content of which disappears when the PC is rebooted To my knowlege, (which is meagre) I don't think the RAM drive (X:) is populated with a copy of the registry.
    Last edited by richard2277; 06 Mar 2023 at 18:53.
      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 01:13.
Find Us




Windows 10 Forums