To deploy your own KMS server, you need to install the Volume Activation Services role on any of the hosts running Windows Server 2022, 2019, or 2016. Install Volume Activation Services Role on Windows Server GVLK Keys for Windows Server 2022, 2019 and Windows 10 LTSC.
Updates to Extend KMS Support for Windows Server 20.Activating KMS Server on Windows Server 2022/2019.Install Volume Activation Services Role on Windows Server.