Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

You can activate Windows 10 from an elevated Command Prompt with Microsoft’s slmgr.vbs licensing tool. You need a genuine Windows 10 product key, a digital license, or access to an organization’s authorized volume-activation service. CMD cannot generate a license or bypass activation.

The basic process is:

  1. Check the installed Windows edition.
  2. Install your valid product key with /ipk.
  3. Activate online with /ato.
  4. Confirm the result with /xpr or Windows Settings.

Before you start

Make sure the license matches the edition installed on the PC. For example, a Windows 10 Pro key will not normally activate Windows 10 Home, and an Enterprise or Education key is not interchangeable with a Pro key.

You need one of these:

  • A valid 25-character Windows 10 product key.
  • A digital license already associated with the device, preferably linked to your Microsoft account.
  • Access to an organization’s authorized activation system, such as KMS or a MAK-based deployment.

If you do not have a valid license, the commands below will not legitimately activate Windows.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Open Command Prompt as administrator

  1. Open Start.
  2. Type Command Prompt.
  3. Right-click Command Prompt and select Run as administrator.
  4. Select Yes when User Account Control asks for permission.

The commands may fail or return an access-related error if Command Prompt is not elevated.

Check the installed Windows 10 edition

For a quick graphical check, run:

winver

To query the installed edition from the administrator Command Prompt, run:

DISM /Online /Get-CurrentEdition

Look for the Current Edition value. Do not install a key until you have confirmed that it corresponds to your license.

Activate Windows 10 with a product key

1. Install the product key

Replace the sample value with the 25-character key you own:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
cscript.exe %windir%system32slmgr.vbs /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX

The /ipk option installs or replaces the currently installed product key. A successful key installation does not necessarily mean that Windows is activated; it only means that Windows accepted the key for installation.

2. Activate online

Run:

cscript.exe %windir%system32slmgr.vbs /ato

The /ato option tells Windows to attempt online activation using the installed key. The PC must be connected to the internet, and Microsoft’s activation service must be reachable.

3. Restart if necessary

If Windows reports a licensing-service problem after changing the key, restart the computer and run the activation command again. You can also restart the Software Protection service from an elevated Command Prompt:

net stop sppsvc
net start sppsvc

Do not interrupt the service if Windows is in the middle of an activation operation. A full restart is usually the simpler option.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Verify Windows 10 activation from CMD

Use these commands to inspect the license state:

Command What it shows
slmgr /dli Basic license information
slmgr /dlv Detailed license and activation information
slmgr /xpr Whether activation is permanent or has an expiration date

Use the full command form if preferred:

cscript.exe %windir%system32slmgr.vbs /dli
cscript.exe %windir%system32slmgr.vbs /dlv
cscript.exe %windir%system32slmgr.vbs /xpr

For a normal retail or digital-license installation, /xpr should report that Windows is permanently activated. Volume-licensed installations may show an expiration date because they must periodically renew with the organization’s activation infrastructure.

You can also check the graphical status at:

Start > Settings > Update & Security > Activation

Activate Windows 10 with a digital license

A digital license does not require you to enter a product key. Connect the PC to the internet and sign in with the Microsoft account associated with the license. If the same edition of Windows 10 was previously activated on that device, activation will often occur automatically.

After a motherboard replacement or another significant hardware change, open:

Start > Settings > Update & Security > Activation > Troubleshoot

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Sign in when prompted. If the troubleshooter displays an option such as I changed hardware on this device recently, select it and follow the reactivation steps.

Rank #3
Microsoft OEM System Builder | Windоws 11 Pro | Intended use for new systems | Authorized by Microsoft
  • STREAMLIMED AND INTUITIVE UI | Intelligent desktop | Personalize your experience for simpler efficiency | Powerful security built-in and enabled.
  • JOIN YOUR BUSINESS OR SCHOOL DOMAIN for easy access to network files, servers, and printers.
  • OEM IS TO BE INSTALLED ON A NEW PC WITH NO PRIOR VERSION of Windows installed and cannot be transferred to another machine.
  • OEM DOES NOT PROVIDE PRODUCT SUPPORT | To acquire product with Microsoft support, obtain the full packaged “Retail” version.

A digital license for Windows 10 Home does not grant Windows 10 Pro activation. The installed edition and the digital entitlement must match.

Windows 10 Home versus Pro

A Pro product key cannot simply turn an installed Home edition into an activated Pro installation through /ato. If the PC has a valid Pro entitlement but Windows 10 Home is installed, use the Activation page to change the edition or reinstall the correct edition when instructed by Microsoft’s activation tools.

Likewise, do not use an Enterprise, Education, or Pro for Workstations key unless the computer is licensed for that edition. Edition mismatches commonly produce errors such as 0xC004F210 or 0xC004F034.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Activation on an organization-managed PC

Company-owned Windows 10 installations may use volume activation rather than a retail key. The organization must provide the licensing infrastructure; copying a KMS command from the internet is not a legitimate activation method.

For an authorized KMS client, an administrator may install the Windows 10 Pro KMS client setup key and activate it as follows:

cscript.exe %windir%system32slmgr.vbs /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX
cscript.exe %windir%system32slmgr.vbs /ato

This key is a publicly documented KMS client key, not a retail license. It works only when the PC can contact the organization’s properly licensed KMS host. It will not activate a retail Windows installation through Microsoft’s public activation servers.

Rank #4
Ralix Reinstall DVD For Windows 10 All Versions 32/64 bit. Recover, Restore, Repair Boot Disc, and Install to Factory Default will Fix PC Easy!
  • Repair, Recover, Restore, and Reinstall any version of Windows. Professional, Home Premium, Ultimate, and Basic
  • Disc will work on any type of computer (make or model). Some examples include Dell, HP, Samsung, Acer, Sony, and all others. Creates a new copy of Windows! DOES NOT INCLUDE product key
  • Windows not starting up? NT Loader missing? Repair Windows Boot Manager (BOOTMGR), NTLDR, and so much more with this DVD
  • Step by Step instructions on how to fix Windows 10 issues. Whether it be broken, viruses, running slow, or corrupted our disc will serve you well
  • Please remember that this DVD does not come with a KEY CODE. You will need to obtain a Windows Key Code in order to use the reinstall option

KMS discovery normally uses the organization’s DNS record _vlmcs._tcp. If the administrator gives you a specific KMS host, it can be configured with:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
cscript.exe %windir%system32slmgr.vbs /skms kms.example.com:1688
cscript.exe %windir%system32slmgr.vbs /ato

Replace kms.example.com with the real internal host. KMS normally uses TCP port 1688. To remove a manually configured host and return to automatic discovery, run:

cscript.exe %windir%system32slmgr.vbs /ckms

KMS activation is renewable rather than permanently independent of the organization. A laptop that stays away from the company network can eventually report that its license will expire.

Common Windows 10 activation errors

Error or message Likely cause What to check
0xC004F034 The key is invalid or does not match the Windows version or edition. Confirm the key and installed edition.
0xC004F210 The key or digital license belongs to another edition. Compare Home, Pro, Enterprise, and Education editions.
0xC004F213 No product key was found on the device. Install your valid key with /ipk, or sign in to the account holding the digital license.
0xC004F211 Windows detected a significant hardware change. Run the Activation troubleshooter and use the hardware-change reactivation option.
0xC004FC03 The PC is offline or a firewall is blocking activation. Check internet access, proxy settings, and firewall rules.
0x8007267C Windows cannot reach an activation service. Retry later and check DNS, network access, and organization VPN requirements.
0xC004C008, 0xC004C770, or 0x803FA071 The key has been used on too many devices or conflicts with its license terms. Contact the seller or Microsoft Support; changing the command will not fix an exhausted license.
“Your Windows license will expire soon” The installation may use volume licensing and cannot renew. Connect to the organization’s network or contact its IT department.

Commands that do not activate Windows

slmgr /rearm does not permanently activate Windows. It resets an allowed licensing grace-period state; it is not a replacement for a product key, digital license, MAK, or authorized KMS service.

Similarly, installing a KMS client key with /ipk is not proof of activation. Always run /ato and then verify with /xpr or the Activation page.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

FAQ

Can I activate Windows 10 permanently using CMD?

Yes, if you have a valid Windows 10 license. Install the matching product key with slmgr.vbs /ipk, run slmgr.vbs /ato, and verify the result with slmgr.vbs /xpr. CMD cannot permanently activate an unlicensed copy.

Best Value
9th & Vine Compatible with Windows 10 Home 32/64 DVD with Key Install, Recover, Restore, Repair DVD Plus Drivers Pack and Open Office 2023, 3PK
  • Win 10 Home 32/64 Bit Install Repair Recover & Restore DVD with key, plus Open Office 2023 & Drivers pack DVD. Win 10 Home can used to re-install the operating system or upgrade from Win 7 Home Premium & it is a great program to repair boot manager or black / blue screen or recover or restore your operating system

What is the CMD command to activate Windows 10?

From an administrator Command Prompt, use cscript.exe %windir%system32slmgr.vbs /ato. This activates the key that is already installed; it does not supply a license by itself.

Why does /ipk work but Windows remain unactivated?

/ipk only installs the product key. Run /ato afterward, then check the error message and confirm that the key matches the installed edition and has not exceeded its usage limit.

Can a Windows 10 Home key activate Windows 10 Pro?

No. The key and installed edition must match. A Home license does not provide Pro activation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Is the Windows 10 KMS key a free activation key?

No. A KMS client key is intended for computers covered by an organization’s volume license. It requires the organization’s KMS host and does not activate a retail installation through Microsoft’s public servers.

How do I check whether Windows 10 is activated?

Run cscript.exe %windir%system32slmgr.vbs /xpr. You can also open Start > Settings > Update & Security > Activation.

The Bottom Line

Use an administrator Command Prompt, install a genuine matching key with slmgr.vbs /ipk, activate with slmgr.vbs /ato, and confirm the result with slmgr.vbs /xpr. If you have a digital license, sign in with its Microsoft account instead. KMS commands are only for properly licensed organization-managed PCs.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.