How to activate Windows with Command Prompt (CMD)
While you can activate Windows through the Settings app, you also can use Command Prompt to make bulk activation easier
Windows 11 activation typically occurs through the Settings app, but for those managing fleets or preferring the command line, using Command Prompt (CMD) offers a faster alternative. It's crucial to note that Microsoft discontinued the outdated VBScript `slmgr` activation method in late 2026. Relying on unauthorized activators or illicit keys from third-party sources is perilous, as they frequently harbor malware.
Opt for genuine product keys or your volume license server instead. Remember, activating Windows via CMD and KMS servers is typically reserved for mass installations of numerous PCs or a fresh activation on a factory reset system. We won't supply unlicensed activation keys in this guide, only the procedures if you possess a legitimate activation key and server.
If you've purchased a Windows license directly from Microsoft or an official reseller and simply wish to activate it via Command Prompt, the process is straightforward. Here's how:
If you must remove an old key before installing a new one, initiate with the uninstall command. Upon completing the steps above, Windows 10 or Windows 11 will display a message confirming the successful activation. Despite the old VBScript method still functioning on certain older builds or specific enterprise configurations, it is officially deprecated. Here's a reference mapping for those needing it:
Please note, official recommendations strongly suggest obtaining Windows 11 licenses from reputable retailers rather than resorting to activation tricks. CMD activations are generally meant for volume licenses, making them unsuitable for most typical users and only applicable in specific business scenarios. If you have a standard Windows product key, activating it through the Settings app is sufficient.
In cases where online activation falters, you can activate via phone by pressing Windows + R, typing slui 4, and following the prompts. Typical error messages include:
Upon activating Windows, explore the initial steps to take with your new PC for additional helpful advice. To maximize your PC's potential, we've also compiled helpful tips to enhance your productivity.
Written by urgent.news from XDA Developers's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.