Bdehdcfg command in Windows
The bdehdcfg command prepares a hard disk with the partitions needed for disk encryption with BitLocker. Most installations of Windows 7 will not need to use this tool because setting up BitLocker includes the ability to prepare and partition the required drive.
Warning:
There is a conflict with the installation of Group Policy Deny access to fixed drives not protected by BitLocker in Computer Configuration Administrative TemplatesWindows ComponentsBitLocker Drive EncryptionFixed Data Drives .
If Bdehdcfg is run on the computer when this policy setting is enabled, you may experience the following problems:
- If you try to minimize the drive and create a 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 tried to use unallocated space to create a system drive, a rough 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 try to merge an existing drive to the system drive, the tool will not copy the required boot file to 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 executed, a hard drive cannot be repartitioned because the drive is already protected. If you are upgrading your computer from the old Windows version and those computers are configured with a partition, you should create the required BitLocker system partition before applying policy settings to computers.
For an example of how to use this command, see Example .
Syntax
merge}] [–newdriveletter] [-size] [-quiet]
Parameters
ParametersDescription BDdddff: driveinfo Displays drive letters, total size, maximum free space and partitioning characteristics of partitions on the specified drive. Only valid partitions are listed. Unallocated space is not listed if 4 primary or extended partitions already exist. Bdehdcfg: target Determines which part of the drive is used as the system drive and makes that part work. Bdehdcfg: newdriveletter Assign a new drive letter to the drive section used as the system drive. Bdehdcfg: size Determine the size of the system partition, when the new system drive is being created. Bdehdcfg: quiet Prevent the display of all actions and errors in the command line interface and instruct Bdehdcfg to use the "Yes" answer for any Yes / No prompt that may occur during drive preparation. Next disk. Bdehdcfg: restart Guides the computer to restart after the drive preparation process ends. /? Show help at the command prompt.For example
The following example describes Bdehdcfg being used with the default drive to create a 500MB system partition. Since no drive letter is specified, the new system partition will not have a drive letter.
bdehdcfg -target default -size 500
The following example describes Bdehdcfg being used with the default drive to create the system partition (P :), which has a default size of 300MB in the unallocated space on the drive. The tool will not prompt the user to enter any additional information, nor will it show any errors. After the system drive has been created, the computer will automatically restart.
bdehdcfg -target unallocated –newdriveletter P: -quiet -restart
See more:
- Bitsadmin create command in Windows
- Bitsadmin complete command in Windows
- Bitsadmin cancel command in Windows
You should read it
May be interested
- Instructions for using Command Promptdeep in windows is a command-line world that is obscure. in this article, we will show you how to solve errors and make your computer more secure.
- Rd command in Windowsthe rd command helps delete a directory
- Cmd command in Windowsthe cmd command starts a new version of the command interpreter, cmd.exe. if used without parameters, cmd will display copyright information and the version of the operating system.
- How to use the command history function in Command Promptcommand prompt is an extremely familiar command for anyone using windows operating system. besides, a lot of current software also supports the command line to perform actions on the command prompt window, instead of on the screen.
- The sfc command in Windows(applies to windows server (semi-annual channel), windows server 2016, windows server 2012 r2, windows server 2012)
- Reg command copy in Windowsto copy an entry to the location specified on the local pc or the remote computer we will use the reg copy command. to learn more about how to use the reg copy command, you can track the syntax, explain the command parameters and the example tipsmake.com has compiled below.
- Fc command in Windowsthe fc command compares two files or a collection of files and displays the differences between them.
- The echo command in Windowsthe echo command displays the message or turns on / off the command repeat feature. if used without parameters, the echo command will display the current echo setting.
- Xcopy command in Windowsthe xcopy command is a command prompt command used to copy one or more files or folders from one location to another. with many options and the ability to copy entire directories, the xcopy command is similar to, but much more powerful, than the copy command.
- The cacls command in Windowsthe cacls command displays or modifies an arbitrary access control list (dacl) on the specified file. the command applies to windows server (semi-annual channel), windows server 2016, windows server 2012 r2, windows server 2012.