All this is assuming you can still boot into Windows 11/10 in a regular way. If you cannot, the only way is to use a bootable USB drive. You can then use the advanced recovery. Reset Windows Format ...
While there are multiple ways to hide drive partitions, in this post, we are specifically sharing how to do it from the Command Prompt. We are using the Diskpart tool, which also offers a command-line ...