Thank you for reaching out to us on the Microsoft Q&A platform.
Yes, it is possible to install a Windows Active Directory (AD) server using the free trial of Windows Server 2022. Please follow the documentation to set up the Windows AD Server 2022 procedure. This will include Windows Server 16, Windows Server 19, Windows Server 22, and Windows Server 25 also.
Refer here: Install Active Directory Domain Services
If you have any additional questions, please let us know in the comments. We’re happy to assist further.
If you found the answer helpful, please click on Upvote and Accept Answer. This will help other community members.