Pick your Windows edition and KMS server, then follow the step-by-step activation guide.
Edition: —
Tip: if a command reports slmgr is not recognized, run it as
cscript //nologo C:\Windows\System32\slmgr.vbs followed by the same switches.
TCP port 1688 is open in your firewall.cscript //nologo C:\Windows\System32\slmgr.vbs /ato. Also confirm Command Prompt is running as Administrator.