Run slmgr /skms kms.yourcompany.com:1688 then slmgr /ato . If it fails, check slmgr /dli to see if the “KMS machine name” field is populated.
slmgr.vbs (Software License Management script) is the backdoor into Windows’ activation heart. While it looks like a relic from the Windows XP era, it remains the most powerful tool for IT administrators, power users, and enthusiasts to diagnose, modify, and repair Windows licensing. slmgr commands
To most users, Windows activation is a pop-up window with a "Change Product Key" button. But beneath that simple interface lies a complex licensing system known as Software Licensing Manager (SLMgr) . Run slmgr /skms kms