Hello AkramMokhtar,
Good day! I'm John Dev a Windows user like you and I'll be happy to assist you today.
I want to apologize that this is just a consumer forum. Due to the scope of your question involving Windows Server 2012 and 2019, I recommend posting your query on Microsoft Site Q&A which is a technical community platform where most of the members were IT professionals that would greatly help you with the issue. They have IT experts there that can assist you better especially about Windows Servers, Active Directory, Domains, Group Policy configurations, etc.
Windows Server 2012
https://docs.microsoft.com/en-us/answers/topics...
Windows Server 2019
https://docs.microsoft.com/en-us/answers/topics...
Kind regards,
John DeV
Independent Advisor