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

There are a couple of straightforward ways to activate Windows 11 or Windows 10. You can either use the Settings app or buy a software license from the Microsoft Store. However, if you're in an enterprise environment or live on the alternative side of technology, 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.

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.

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) (2)

    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) (3)
  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) (4)
  6. Press Enter and click OK.
  7. Finally, type the following command:
    slmgr /ato
    How to activate Windows with Command Prompt (CMD) (5)
  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.

Activate Windows 11 using a product key

Not everyone prefers the Command Prompt app to activate Windows. After all, it involves executing commands in a way that many may not prefer. If you are among them, there is an easy way to activate your laptop or PC using the Settings menu. Follow the steps below.

  1. Press the Windows + I keys to open Settings.
  2. Select System from the sidebar and open the Activation menu.
    How to activate Windows with Command Prompt (CMD) (6)
  3. If you are facing issues with activating Windows, select Troubleshoot and follow the on-screen instructions. The system will attempt to resolve the problem for you in no time.
  4. You can also expand Upgrade your edition of Windows. Select Change.
    How to activate Windows with Command Prompt (CMD) (7)
  5. Enter your 25-digit product key.
    How to activate Windows with Command Prompt (CMD) (8)

Glance over our dedicated guide below to help you activate Windows in no time. If you are still having issues activating Windows though, you'll need to call Microsoft.

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

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

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. Once you activate Windows, check out the first things to do with your Windows PC for more useful tips.

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

FAQs

Can you activate Windows with 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. Open the Start menu and search for Command Prompt or CMD, then choose Run as administrator.

How to get Windows activation key using cmd? ›

Enter "cmd" in the search box on the taskbar and open Command Prompt. Enter the command wmic path SoftwareLicensingService get OA3xOriginalProductKey and press Enter. The text displayed in the format of "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX" is the product key.

How to activate Windows Office using cmd? ›

Method 1: Using my command line
  1. Step 1.1: Open cmd program with administrator rights.
  2. Step 1.2: Get into the Office directory in cmd.
  3. Step 1.3: Install Office 2021 volume license.
  4. Step 1.4: Activate your Office using the KMS key.
  5. Here is all the text you will get in the command prompt window.

Is it legal to activate Windows with cmd? ›

Yes, If you are downloading and installing Windows 10 from Microsoft's ISO website or if you are activating Windows 10 for free using the Command Prompt or a batch file, it is entirely legal. Even if you use product keys from third-party software to activate Windows, it's legal, too.

How to activate Windows manually? ›

Here's how to activate Windows:
  1. Select Start > Settings > System > Activation .
  2. If you have a valid product key, select Change product key, and then enter the 25-character product key. If you don't have a valid product key, select Go to Microsoft Store, and follow the instructions to buy a digital license for Windows.

How do I activate Windows without a product key? ›

If you are installing Windows on a new device or motherboard for the first time and you do not have a product key, select I don't have a product key during the installation setup screens. When prompted, enter the Microsoft account you want to use to purchase a digital license for this device.

How to check Windows activation with cmd? ›

To check the activation status of Windows 11 through Command Prompt (or PowerShell), use these steps:
  1. Open Start.
  2. Search for Command Prompt (or PowerShell) and click the top result to open the app.
  3. Type the following command and press Enter: slmgr /xpr.
  4. Confirm whether Windows 11 is activated:
Jan 11, 2024

How to activate Windows Server key cmd? ›

Open the command prompt, type slmgr /ipk followed by the 25-digit KMS host product key and press Enter. Then, use slmgr /ato to activate the host key.

What is the shortcut key for Windows activation? ›

Method 2: Activate Windows on Windows 10 Over the Phone

Step 1: Press Windows + R to open Run Window. Now, enter the command “slui 4” to open the settings.

How to permanently activate Windows 10 free with cmd? ›

How to permanently activate Windows 10 free with cmd?
  1. Open Command Prompt as administrator.
  2. Type the following command and press Enter: slmgr /ipk yourlicensekey (replace yourlicensekey with a generic Windows 10 Pro product key).
  3. Next, type slmgr /skms kms8.msguides.com to connect to the KMS server.
Sep 3, 2024

How to activate Office without product key? ›

You activate Microsoft 365 by signing in with a Microsoft account. If we detect your Microsoft account, we'll show it on this screen. After you sign in, your product is added to your Microsoft account, so that you can reinstall it later, or manage your new subscription, without a product key.

How to activate admin account Windows cmd? ›

Using a command prompt
  1. Open “Run” with [Windows] + [R].
  2. Type “cmd” and press [Ctrl] + [Shift] + [Enter].
  3. Type “net user administrator /active:yes”.
  4. The administrator account is now activated.
  5. To deactivate: “net user administrator /active:no”.
Jan 25, 2022

Can I activate Windows using cmd? ›

How to Activate Windows 10/11 with CMD
  1. You have to open the command prompt on your system first. Then, click and start and type "CMD". Now, run it as administrator.
  2. Type the following command. slmgr /ipk. slmgr /skms kms.xspace.in. Slmgr /ato. Now press enter. This command will activate your Windows 10/11.
Jul 30, 2024

How to get Windows activation key from cmd? ›

Here's how to do it:
  1. Access Command Prompt: Press the Windows key + S to open the search bar. Type “cmd” into the search bar. ...
  2. Enter the command: Once the Command Prompt window is open, type or copy and paste the following command: wmic path softwareLicensingService get OA3xOriginalProductKey. ...
  3. View your product key:
Aug 1, 2024

How to fix activate windows? ›

If you're unable to activate Windows 10, the Activation troubleshooter could help. To use the troubleshooter, select Start > Settings > Update & Security > Activation , and then select Troubleshoot .

Can I start Windows from Command Prompt? ›

How to start Windows from Command Prompt
  1. Restart your PC while holding down the Shift key. ...
  2. Click “Troubleshoot” and then “Advanced options.” Select “Startup Settings,” then press “Restart.”
  3. Upon restarting, you'll see a list of options.
Jun 26, 2024

How to activate Windows Server license using cmd? ›

You can do this by opening an elevated command prompt and entering the following command: slmgr. vbs /ipk <product key> Replace <product key> with your actual product key. Once you've entered the command, press Enter and wait for the confirmation message.

How to enable Windows account using cmd? ›

Enable: Search for cmd in the taskbar search field > select Run as Administrator. Type net user administrator /active:yes, and press enter. Wait for the confirmation and restart. To disable, open the command prompt as an administrator and enter net user administrator /active:no.

Top Articles
The 8 Best Savings Accounts in Ireland [2024 ]
What is the main purpose of the statement of financial position?
Walmart Sedona Az
Best Insulation for 2x4 and 2x6 Walls
Bismarck Mandan Mugshots
Page 6258 – Christianity Today
Byrn Funeral Home Mayfield Kentucky Obituaries
Autorcm
Dfw To Anywhere Google Flights
20 Inspiring Interiors That Display Brilliant Bathroom Lighting Ideas
Fox News 10 Mobile Al
Bmp 202 Blue Round Pill
Fnv Turbo
Play Billiards Near Me
Isabella Schmeichel
Tooquteforyou Skype
Automation Personnel Services W2
Culver's Flavor Of The Day Ann Arbor
Tamara Lapman
Energy Healing Conference Utah
Pollen Count Los Altos
The Boogeyman Showtimes Near Century 20 Daly City And Xd
Siriusxm Patriot Schedule
Rs3 F2P Money Making
Does Shell Gas Station Sell Pregnancy Tests
Jesus Calling June 21St
Adams County 911 Live Incident
Madden 24 Repack
Scratch Off Remaining Prizes Nc
Www. Lowe's.com
Methodist Laborworkx
Crowes Pasture Tide Chart
Reforge Update – Which Reforges Are The Best? – Hypixel Skyblock - Sirknightj
Walgreens Pharmacy 71St Lewis Tulsa
0.0Gomovies
Vinyl record sales continue resurgence
My Gluten Free Vegetable Spring Rolls Recipe (low FODMAP, dairy free)
3 Days in the Tri-Cities
Noga Funeral Home Obituaries
Ozembique
Ats Service Plays
Howard P. Rawlings Guaranteed Access (GA) Grant
Look Who Got Busted Gregg County
Sarah Button Leaks
Prinzessin Lillifee Muffins Rezepte | Chefkoch
Tuw Academic Calendar
Mature Lesbian Seduces Young Lesbian
Craigslist Pets Pueblo
Top 10 Soap2Day Alternatives That Work Today [2024 List] | X-VPN
The Voice Season 22 Wiki
Violent Night Showtimes Near Mjr Universal Grand Cinema 16
Latest Posts
Article information

Author: Rueben Jacobs

Last Updated:

Views: 5917

Rating: 4.7 / 5 (57 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Rueben Jacobs

Birthday: 1999-03-14

Address: 951 Caterina Walk, Schambergerside, CA 67667-0896

Phone: +6881806848632

Job: Internal Education Planner

Hobby: Candle making, Cabaret, Poi, Gambling, Rock climbing, Wood carving, Computer programming

Introduction: My name is Rueben Jacobs, I am a cooperative, beautiful, kind, comfortable, glamorous, open, magnificent person who loves writing and wants to share my knowledge and understanding with you.