Boot Configuration Utility throws Installation Failed 1005/0x46

Reference:
https://support.storagecraft.com/s/article/Boot-Configuration-Utility-throws-Installation-Failed-1005-0x46?language=en_US&ui-force-components-controllers-recordGlobalValueProvider.RecordGvp.getRecord=1&r=6


Jun 28, 2018•Troubleshooting

Resolution
  1. Create the StorageCraft Recovery Environment for Windows (WinPE) x64 ISO. For instructions here is a link to the documentation.
  2. Below is a list of requirements for the EFI enabled UEFI boot process to complete.
  • Disk must be initialized as GPT
  • Disk must contain an EFI system partition (ESP) on the same disk as the bootable partition
  • The EFI partition must contain a bootloader (BCD)
  • The bootloader must point to the correct path in order to direct the load of Winload.efi
  1. Change your boot order as needed to boot to the WinPE ISO.
  2. Select Tools, then select Boot Configuration utility (BCU).
  3. If Auto Repair results in the following output, deselect the check box to  Hide Advanced Options, then select Diagnose: 
BCD Compatible Windows Installation. Installing File,X:\windows\ShadowProtectPE\BCD-Template,Y:\EFI\Microsoft\Boot\BCD. Installation Failed,1005. Installing File,Y:\EFI\Microsoft\Boot\bootmgr.efi,Y:\bootmgr.efi. Installation Failed,1005. Installing File,Y:\EFI\Microsoft\Boot\bootmgfw.efi,Y:\EFI\Boot\bootx64.efi. Installation Failed,1005. X:\windows\system32\bcdedit.exe /store Y:\EFI\Microsoft\Boot\BCD /set {bootmgr} device partition=\Device\Harddisk0\Partition1 The boot configuration data store could not be opened. The system cannot find the file specified. X:\windows\system32\bcdedit.exe /store Y:\EFI\Microsoft\Boot\BCD /set {bootmgr} path \efi\microsoft\boot\bootmgfw.efi The boot configuration data store could not be opened. The system cannot find the file specified. X:\windows\system32\bcdedit.exe /store Y:\EFI\Microsoft\Boot\BCD /set {memdiag} device partition=\Device\Harddisk0\Partition1 The boot configuration data store could not be opened. The system cannot find the file specified. X:\windows\system32\bcdedit.exe /store Y:\EFI\Microsoft\Boot\BCD /deletevalue {bootmgr} displayorder The boot configuration data store could not be opened. The system cannot find the file specified. X:\windows\system32\bcdedit.exe /store Y:\EFI\Microsoft\Boot\BCD /set {default} device partition=C: The boot configuration data store could not be opened. The system cannot find the file specified. X:\windows\system32\bcdedit.exe /store Y:\EFI\Microsoft\Boot\BCD /set {default} osdevice partition=C: The boot configuration data store could not be opened. The system cannot find the file specified. X:\windows\system32\bcdedit.exe /store Y:\EFI\Microsoft\Boot\BCD /set {default} path \windows\system32\winload.efi The boot configuration data store could not be opened. The system cannot find the file specified. X:\windows\system32\bcdedit.exe /store Y:\EFI\Microsoft\Boot\BCD /set {bootmgr} displayorder {default} The boot configuration data store could not be opened. The system cannot find the file specified. X:\windows\system32\bcdedit.exe /store Y:\EFI\Microsoft\Boot\BCD /set {bootmgr} default {default} The boot configuration data store could not be opened. The system cannot find the file specified. X:\windows\system32\bcdedit.exe /store Y:\EFI\Microsoft\Boot\BCD /set {fwbootmgr} displayorder {bootmgr} /addfirst The boot configuration data store could not be opened. The system cannot find the file specified.
								

If auto repair returns 0x44 review the Boot Configuration Utility Throws 0x44 article.

  1. If diagnose results in "0x46" review the disk map:
GPT winPE 0x46 broken
  1. In this example, the disk length appears to be correctly configured. There are 2 partitions before the operating systems partition. Now we bring our attention to the disk maps table of partitions on disk. below the ESP is underlined in red, the File System is supposed to be FAT32:
Altered GPT winPE 0x46 Disk Map
  1. Right click on the EFI System Partition, then select Format.
Format
  1. Within the Format Volume window, select FAT32 for the File System. mark the Perform a quick format check box, then select OK:
REX GPT 0x44 format fat32
  1. Check to ensure the disk map being edited looks as follows:
REX GPT 0x44 Disk Map correct
  1. Enter the Boot configuration utility, target the bootable partition, then select Auto Repair and review the log:
BCD Compatible Windows Installation. Installing File,X:\windows\ShadowProtectPE\BCD-Template,Y:\EFI\Microsoft\Boot\BCD. Installing File,Y:\EFI\Microsoft\Boot\bootmgr.efi,Y:\bootmgr.efi. Installing File,Y:\EFI\Microsoft\Boot\bootmgfw.efi,Y:\EFI\Boot\bootx64.efi. X:\windows\system32\bcdedit.exe /store Y:\EFI\Microsoft\Boot\BCD /set {bootmgr} device partition=\Device\Harddisk0\Partition1 The operation completed successfully. X:\windows\system32\bcdedit.exe /store Y:\EFI\Microsoft\Boot\BCD /set {bootmgr} path \efi\microsoft\boot\bootmgfw.efi The operation completed successfully. X:\windows\system32\bcdedit.exe /store Y:\EFI\Microsoft\Boot\BCD /set {memdiag} device partition=\Device\Harddisk0\Partition1 The operation completed successfully. X:\windows\system32\bcdedit.exe /store Y:\EFI\Microsoft\Boot\BCD /deletevalue {bootmgr} displayorder The operation completed successfully. X:\windows\system32\bcdedit.exe /store Y:\EFI\Microsoft\Boot\BCD /set {default} device partition=C: The operation completed successfully. X:\windows\system32\bcdedit.exe /store Y:\EFI\Microsoft\Boot\BCD /set {default} osdevice partition=C: The operation completed successfully. X:\windows\system32\bcdedit.exe /store Y:\EFI\Microsoft\Boot\BCD /set {default} path \windows\system32\winload.efi The operation completed successfully. X:\windows\system32\bcdedit.exe /store Y:\EFI\Microsoft\Boot\BCD /set {bootmgr} displayorder {default} The operation completed successfully. X:\windows\system32\bcdedit.exe /store Y:\EFI\Microsoft\Boot\BCD /set {bootmgr} default {default} The operation completed successfully. X:\windows\system32\bcdedit.exe /store Y:\EFI\Microsoft\Boot\BCD /set {fwbootmgr} displayorder {bootmgr} /addfirst An error occurred while attempting to reference the specified entry. The system cannot find the file specified.
								
  1. Review the top pane of the BCU. If the partition is marked as bootable, disconnect the WinPE ISO and attempt to restart in to windows:
REX GPT 0x44 auto repair
  1. If the issue is not resolved please continue troubleshooting with Windows Advanced Startup Troubleshooting for UEFI.

Additional Information:

Please bare in mind that a restore to different hardware will still need to be dealt with using the How To: Remove Hidden (Non Present) Devices after an HIR article as a guide.