Movatterモバイル変換


[0]ホーム

URL:


XDA logo

How to activate Windows with Command Prompt (CMD)

Command Prompt in Windows 11
4
4
By João Carrasqueira & Arif Bacchus
Updated 
Sign in to yourXDA account
follow
Follow
followed
Followed
Thread7
Here is a fact-based summary of the story contents:
Try something different:
This article is part of a directory: Windows 11 installation and activation: Everything you need to know

Usually, you'd activateWindows 11 (or 10) using the Settings app to enter the product key. However, if you're in an enterprise environment and you have a specific type of activation key, you can also use Command Prompt to activate a Windows license using a KMS (key management services) activation key. You'll only need to do this if you'reinstalling Windows on a new PC, of course, sincemost laptops will come with a Windows license out of the box.

Keep in mind that it's always best to use an official Windows product key for activation. Activation of Windows through Command Prompt and KMS servers is usually only intended for mass volume activations of multiple PCs, or fresh activation on factory reset PCs. We won't provide unlicensed activation keys in this guide, only the steps to follow if you have a legitimate activation key and server already.

Laptop running Windows
Tired of Windows 11 being filled with junk? Here's how to remove it

Get rid of the bloatware

4

Activate Windows using Command Prompt

If you have bought a Windows license directly from Microsoft or an official reseller, and you just want to activate it using Command Prompt rather than the Settings app, you can do that relatively easily. Here's how it works.

  1. Open theStart menu and search forCommand Prompt orCMD, then chooseRun as administrator.
    Screenshot of Windows 11 search showing results for Command Prompt with the Run as administrator option highlighted

    Alternatively, pressWindows + X or right-click the Start menu icon, and chooseTerminal (Admin) orPowerShell (Admin) from the list.

  2. Type the following command, replacingyourproductkey in the command line with the actual product key that you have.
    slmgr /ipk yourproductkey
    Screenshot of command prompt with a command to set a product activation key in Windows 11
  3. PressEnterto confirm.
  4. ClickOKon the Windows Script Host popup.
  5. Enter the command below to set your KMS activation server, replacingserveraddress in the command below with the actual address of the server you want to use for activation. Here's how tofind your server information if needed.
    slmgr /skms serveraddress
    Screenshow of Command Prompt with a command to set a KMS activation server on Windows 11
  6. PressEnterand clickOK.
  7. Finally, type the following command:
    slmgr /ato
    Screenshot of Command Prompt with a command to activate Windows 11
  8. PressEnter to activate your copy of Windows.

After you follow the steps above, you should see Windows 10 or Windows 11 prompting you with a note that the product has been activated successfully.

Activate Windows license in seconds

As always, we strongly recommend obtaining Windows 11 licenses from a reputable retailer rather than resorting to activation tricks. Command Prompt activations are usually only for volume licenses, so most typical users shouldn't be using this method, and it really only makes sense for certain business scenarios. If you have a regular product key for Windows, you can activate it using the Settings app.

Windows 11 activation page
How to activate Windows

If you made a change to your PC or find that Windows isn't properly activated, all it takes is a few click to properly activate your OS

Once you activate Windows, check out thefirst things to do with your Windows PC for more useful tips. If you want to make the most out of your PC, we've also compiled someoptimizations you can make to boost your productivity.

Previous

How to activate Windows

All

Windows 11 installation and activation: Everything you need to know

Next

How to upgrade from Windows 11 Home to Pro
Follow
Followed
Share
FacebookXWhatsAppThreadsBlueskyLinkedInRedditFlipboardCopy linkEmail
royal-kludge-s98-featured-1
This is the best mechanical keyboard for work and it's discounted for Black Friday
nvidia-geforce-rtx-5060-review-02
These are the best Black Friday GPU deals for 1080p, 1440p, and 4K
Motorola Sound MA1 featured
Save a whopping 61% off the only Google-authorised wireless Android Auto bridge this Black Friday
See More

Read Next

Windows 11 installation and activation: Everything you need to know
Windows 11 activation page
How to activate Windows
Windows 11 (option 4)
How to upgrade from Windows 11 Home to Pro
Windows 11 Home vs Pro
Windows 11 Home vs Windows 11 Pro: What's the difference?

[8]ページ先頭

©2009-2025 Movatter.jp