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 ...
One of the things that has always been lacking is good all-in-one documentation on the various Windows console commands and how to use them. Yeah, we always had the "help" command in the Command ...