How to activate Windows with Command Prompt (CMD) (2024)

Windows 11: Everything you need to know

How to activate Windows with Command Prompt (CMD) (1)

How to activate Windows with Command Prompt (CMD) (2)

By João Carrasqueira & Arif Bacchus

Updated

Thread 6

Your changes have been saved

Email is sent

Email has already been sent

You’ve reached your account maximum for followed topics.

Manage Your List

Link copied to clipboard

Sign in to your XDA account

How to activate Windows with Command Prompt (CMD) (3)

This article is part of a directory: Windows 11 installation and activation: Everything you need to know

Table of contents

Usually, you'd activate Windows 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're installing Windows on a new PC, of course, since most laptops will come with a Windows license out of the box.

✕ Remove Ads

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.

Related

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

Get rid of the bloatware

3

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 the Start menu and search for Command Prompt or CMD, then choose Run as administrator.
    How to activate Windows with Command Prompt (CMD) (5)

    Alternatively, press Windows + X or right-click the Start menu icon, and choose Terminal (Admin) or PowerShell (Admin) from the list.

  2. Type the following command, replacing yourproductkey in the command line with the actual product key that you have.
    slmgr /ipk yourproductkey
    How to activate Windows with Command Prompt (CMD) (6)
  3. Press Enter to confirm.
  4. Click OK on the Windows Script Host popup.
  5. Enter the command below to set your KMS activation server, replacing serveraddress in the command below with the actual address of the server you want to use for activation. Here's how to find your server information if needed.
    slmgr /skms serveraddress
    How to activate Windows with Command Prompt (CMD) (7)
  6. Press Enter and click OK.
  7. Finally, type the following command:
    slmgr /ato
    How to activate Windows with Command Prompt (CMD) (8)
  8. Press Enter 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.

✕ Remove Ads

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.

Related

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 the first 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 some optimizations you can make to boost your productivity.

✕ Remove Ads

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
  • Windows
  • Windows 11: Everything you need to know
  • Microsoft

Your changes have been saved

Email is sent

Email has already been sent

You’ve reached your account maximum for followed topics.

Manage Your List

Follow

Followed

Follow with Notifications

Follow

Unfollow

Readers like you help support XDA. When you make a purchase using links on our site, we may earn an affiliate commission. Read More.

How to activate Windows with Command Prompt (CMD) (2024)
Top Articles
Latest Posts
Recommended Articles
Article information

Author: Otha Schamberger

Last Updated:

Views: 5896

Rating: 4.4 / 5 (55 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Otha Schamberger

Birthday: 1999-08-15

Address: Suite 490 606 Hammes Ferry, Carterhaven, IL 62290

Phone: +8557035444877

Job: Forward IT Agent

Hobby: Fishing, Flying, Jewelry making, Digital arts, Sand art, Parkour, tabletop games

Introduction: My name is Otha Schamberger, I am a vast, good, healthy, cheerful, energetic, gorgeous, magnificent person who loves writing and wants to share my knowledge and understanding with you.