You can view your Windows activation status and product key using built-in commands, but you cannot use a command to activate Windows with a new key—activation is done through Settings. The most useful command is slmgr /dlv, which shows detailed activation and license information, and slmgr /xpr, which tells you whether Windows is permanently activated. To actually enter a new product key, use Settings > System > Activation > Change product key. The steps below cover both checking and activating, and they work on Windows 10 and Windows 11; menu labels can differ slightly by version and region.

What You'll Need

  • A Windows 10 or Windows 11 PC.
  • Administrator rights (you'll need to open an elevated Command Prompt).
  • Your 25-character product key, if you plan to change it.
  • An internet connection for online activation.

Step-by-Step

  1. Open an elevated Command Prompt. Click Start, type cmd, right-click “Command Prompt,” and choose “Run as administrator.” Accept the User Account Control prompt. On Windows 11, you can also right-click the Start button and select “Terminal (Admin)” or “Command Prompt (Admin).”
  2. Check your activation status. In the elevated window, type slmgr /xpr and press Enter. A dialog box will tell you whether Windows is permanently activated or still in notification mode.
  3. View detailed license information. Type slmgr /dlv and press Enter. This opens a window with your activation ID, license status, and partial product key (the last five characters). Use this to confirm which edition and channel you have.
  4. See the full product key (optional). Type slmgr /dli for a shorter summary. To display the full 25-character key, use slmgr /dli or a third-party tool; Windows does not show the full key by default for security reasons. If you need the full key, use a reputable key-finder utility only on your own PC.
  5. Activate with a new key via Settings. Open Settings > System > Activation (Windows 11) or Settings > Update & Security > Activation (Windows 10). Click “Change product key,” enter your 25-character key, and follow the prompts. Windows will attempt online activation automatically.
  6. Activate by phone (if online activation fails). In the Activation settings page, select “Show more” or “Activate by phone” if available, then follow the on-screen instructions. This option may not appear in all regions or editions.

Common Mistakes

  • Running commands without administrator rights. slmgr commands require an elevated prompt; otherwise they may fail silently or show an error.
  • Typing the key into Command Prompt. There is no supported slmgr command to directly activate with a new key in one step—use Settings > Activation instead.
  • Confusing product key with activation ID. The activation ID shown by slmgr /dlv is not the product key; don't try to use it as one.
  • Using third-party “activators.” These are unofficial and often malicious; stick to official Microsoft methods.
  • Entering a key for the wrong edition. A Windows 10 Home key won't activate Windows 11 Pro, for example. Match the key to your installed edition.

Tips

  • Run slmgr /xpr first—it's the quickest way to see if activation is already permanent.
  • If you're reinstalling Windows, you usually don't need to re-enter the key; digital licenses are linked to your Microsoft account or hardware.
  • Keep your product key in a safe place; you may need it if you change hardware significantly.
  • Use slmgr /dlv to check the license channel (Retail, OEM, Volume) before contacting support.

Troubleshooting

If slmgr commands return an error, first make sure you're in an elevated Command Prompt. If activation fails with an error code, note the code and check Microsoft's official activation troubleshooting page. Common fixes include running the Activation troubleshooter (Settings > System > Activation > Troubleshoot), checking your internet connection, and ensuring the date and time are correct. If you recently changed hardware, you may need to use the “I changed hardware on this device recently” link in the Activation settings (requires signing in with your Microsoft account). If the troubleshooter can't help, contact Microsoft Support with your error code and license details. Do not use unofficial activation tools—they can compromise your PC.

Frequently Asked Questions

Can I activate Windows with a command using my product key?

No. There is no supported single command to activate with a new key. Use Settings > System > Activation > Change product key.

What does slmgr /xpr do?

It shows whether Windows is permanently activated or in a notification state, with an expiration date if applicable.

How do I find my product key using Command Prompt?

Windows does not display the full product key via built-in commands for security. slmgr /dlv shows only the last five characters. For the full key, use a reputable third-party tool on your own PC.

Why does slmgr say “not recognized”?

You're likely not in an elevated Command Prompt, or the command was mistyped. Open Command Prompt as administrator and try again.

Can I use these commands on Windows 7 or 8?

The slmgr commands exist on older versions, but this guide targets Windows 10 and 11. Menu paths differ on older systems.

Is it safe to use third-party key finders?

Only if you trust the source and run it on your own device. Built-in commands are safer but don't reveal the full key.