This is a common issue because DiskPart is indeed a bit "outdated"; you can't convert to GPT without first wiping the entire disk (using the "clean" command).
Since you're doing this to upgrade to Windows 11, don't just run "clean"! It's safer to use the built-in MBR2GPT tool, which preserves your data. However, I still recommend backing up your important files before proceeding, just in case.
- Right-click and run CMD as an administrator.
- First, validate the disk (assuming your system disk is Disk 0): mbr2gpt /validate /disk:0 /allowFullOS
- Once validated, proceed with the conversion: mbr2gpt /convert /disk:0 /allowFullOS
Note: Immediately after the conversion, reboot into the BIOS, disable CSM, and enable UEFI mode; otherwise, you won't be able to boot into the system.