none
bdehdcfg error codes

    Question

  • Hello,

    We are maintaining the fully automated PC installation system for a big company (Win 7, 8, and 10). For that, we have a complex system of vbs and hta scripts doing the installation. One of the things done is bitlocker preparation. We sometimes get different errors from bitlocker, which we cant replicate manually. Only thing we know are the return codes as we have to do -quiet as it is running in non-interactive mode. 

    The question is

    Is there a full table of error codes which the bdehdcfg could ever return, with an explanation of the error code?

    If not, what do the error codes -1063256022 and -1063256062 mean

    Friday, March 24, 2017 4:57 PM

All replies

  • Hi, 

    There's no such list on my side, but I noticed on known conflict, please check if you get the related policy configured in your environment: 

    There is a known conflict with the Deny write access to fixed drives not protected by BitLocker Group Policy setting located in Computer Configuration\Administrative Templates\Windows Components\BitLocker Drive Encryption\Fixed Data Drives.

    If Bdehdcfg is run on a computer when this policy setting is enabled, you may encounter the following issues:

    • If you attempted to shrink the drive and create the system drive, the drive size will be successfully reduced and a raw partition will be created. However, the raw partition will not be formatted. The following error message is displayed: "The new active Drive cannot be formatted. You may need to manually prepare your drive for BitLocker."

    • If you attempted to use unallocated space to create the system drive, a raw partition will be created. However, the raw partition will not be formatted. The following error message is displayed: "The new active Drive cannot be formatted. You may need to manually prepare your drive for BitLocker."

    • If you attempted to merge an existing drive into the system drive, the tool will fail to copy the required boot file onto the target drive to create the system drive. The following error message is displayed: "BitLocker setup failed to copy boot files. You may need to manually prepare your drive for BitLocker."

    If this policy setting is being enforced, a hard drive cannot be repartitioned because the drive is protected. If you are upgrading computers in your organization from a previous version of Windows and those computers were configured with a single partition, you should create the required BitLocker system partition before applying the policy setting to the computers.


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Monday, March 27, 2017 6:52 AM
    Moderator