Before we proceed, let's clear the air. If you see a YouTube video promising a "Windows Server 2022 permanent activator," you are looking at malware. These tools (often called KMSpico, HWIDGEN, or Microsoft Toolkit) are classified as hack tools.
DISM /online /Set-Edition:ServerStandard /ProductKey:VDYBN-27WPP-V4HQT-DXY8Y-BF6FM /AcceptEula Use code with caution. For Windows Server 2022 Datacenter: powershell