If you replaced windows 10 with windows server 2022 then you'll need to boot the windows 10 install media delete / recreate partition, and clean install it.
https://www.microsoft.com/en-us/software-download/windows10
--please don't forget to upvote
and Accept as answer
if the reply is helpful--