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

Windows 10 can be activated from an elevated Command Prompt with the built-in slmgr.vbs tool. The normal sequence is to install a genuine product key with /ipk, attempt online activation with /ato, and then verify the result with /xpr or /dlv.

These commands do not generate a license, bypass activation, or turn a volume-license key into a retail license. You need either a valid 25-character product key or a digital license already associated with the computer.

Before activating Windows 10 from CMD

Have one of these legitimate activation methods available:

  • A valid 25-character Windows product key, formatted like XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
  • A digital license associated with the computer, sometimes linked to your Microsoft account

The product key must match the installed edition. For example, a Windows 10 Home key will not activate Windows 10 Pro, Enterprise, or Education.

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

Also note that Windows 10 version 22H2 was the final general release. Support for standard Windows 10 Home, Pro, Enterprise, and Education editions ended on October 14, 2025. LTSC editions have separate support schedules.

1. Check your Windows 10 edition

First confirm which edition is installed:

  1. Press Windows + R.
  2. Type winver.
  3. Press Enter.

The About Windows dialog shows the edition, version, and build. You can also open it by selecting Start, typing winver, and selecting the result.

For a more detailed edition check, open Settings > Update & Security > Activation. The edition appears near the top of the page, along with the current activation status.

2. Open Command Prompt as an administrator

Installing or replacing a product key requires an elevated Command Prompt.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Select Start.
  2. Type Command Prompt.
  3. Right-click Command Prompt.
  4. Select Run as administrator.
  5. Select Yes at the User Account Control prompt.

The window title should say Administrator: Command Prompt. If it does not, close it and repeat the process with the administrator option.

3. Check the current activation status

Before changing anything, inspect the installed license:

slmgr.vbs /dlv

This opens a Windows Script Host dialog containing detailed licensing information, including the license status, activation ID, and license channel.

Useful status commands include:

Command Purpose
slmgr.vbs /dli Displays a shorter license summary
slmgr.vbs /dlv Displays detailed licensing information
slmgr.vbs /dlv all Displays detailed information for all applicable installed products
slmgr.vbs /xpr Shows whether activation is permanent or has an expiration date

/xpr is particularly useful on computers using volume activation. Retail and MAK activations are normally perpetual, while KMS clients periodically renew their activation.

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

4. Install a genuine product key

Replace the example key below with your own valid key:

slmgr.vbs /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX

The /ipk switch installs the key and checks whether it is valid for the installed Windows edition. If another key is already installed, a valid replacement key replaces it.

A successful installation does not always mean that Windows is activated. It installs the license key; the next command requests activation from the appropriate activation service.

5. Attempt online activation

Run:

slmgr.vbs /ato

The /ato switch tells Windows to attempt online activation. On a retail installation, Windows contacts Microsoft’s activation service. On a properly configured volume-license installation, it attempts activation through the organization’s KMS or Active Directory-based activation infrastructure.

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.

If activation succeeds, Windows Script Host displays a confirmation message. If it fails, the dialog normally includes an error code that can identify the problem.

6. Verify the result

Check the activation state again:

slmgr.vbs /xpr

For more information, use:

slmgr.vbs /dlv

You can also verify activation in the graphical interface:

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.
  1. Open Start > Settings.
  2. Select Update & Security.
  3. Select Activation.

Typical successful messages include Windows is activated with a digital license or Windows is activated with a digital license linked to your Microsoft account.

Complete CMD activation sequence

For a genuine key that matches the installed edition, the basic sequence is:

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.
slmgr.vbs /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
slmgr.vbs /ato
slmgr.vbs /xpr

Run each command separately and read the result before continuing. Do not post your real product key in screenshots, forums, or support requests.

What if the PC has a digital license?

A product key may not be necessary if the computer already has a digital license. This commonly happens after reinstalling the same Windows edition on the same device.

  1. Install the same edition that was previously licensed.
  2. When Windows Setup asks for a key, select I don’t have a product key.
  3. Connect the computer to the internet after installation.
  4. Sign in with the Microsoft account associated with the digital license, if applicable.

Windows should reactivate automatically when the installed edition matches the device’s digital license. The slmgr.vbs commands can inspect the state, but they cannot create or transfer a digital license.

KMS commands: only for organizational computers

KMS commands are appropriate only when an organization has a legitimate volume-licensing deployment. They are not a retail activation method.

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

An organization’s administrator may configure a KMS client with:

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
slmgr.vbs /skms kms-host.example.com:1688
slmgr.vbs /ato

KMS normally uses TCP port 1688. If a manually configured KMS host should be removed and DNS autodiscovery restored, run:

slmgr.vbs /ckms

KMS clients normally need to renew activation periodically, using a 180-day activation interval. On a company-managed computer, ask IT for the correct KMS host rather than copying a server address from an online guide.

Why public KMS keys do not activate personal Windows installations

Microsoft publishes Generic Volume License Keys, or GVLKs, for organizations. A GVLK is a client setup key, not a standalone retail license. It requires a valid organization’s KMS host or Active Directory-based activation service.

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

Installing a publicly listed GVLK and running slmgr.vbs /ato will not legitimately activate a personal retail installation. Scripts that connect a computer to an unauthorized KMS server, modify licensing files, or disable licensing services are not valid activation procedures and can create security and licensing problems.

Common activation errors

Error Likely cause What to do
0xC004F050 Invalid key or key for another edition Check the key and confirm that it matches Home, Pro, Enterprise, or the installed edition.
0xC004F212, 0xC004F210, 0xC004E016 Edition mismatch Install the edition covered by the license or use a matching key.
0xC004C003 Key blocked or used beyond its license terms Contact the retailer, reseller, or device manufacturer.
0x803F7001 No valid license found Enter a valid key, connect to the internet, or use the device’s associated digital license.
0xC004FC03 or 0x8007267C Network, firewall, or activation-server problem Check internet access and firewall settings, then retry slmgr.vbs /ato.
0xC004F211 or 0xC004F213 Major hardware change Use the Activation troubleshooter and the Microsoft-account reactivation path.

Optional phone activation

If online activation is unavailable and your edition supports it, type SLUI 04 in the taskbar search box and follow the displayed instructions. Phone activation is not available for Windows 10 Pro for Workstations or Windows 10 Pro EDU; those editions must activate over the internet.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Commands not to use as activation fixes

slmgr.vbs /rearm

/rearm resets licensing timers. It does not supply a product key or permanently activate Windows.

slmgr.vbs /upk

/upk uninstalls the current product key. After a restart, Windows can become unlicensed until another valid key is installed. Do not run it casually as a general troubleshooting step.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
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

Sources

FAQ

Can CMD activate Windows 10 for free?

No. CMD can install an existing valid product key and request activation, but it cannot create a license or bypass Microsoft’s activation system.

What is the correct Windows 10 activation command?

Use slmgr.vbs /ipk YOUR-PRODUCT-KEY to install a genuine key, then run slmgr.vbs /ato to attempt online activation.

Do I need to run Command Prompt as administrator?

Yes, use an elevated Command Prompt when installing or replacing a key with /ipk.

Why does 0xC004F050 appear?

The key is usually invalid or does not match the installed Windows edition. Confirm whether the computer is running Home, Pro, Enterprise, or another edition.

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

Can a Windows 10 digital license be activated with CMD?

A digital license normally activates automatically when the same edition is installed on the licensed device and the computer connects to the internet. CMD can inspect activation, but it cannot create a digital license.

Will a Windows 10 KMS key activate my home PC?

No. Generic Volume License Keys require a legitimate organization’s KMS host or Active Directory-based activation service. They are not retail licenses.

The Bottom Line

The legitimate CMD method is straightforward: check the edition, open an elevated Command Prompt, run slmgr.vbs /ipk with a matching product key, run slmgr.vbs /ato, and verify with slmgr.vbs /xpr. If you have a digital license, reinstall the matching edition and let Windows reactivate online instead. No command can replace a missing or invalid license.

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.