Activating Windows 10 via Command Line: A Step-by-Step Guide
In today's digital age, performing tasks using the command line can often be more efficient than navigating through graphical user interfaces. Activating Windows 10 is no exception. This guide will walk you through the process of activating Windows 10 using the command line, ensuring a smooth and hassle-free experience.
Understanding the Command Line Activation Process
Before we dive into the steps, it's essential to understand that activating Windows 10 via the command line involves using the `slmgr.vbs` script. This script is a part of Windows and is used to manage product keys and licenses. We'll be using this script to activate our Windows 10 installation.
Preparing Your System
Before you proceed, ensure that you have the necessary permissions to run the command prompt as an administrator. You'll also need to have your Windows 10 product key ready. If you've purchased a digital license or have a Windows 10 product key, you can find it in your Microsoft account.

Finding Your Product Key
If you've lost your Windows 10 product key, you can retrieve it from your Microsoft account:
- Sign in to your Microsoft account.
- Go to the 'Order history and downloads' section.
- Find your Windows 10 order and click on it.
- Under 'Product keys and digital content', you'll find your Windows 10 product key.
Activating Windows 10 via Command Line
Now that you have your product key ready, let's proceed with the activation process:
Step 1: Open Command Prompt as an Administrator
Press Win + X on your keyboard and select 'Command Prompt (Admin)' or 'Windows PowerShell (Admin)' from the menu.

Step 2: Run the slmgr.vbs Script
In the command prompt, type the following command and press Enter:
slmgr.vbs /ipk YOUR_PRODUCT_KEY
Replace YOUR_PRODUCT_KEY with your actual Windows 10 product key.
Step 3: Confirm the Activation
After running the command, you'll see a message stating that the product key has been installed successfully. To confirm that Windows 10 is activated, run the following command:
slmgr.vbs /xpr
This command will display the current license status of your Windows 10 installation. If your installation is activated, you'll see a message stating 'The machine is permanently activated'.
Troubleshooting Common Issues
If you encounter any issues during the activation process, here are a few troubleshooting steps you can take:
| Issue | Solution |
|---|---|
| Error: 0xC004F074 - The software license could not be activated. This may be due to a network policy or a system configuration. | Try activating Windows 10 in safe mode or disable your antivirus software temporarily. |
| Error: 0xC004F200 - The software license is not valid for this edition of Windows. | Ensure that you're using the correct product key for your Windows 10 edition. |
Conclusion
Activating Windows 10 via the command line can be a quick and efficient process. By following the steps outlined in this guide, you can activate your Windows 10 installation with ease. If you encounter any issues, don't hesitate to refer to the troubleshooting section for assistance.