Or changing the KMS server to a "customised" one that accepts all activation attempts. Much more secure than giving root to kmspico.
Find a proper key for your edition here: https://docs.microsoft.com/en-us/windows-server/get-started/...
slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
slmgr /skms kms.digiboy.ir # just an example of many KMS servers that exist
slmgr /ato