Hi @ovsp
You don’t need a Datacenter license for a domain controller. A standard license is enough. To add a domain controller window 2022 to an existing domain, the replication system for sysvol must be dfsr not frs and domain and forest function level Must be Windows 2008R2 or higher.
The recommended method to upgrade a domain controller from Windows 2012 r2 to Windows 2022 is to add a additional domain controller under windows 2022 then migrate all fsmo roles, DNS , application settings if they are using the name of the domain controller as ldap server.
You can use a upgrade in place by performing a upgrade to Windows 2016 or 2019 then window 2022 but this method is not recommended.
Please don’t forget to accept helpful answer