The KMS server can easily be self-hosted with py-kms:
1
| docker run -d --restart always -p 1688:1688 pykmsorg/py-kms
|
Find the KMS product key of your Windows version here
With administrative shell, run the following commands:
1 2 3 4 5 6 7
| slmgr /upk
slmgr /ipk <kms-product-key>
slmgr /skms <your-kms-server>
slmgr /ato
|
The Windows should be activated now