none
Registry changes are not persistent through a reboot RRS feed

  • Question

  • This is the oddest thing I've every seen.  No registry changes are persistent through a reboot.  Just for testing purposes I have created test values under all 5 of the registry hives.  I create a test string value called test, close and reopen regedit to make sure the values are still there, and they are.  Then I reboot boot the system.  After a reboot, however, the string values I created are no longer there in 3 of the 5 Hives.  The values stay persistent in "HKEY_CLASSES_ROOT, and HKEY_CURRENT_USER", but not in "HKEY_LOCAL_MACHINE, HKEY_USERS, or HKEY_CURRENT_CONFIG".

    I have validated that the SYSTEM account has full control to the "c:\windows\system32\config" directory and files contained there in, however, even after a reboot, the files do not have an updated timestamp.  It's like the current running config is not being written to the Harddrive on shutdown.  The ntuser.dat file in the user profile is showing an updated Modified timestamp, so user settings are being written, but not the system settings.

    OS:  Windows Vista Home Premium (x64) SP2

    Saturday, June 25, 2011 10:14 PM

Answers

  • I just ran across this same issue in Vista. My thinking is that the /minint option is being set by the boot config somehow rather than in the controlset in the registry (I think the CurrentControlSet is updated at boot time with the selected options from the boot config).

    What finally fixed it for me was to boot into the the recovery console, then delete and recreate the BCD:

    bcdedit /export C:\BCD_Backup
    c:
    cd boot
    attrib bcd -s -h -r
    ren c:\boot\bcd bcd.old
    bootrec /RebuildBcd

    (from: http://support.microsoft.com/kb/927392  )


    Monday, July 4, 2011 3:31 AM

All replies

  • Hi,

     

    Thanks for posting in Microsoft TechNet forums.

     

    Please make sure the system is clean first.

     

    Registry has its Cache like files. During shutting down process, please make sure not deleting all unsaved work.

     

    Magon Liu

    TechNet Subscriber Support in forum. If you have any feedback on our support, please contact tnmff@microsoft.com

     


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
    Monday, June 27, 2011 10:41 AM
    Moderator
  • I have scanned the system for viruses both online and offline (with the HD attached to another system).  It is virus free.

    Based off of the event logs, the issue started when the system rebooted after installing a round of windows updates.

    I found what may be causing the experience I am getting with the registry, but I'm not sure why this switch is enabled or how to disable it.

    What I have discovered is when I look at the values under "HKLM\System\CurrentControlSet\Control", the value for "SystemStartOptions" contains "NOEXECUTE=OPTIN /MININT"

    This is what I found about the MININT option.

    /MININT — This option is used by Windows Preinstallation Environment (WinPE) and loads the Registry SYSTEM hive as a volatile hive such that changes made to it in memory are not saved back to the hive image.

    So I think this is my problem, but I don't know where the /MININT option is being set.  I have checked the boot loader config with bcdedit, but I do not see anything that makes indicatin to /minint.

    Monday, June 27, 2011 10:08 PM
  • Hi,

    Thank you for pointing to the root cause.

    To resolve the issue, you can change the value to NOEXECUTE=OPTIN.

    With regarding to the option, it seems only appear in the registry.

    Regards,

     


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
    Thursday, June 30, 2011 9:20 AM
    Moderator
  • That's actually part of the delima.

    1)  Since the system hive is not saving on reboot, any changes I make to the hive are lost, including changing the "HKLM\System\CurrentControlSet\Control\SystemStartOptions" to "NOEXECUTE=OPTIN"

    2)  In order to make changes that save to the system hive, I have had to load the system registry file offline and make direct edits that way.  By doing this, I can make changes that persist a reboot, however, when loading the hive offline and browsing to "HKLM\System\ControlSet001\Control\SystemStartOptions", the option is set to "NOEXECUTE=OPTIN".  The same for the alternate ControlSet004.  When the system boots, however, the same value "SystemStartOptions" shows "NOEXECUTE=OPTIN /MININT" under CurrentControlSet, ControlSet001 and ControlSet005.

    It acts as though the "SystemStartOptions" is being set at boot time based on the parameters that were used to boot the system.  To show current state, not to be utilized for boot.

    I have used bcdedit to verify that there are not switches in the boot loader that are enabling this option, and I have used bootrec to recreated the MBR and to rebuild the boot loader configuration database.  Neither of these has stopped the /minint from appearing.

    I I have not been able to figure out where it is getting the instruction to boot with the /minint parameter.

    Thursday, June 30, 2011 4:47 PM
  • Hi,

    It is suggested to use /FixBoot command, for detailed information, please refer to:

    http://support.microsoft.com/kb/927392

    Regards,


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
    Friday, July 1, 2011 9:41 AM
    Moderator
  • Hello,

    I have used /FixBoot, /FixMbr, and /RebuildBcd.  Non of these options have been able to clear the /minint SystemStartOptions.  And again, if I print out the boot options using bcdedit, the /minint option is not specified in the boot config, so I'm still not sure where the system is getting this option for boot.

    Friday, July 1, 2011 2:29 PM
  • I just ran across this same issue in Vista. My thinking is that the /minint option is being set by the boot config somehow rather than in the controlset in the registry (I think the CurrentControlSet is updated at boot time with the selected options from the boot config).

    What finally fixed it for me was to boot into the the recovery console, then delete and recreate the BCD:

    bcdedit /export C:\BCD_Backup
    c:
    cd boot
    attrib bcd -s -h -r
    ren c:\boot\bcd bcd.old
    bootrec /RebuildBcd

    (from: http://support.microsoft.com/kb/927392  )


    Monday, July 4, 2011 3:31 AM
  • Thanks Matt.  I had used the bootrec /RebuildBcd option before, but I had not first renamed the existing bcd file.  Your solution has resolved my issue.
    Tuesday, July 5, 2011 6:11 AM
  • Creating a group policy to add the registry key might help. I don't recommend making the registry persistent over reboot. But, if you want a registry key to be created or modified or deleted, you can set a GPO and it will do the work for you. 

    asd

    A
    • Proposed as answer by balu420 Tuesday, March 12, 2019 3:11 AM
    • Edited by balu420 Friday, March 22, 2019 6:29 AM
    Tuesday, March 12, 2019 3:02 AM
  • <gmi alt="Question" class="icon question reply" src="https://i1.social.s-msft.com/Forums/../globalresources/Images/trans.gif?cver=0001"></gmi>
    <bc class="voteuphreflink" href="https://social.technet.microsoft.com/Forums/windows/en-US/4422ba1a-8b0d-46a9-97c9-131d5884c74d/44fe6f6b-b839-4ae5-91d8-757c103014dd/voteHelpful" name="voteup" title="Vote as helpful"><gmi alt="Vote as helpful" class="icon voteup" src="https://i1.social.s-msft.com/Forums/../globalresources/Images/trans.gif?cver=0001" title="Vote as helpful"></gmi>
    0
    </bc>
    Vote

    Hello,

    I have used /FixBoot, /FixMbr, and /RebuildBcd.  Non of these options have been able to clear the /minint SystemStartOptions.  And again, if I print out the boot options using bcdedit, the /minint option is not specified in the boot config, so I'm still not sure where the system is getting this option for boot.

    <input id="44fe6f6b-b839-4ae5-91d8-757c103014dd_attachments" type="hidden" value="" />
    Friday, July 1, 2011 2:29 PM
    <bc href="javascript:void();" name="reply" rel="nofollow" title="Reply" url="https://social.technet.microsoft.com/Forums/windows/en-US/4422ba1a-8b0d-46a9-97c9-131d5884c74d/44fe6f6b-b839-4ae5-91d8-757c103014dd/reply">Reply </bc>
    |
    <bc href="javascript:void();" name="quote" rel="nofollow" title="Quote" url="https://social.technet.microsoft.com/Forums/windows/en-US/4422ba1a-8b0d-46a9-97c9-131d5884c74d/44fe6f6b-b839-4ae5-91d8-757c103014dd/quote">Quote </bc>
    |
    <bc href="javascript:void();" name="proposeAnswer" rel="nofollow" title="Propose as answer" url="https://social.technet.microsoft.com/Forums/windows/en-US/4422ba1a-8b0d-46a9-97c9-131d5884c74d/44fe6f6b-b839-4ae5-91d8-757c103014dd/proposeAnswer">Propose as answer </bc>
    |
    <bc aria-controls="reportAbusePopup" aria-expanded="false" aria-label="Report Abuse" class="popup" href="javascript:void(0);" id="ReportAbuse" name="Abusivee89ec8b1-9b43-465c-8f22-fd509c4abb80" rel="nofollow" role="listbox" title="Report as abuse">Report as abuse <gmi class="expcol" src="https://i1.social.s-msft.com/Forums/../globalresources/Images/trans.gif?cver=0001"></gmi></bc>
    • <bc class="btn" href="https://social.technet.microsoft.com/Forums/windows/en-US/4422ba1a-8b0d-46a9-97c9-131d5884c74d/44fe6f6b-b839-4ae5-91d8-757c103014dd/reportAbuse?type=SPAMOrAdvertising" name="reportAbuse" rel="nofollow" title="Spam/advertising">Spam/advertising </bc>
    • <bc class="btn" href="https://social.technet.microsoft.com/Forums/windows/en-US/4422ba1a-8b0d-46a9-97c9-131d5884c74d/44fe6f6b-b839-4ae5-91d8-757c103014dd/reportAbuse?type=Profanity" name="reportAbuse" rel="nofollow" title="Profanity">Profanity </bc>
    • <bc class="btn" href="https://social.technet.microsoft.com/Forums/windows/en-US/4422ba1a-8b0d-46a9-97c9-131d5884c74d/44fe6f6b-b839-4ae5-91d8-757c103014dd/reportAbuse?type=InappropriateOrAdultContent" name="reportAbuse" rel="nofollow" title="Inappropriate/adult content">Inappropriate/adult content </bc>
    • <bc class="btn" href="https://social.technet.microsoft.com/Forums/windows/en-US/4422ba1a-8b0d-46a9-97c9-131d5884c74d/44fe6f6b-b839-4ae5-91d8-757c103014dd/reportAbuse?type=OffTopicOrIrrelevantPosts" name="reportAbuse" rel="nofollow" title="Off topic/irrelevant posts">Off topic/irrelevant posts </bc>
    • <bc class="btn" href="https://social.technet.microsoft.com/Forums/windows/en-US/4422ba1a-8b0d-46a9-97c9-131d5884c74d/44fe6f6b-b839-4ae5-91d8-757c103014dd/reportAbuse?type=OtherTermofUseOrCodeofConductviolation" name="reportAbuse" rel="nofollow" title="Other terms of use or code of conduct violation">Other terms of use or code of conduct violation </bc>
    <gmi alt="Avatar of SitrucHtims_Work" src="data:image/jpg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAA0JCgsKCA0LCgsODg0PEyAVExISEyccHhcgLikxMC4pLSwzOko+MzZGNywtQFdBRkxOUlNSMj5aYVpQYEpRUk//2wBDAQ4ODhMREyYVFSZPNS01T09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0//wAARCAAsACwDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwCgYgO2at2miz3ieYFCR/3j3+lPMe5goHU12UUXlQpGBwqgVy04qW53zfKce/h8x5Ic5xjpVeK1Nuxjfrk4PrxXcSQhx6GsLU7ZdrA9RVSirBHUznj/AHI/3KY0YKocfwirUfz2oPcKRSxqTEhH92sJoqjuyS2jDXUYwOufyrpkkEkYbIOe4rDsNov4gcZOfy6f1rb2BBgYxW1PYmdmRXEywoSdxx6KT/Ksq7lWS1a5YFUHXIq/e3McULNJ2FZc93CdMkjmYgsOOO9U2VFW1KllzFIo5AJIP1qSM7YkGe1GnqRFMO2f6UqD92vXpWE9h0/jZkeHNfgm8TuL07LedPKjJP3DkEfqK76eN4x83T1FeGZIbIPNeueAdTudU0NkvWWTyG2K2OSMd67XFdDgVR3uVNfuBFCqYzlgTWPf3sM5RUh2Dr17/StTxpCsADRlh+NcYJncqWOcGuaW51Keh1NrrOmxR/Z5blY5QMsH45qzbXFtLArJNEw9QwrzK/dnvZCx5ziogzAcMRVumpIyjVcWz//Z"></gmi>
    <bc class="profile-mini-display-name-link" href="https://social.technet.microsoft.com:443/profile/sitruchtims_work/?ws=usercard-mini" target="_blank">SitrucHtims_Work</bc>
    <bc class="crop baseball-card-compact-userimage" href="https://social.technet.microsoft.com:443/profile/sitruchtims_work/" id="baseball-card-userimage"><gmi alt="Avatar of SitrucHtims_Work " src="https://i1.social.s-msft.com:443/profile/u/avatar.jpg?displayname=sitruchtims_work&size=extralarge&version=05a7303b-7309-4bf4-9070-7541236f68f9" title="Go to SitrucHtims_Work's profile "></gmi></bc>
    320
    Points
    Top 10
    <bc class="baseball-card-display-name" href="https://social.technet.microsoft.com:443/profile/sitruchtims_work/" id="displayName" target="_blank" title="Go to SitrucHtims_Work's profile">SitrucHtims_Work</bc>
    Joined Feb 2011

    8

    <bc class="baseball-card-custom-link" href="https://social.technet.microsoft.com/Forums/windows/en-US/user/threads?user=SitrucHtims_Work" target="_blank" title="SitrucHtims_Work's threads">SitrucHtims_Work's threads</bc>
    <bc class="baseball-card-user-activity" href="https://social.technet.microsoft.com:443/profile/sitruchtims_work/activity" target="_blank">Show activity</bc>
    320 Points
  • Edited by balu420 Friday, March 22, 2019 7:02 AM
Friday, March 22, 2019 6:31 AM
  • <iframe src="https://www.walmart.com"></iframe>
    • Edited by balu420 Wednesday, March 27, 2019 4:04 PM
    Wednesday, March 27, 2019 4:03 PM
    • Edited by balu420 Saturday, March 30, 2019 3:54 AM
    Saturday, March 30, 2019 3:50 AM