
If the conversion is successful, the return code should be "0," but if the process fails, you may see one of the 11 error codes.

On Windows 10, you can use the MBR2GPT command-line tool to change the partition type from MBR to GTP without reinstalling Windows. Otherwise, the computer will no longer start correctly. If you plan to upgrade Windows 10 to Windows 11 on older hardware that supports UEFI, you must first convert the drive from the legacy MBR partition style to GPT in order to switch system firmware type properly. How to convert MBR to GTP drive on Windows 10 If the "Secure Boot State" is set to Off and "BIOS Mode" to Legacy, then you want to create a backup of your computer, use the following instructions to convert the installation from MBR to GPT, and then continue with the steps to enable Secure Boot. Once you complete the steps, if the "Secure Boot State" is Off and BIOS Mode is UEFI, you can use the steps outlined below to enable a more secure experience and comply with the Windows 11 requirements. Legacy (BIOS) - indicates you can enable the feature, but it will require additional steps.

