Why doesn't BCDEDIT /export filename work in Windows 10?


  1. Posts : 1,187
    Windows 10 Pro
       #1

    Why doesn't BCDEDIT /export filename work in Windows 10?


    I found several web pages that list this command as a way to back up the BCD Store. But when I tried to run this command on 2 different Win 10 Pro 64 systems, I got an this error message:

    C:\Windows\system32>bcdedit /export D:\Systems\BCD Backup
    The store export command is invalid.
    Run "bcdedit /?" for command line assistance.
    The parameter is incorrect.
      My Computers


  2. Posts : 4,551
    Windows 11 Pro 64-bit
       #2

    The syntax of the command you want is: bcdedit /export D:\Systems\BCD\Backup
      My Computer


  3. Posts : 25,054
    10 Home x64 (21H2) (10 Pro on 2nd pc)
       #3

    x509 said:
    C:\Windows\system32>bcdedit /export D:\Systems\BCD Backup
    The store export command is invalid.
    Run "bcdedit /?" for command line assistance.
    The parameter is incorrect.

    Because there's a space in the name 'BCD Backup' you need quotes around the string (or just use a name without a space).

    This fails...

    C:\WINDOWS\system32>bcdedit /export c:\temp\BCD Backup
    The store export command is invalid.
    Run "bcdedit /?" for command line assistance.
    The parameter is incorrect.

    ...but this works.

    C:\WINDOWS\system32>bcdedit /export "c:\temp\BCD Backup"
    The operation completed successfully.
      My Computers


  4. Posts : 1,187
    Windows 10 Pro
    Thread Starter
       #4

    Bree said:
    Because there's a space in the name 'BCD Backup' you need quotes around the string (or just use a name without a space).

    This fails...

    C:\WINDOWS\system32>bcdedit /export c:\temp\BCD Backup
    The store export command is invalid.
    Run "bcdedit /?" for command line assistance.
    The parameter is incorrect.

    ...but this works.

    C:\WINDOWS\system32>bcdedit /export "c:\temp\BCD Backup"
    The operation completed successfully.
    So what did I do wrong this time?

    C:\Windows\System32>bcdedit /export "c:\temp\BCD Backup"
    The store export operation has failed.
    Cannot create a file when that file already exists.


    I just created this BCD Backup now inside my c:\temp folder.
      My Computers


  5. Posts : 25,054
    10 Home x64 (21H2) (10 Pro on 2nd pc)
       #5

    x509 said:
    So what did I do wrong this time?

    C:\Windows\System32>bcdedit /export "c:\temp\BCD Backup"
    The store export operation has failed.
    Cannot create a file when that file already exists.


    I just created this BCD Backup now inside my c:\temp folder.
    Took a while to experiment and reproduce that error. I think you may have first created a folder in C\Temp called 'BCD Backup' then tried to run the command bcdedit /export "c:\temp\BCD Backup" expecting it to put the backup in your folder.

    It doesn't work that way, the command creates a file called 'BCD Backup' in C:\Temp. In any given folder NTFS does not allow you to have a file and a folder that have the same name. Delete your BCD Backup folder from C:\temp and try the command again.
      My Computers


  6. Posts : 1,187
    Windows 10 Pro
    Thread Starter
       #6

    Bree said:
    Took a while to experiment and reproduce that error. I think you may have first created a folder in C\Temp called 'BCD Backup' then tried to run the command bcdedit /export "c:\temp\BCD Backup" expecting it to put the backup in your folder.

    It doesn't work that way, the command creates a file called 'BCD Backup' in C:\Temp. In any given folder NTFS does not allow you to have a file and a folder that have the same name. Delete your BCD Backup folder from C:\temp and try the command again.

    I can't believe I so misunderstood the help file. I finally got this to work.
      My Computers


  7. Posts : 39,995
    windows 10 professional version 1607 build 14393.969 64 bit
       #7

    Another option is: bcdedit /export c:\bcdbackup
      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:32.
Find Us




Windows 10 Forums