You don't need a repacked ISO to test the server for a long period. Microsoft allows you to extend the trial legally:
Instead of relying on a customized installation image, consider the following alternatives: windows server 2022 preactivated iso repack
: Unofficial modifications can lead to system crashes, corrupted files, and inability to receive critical security updates. You don't need a repacked ISO to test
While "preactivated" Windows Server 2022 ISO repacks may seem convenient, they carry significant security risks and legal implications windows server 2022 preactivated iso repack
Here is the most critical section of this article. You do NOT need to risk a repack. Microsoft offers several legal ways to get Windows Server 2022 for free or cheap.