having trouble fixing error 0xc0000017 (advanced startup)

vidzxro 0 Reputation points
2025-07-06T02:12:17.8366667+00:00

Hi so, i tried booting into (unpaid, currently) windows 10's command prompt via advanced start up and got the error 0xc0000017. upon googling how to fix it and finding this  post, i completed the task but halfway through had some trouble with command prompt (code text below as i cannot attach a screenshot) i haven't exactly tried much but my next bet was to just replace my RAM

C:\Windows\system32>bcdedit /enum all 

Windows Memory Tester  
---------------------  
identifier              {memdiag}  
device                  partition=C:  
path                    \boot\memtest.exe  
description             Windows Memory Diagnostic  
locale                  en-GB  
inherit                 {globalsettings}  
badmemoryaccess         Yes 
RAM Defects  
-----------  
identifier              {badmemory} 
 
Global Settings 
---------------  
identifier              {globalsettings}  
inherit                 {dbgsettings}  
                      {emssettings}  
                      {badmemory} 

C:\Windows\system32>bcdedit /deletevalue {badmemory} badmemorylist  
An error occurred while attempting to delete the specified data element.  
Element not found. 
Windows for home | Windows 10 | Performance and system failures
0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. Adrian_A_ 700 Reputation points Independent Advisor
    2025-07-06T03:00:47.6766667+00:00

    Thanks for bringing this up. Let’s walk through the real root of the issue, and no, you shouldn’t replace your RAM just yet.

    Try to run this command instead,

    bcdedit /delete {badmemory}

    If that works, restart and retry Advanced Startup. Now if it throws any error move to the next step.

    The next step will require to use of a bootable USB.

    Create a Windows 10 USB using the Media Creation Tool on another PC

    Boot into the USB

    Click Repair your computer > Troubleshoot > Advanced options > Command Prompt

    Run these commands

    bootrec /fixmbr

    bootrec /fixboot

    bootrec /scanos

    bootrec /rebuildbcd

    Restart and try again. If still failing,

    bcdedit /enum {globalsettings}

    If you see an inherent line that includes {badmemory}, run this command

    bcdedit /set {globalsettings} inherit {dbgsettings} {emssettings}

    That tells Windows to stop inheriting {badmemory}.

    As a last resort, if it’s still acting up and you can't access recovery

    Boot into your Windows USB again > Command Prompt

    Try to rename the BCD store and rebuild

    ren C:\boot\bcd bcd.old

    bcdboot C:\Windows /s C: /f ALL

    Let me know which step you’re on or if you get stuck.


  2. Adrian_A_ 700 Reputation points Independent Advisor
    2025-07-07T02:32:52.4866667+00:00

    I understand the situation. I'd like to confirm,

    • Can you boot into normal Windows 10, or does the error happen before that?
    • Can you access the Advanced Startup menu, such as the blue screen with options like Troubleshoot, Startup Repair, etc.?
    • Can you open Command Prompt from Safe Mode or Recovery?

    Let me know, we can try some repairs without needing a USB. However, if this is still failing, I would recommend borrowing one or purchasing a USB drive that we can use to repair your computer.


  3. Adrian_A_ 700 Reputation points Independent Advisor
    2025-07-08T04:35:10.8433333+00:00

    Thanks for confirming, Vidzxro. Since you can boot into Windows normally we can try some troubleshooting to fix it.

    Step 1) If the those commands I have provided didn't work, try this in command prompt as administrator from the normal desktop.

    bcdedit /delete {badmemory}

    If it says successful, restart your PC and test if Advanced Startup’s Command Prompt now opens.

    Step 2) If badmemory is still listed under globalsettings, try this command

    bcdedit /set {globalsettings} inherit {dbgsettings} {emssettings}

    Restart and test again.

    Step 3) If this fails again, we can use your 7GB USB. Please make sure to backup your data from the USB since we need to reformat it. Once done, here’s what you can do

    Plug the USB into a working PC.

    Download the Media Creation Tool from Microsoft

    https://www.microsoft.com/software-download/windows10

    Use it to create a bootable Windows 10 USB.

    On your affected PC, boot into that USB:

    Choose Repair your computer

    Go to Troubleshoot > Advanced Options > Command Prompt

    Then run these commands in order

    bootrec /fixmbr

    bootrec /fixboot

    bootrec /scanos

    bootrec /rebuildbcd

    If any of those commands fail (especially /fixboot), let me know the error so I can guide you further.

    If everything else fails, run this in the recovery Command Prompt

    ren C:\boot\bcd bcd.old

    bcdboot C:\Windows /s C: /f ALL

    This renames the current BCD store and creates a new one from scratch.

    This normally works from other users I helped with and including with my own setup. Let me know how far you get with this.


  4. Adrian_A_ 700 Reputation points Independent Advisor
    2025-07-09T02:07:02.4133333+00:00

    Got it! Thanks for the update. We can try some walkarounds to fix this.

    Step 1) From the recovery Command Prompt, type

    diskpart

    And then

    list disk

    Identify your main drive. It is usually disk 0, then type

    select disk 0

    Make sure to enter the right disk number of your Windows. And then enter this command

    list partition

    Look for the EFI System Partition and usually around 100–300MB, FAT32. Select it and enter

    select partition (number)

    Assign a temporary drive letter

    assign letter=S:

    exit

    Step 2) Once done, we can rebuild it.

    Run the following

    bcdboot C:\Windows /s S: /f UEFI

    If your Windows drive isn’t C:, adjust accordingly.

    This command copies the necessary boot files to the EFI partition and rebuilds the bootloader from scratch.

    After that’s done. Restart your PC and remove the USB when the logo shows up.

    Then try going back into Advanced Startup and see if the Command Prompt opens properly this time.

    Let me know how it goes or if you run into anything unclear while checking the partitions.

    0 comments No comments

  5. vidzxro 0 Reputation points
    2025-07-09T15:20:59.9966667+00:00

    in an attempt to follow your instructions, i struggled to find the EFI System partition within the disks. im not sure if i inputted a wrong command, but i reattempted multiple times and to no avail. heres the partitions it shows me.

    PXL_20250709_151630112-min

    (the disks are in number order: 0, 1, 2)

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.