DISM /online /Set-Edition:ServerStandard /ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /AcceptEula
It usually takes a while for that to run and it’s common for it to sit at 10% for quite a while. Leave it alone and let it finish on its own.
Ref: https://community.spiceworks.com/t/windows-server-2022-wont-activate/961322