<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Matthew J. Moore</title>
    <description>The latest articles on DEV Community by Matthew J. Moore (@mattmoore_tech).</description>
    <link>https://dev.to/mattmoore_tech</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4226760%2F9772e51d-235d-404b-ab20-e8592c548fb5.png</url>
      <title>DEV Community: Matthew J. Moore</title>
      <link>https://dev.to/mattmoore_tech</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mattmoore_tech"/>
    <language>en</language>
    <item>
      <title>The AI's answer was correct. Why did it still take 10 comments to fix his problem?</title>
      <dc:creator>Matthew J. Moore</dc:creator>
      <pubDate>Fri, 20 Nov 2026 17:17:23 +0000</pubDate>
      <link>https://dev.to/mattmoore_tech/the-ais-answer-was-correct-why-did-it-still-take-10-comments-to-fix-his-problem-4ede</link>
      <guid>https://dev.to/mattmoore_tech/the-ais-answer-was-correct-why-did-it-still-take-10-comments-to-fix-his-problem-4ede</guid>
      <description>&lt;p&gt;I've been answering Windows activation questions on Microsoft's Q&amp;amp;A forum lately, mostly because I deal with this stuff all day anyway. Every question there now gets an AI answer automatically. And honestly? They're good. Well written, accurate, links to the right docs.&lt;/p&gt;

&lt;p&gt;Today a guy posted that his Windows key stopped working after he swapped in a new hard drive. The AI answer was textbook: install the same edition, sign in with your Microsoft account, run the activation troubleshooter. All correct.&lt;/p&gt;

&lt;p&gt;It didn't fix anything.&lt;/p&gt;

&lt;p&gt;What actually happened took about ten comments to dig out. The "key" he'd saved before swapping drives was a placeholder, not his real one, so a key checker called it invalid and he thought his license was gone. The troubleshooter showed zero PCs on his account, even though he had three others signed in, because none were ever linked to the license. Then we got one error code, then a different one, and only then did the real picture show up.&lt;/p&gt;

&lt;p&gt;None of that was in his original question. He didn't know which details mattered, so he couldn't have written them down. The AI answered the question he asked. The humans in the thread answered the question he should have asked, by asking him things back.&lt;/p&gt;

&lt;p&gt;That's the part I keep thinking about. AI is great at "here's the answer." It's much worse at "wait, where did that key come from?" Asking a follow-up and noticing something sounds off is most of what real troubleshooting is. Every good support person I know spends more time asking questions than giving answers.&lt;/p&gt;

&lt;p&gt;And the thread itself is now the useful thing. The next person who swaps a drive and hits the same wall will find the whole conversation, the wrong turns included, which a single polished AI answer can't give them.&lt;/p&gt;

&lt;p&gt;So I'm curious what you've seen:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Have you had an AI give you a perfectly correct answer that didn't help, because the real problem was something you didn't think to mention?&lt;/li&gt;
&lt;li&gt;Do you think AI assistants will get good at asking the follow-up questions, or is that always going to be the human part?&lt;/li&gt;
&lt;li&gt;If forums fill up with instant AI answers, do fewer humans bother replying, and does that kill the back-and-forth?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Genuinely want to hear from people who do support work, the AI answers and the human ones.&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>ai</category>
      <category>community</category>
      <category>programming</category>
    </item>
    <item>
      <title>Retail, OEM and volume Windows licenses: what's the difference and why it matters</title>
      <dc:creator>Matthew J. Moore</dc:creator>
      <pubDate>Thu, 19 Nov 2026 11:40:00 +0000</pubDate>
      <link>https://dev.to/mattmoore_tech/retail-oem-and-volume-windows-licenses-whats-the-difference-and-why-it-matters-2loi</link>
      <guid>https://dev.to/mattmoore_tech/retail-oem-and-volume-windows-licenses-whats-the-difference-and-why-it-matters-2loi</guid>
      <description>&lt;p&gt;This is the question I answer most often, and it's also the one that explains the most activation weirdness. There are three main kinds of Windows license and they behave very differently.&lt;/p&gt;

&lt;h2&gt;
  
  
  Retail
&lt;/h2&gt;

&lt;p&gt;A retail license is one you buy on its own, separate from any computer. Two things make it different:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It can move. If you build a new PC, you can take a retail license with you.&lt;/li&gt;
&lt;li&gt;It can only be active on one machine at a time. Move it, and the old machine should give it up.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you're building your own PC, this is the kind you want.&lt;/p&gt;

&lt;h2&gt;
  
  
  OEM
&lt;/h2&gt;

&lt;p&gt;OEM licenses come preinstalled when you buy a laptop or a prebuilt desktop from a manufacturer. The key is usually stored in the motherboard's firmware, which is why a fresh install of Windows on that laptop activates on its own without asking for anything.&lt;/p&gt;

&lt;p&gt;The catch is that OEM licenses are tied to that hardware. When the motherboard dies or you build a new PC, the license generally doesn't come with you. A lot of "my Windows stopped activating after an upgrade" stories are really "my OEM license was tied to the old board".&lt;/p&gt;

&lt;h2&gt;
  
  
  Volume
&lt;/h2&gt;

&lt;p&gt;Volume licenses are for organisations activating lots of machines at once. They come in two flavours:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;KMS&lt;/strong&gt;, where machines activate against the company's own activation server and need to check in regularly (roughly every 180 days).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;MAK&lt;/strong&gt;, where each machine activates directly with Microsoft using a shared key with a fixed number of activations.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Volume licenses aren't meant for a single home PC, and when one ends up on a home machine it causes trouble. Secondhand business laptops are the usual culprit. They work fine for a few months, then start throwing KMS errors or the "your license will expire soon" warning.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to tell which one you have
&lt;/h2&gt;

&lt;p&gt;Open an admin terminal and run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;slmgr /dli
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Look at the Description line:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;RETAIL channel&lt;/code&gt; means retail&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;OEM_DM channel&lt;/code&gt; (or another OEM variant) means OEM&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;VOLUME_KMSCLIENT channel&lt;/code&gt; means KMS volume&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;VOLUME_MAK channel&lt;/code&gt; means MAK volume&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why it matters
&lt;/h2&gt;

&lt;p&gt;Pretty much every activation decision depends on this one line. Moving to a new PC? Only realistic with retail. Getting KMS errors at home? You're on a volume channel and need a retail key. Laptop activated itself after a reinstall? That's the OEM key in the firmware doing its job.&lt;/p&gt;

&lt;p&gt;Before you try any fix for an activation problem, run &lt;code&gt;slmgr /dli&lt;/code&gt; first. It'll save you a lot of guessing.&lt;/p&gt;

</description>
      <category>windows</category>
      <category>hardware</category>
      <category>beginners</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Checking Office activation from the command line with ospp.vbs</title>
      <dc:creator>Matthew J. Moore</dc:creator>
      <pubDate>Sat, 14 Nov 2026 15:15:00 +0000</pubDate>
      <link>https://dev.to/mattmoore_tech/checking-office-activation-from-the-command-line-with-osppvbs-ld</link>
      <guid>https://dev.to/mattmoore_tech/checking-office-activation-from-the-command-line-with-osppvbs-ld</guid>
      <description>&lt;p&gt;Everyone knows &lt;code&gt;slmgr&lt;/code&gt; for Windows activation, but fewer people know Office has its own equivalent. It's called &lt;code&gt;ospp.vbs&lt;/code&gt; and it's been sitting in the Office folder this whole time.&lt;/p&gt;

&lt;p&gt;I use it constantly when someone tells me Word says "Unlicensed Product" and the File, Account page isn't giving any useful detail.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where it lives
&lt;/h2&gt;

&lt;p&gt;For a normal 64-bit Office install (Office 2016 and later all use the Office16 folder):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd "C:\Program Files\Microsoft Office\Office16"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you're on 32-bit Office on 64-bit Windows, it's under &lt;code&gt;C:\Program Files (x86)\Microsoft Office\Office16&lt;/code&gt; instead. Like slmgr, run it from an admin prompt and through &lt;code&gt;cscript&lt;/code&gt; so the output prints in the console.&lt;/p&gt;

&lt;h2&gt;
  
  
  /dstatus: what's installed and is it licensed?
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cscript ospp.vbs /dstatus
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This lists every Office license on the machine, with the name, the license status and the last five characters of each installed key. Two things I look for straight away:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;More than one license block.&lt;/strong&gt; Very common on laptops that came with a Microsoft 365 trial. Someone installs Office 2021 on top and now there are two products fighting each other. This is the number one cause of "Unlicensed Product" I see.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The LICENSE NAME line.&lt;/strong&gt; It tells you whether you're on a retail or volume license, which matters for how it should be activated.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  /inpkey and /act: put a key in and activate
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cscript ospp.vbs /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
cscript ospp.vbs /act
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Same idea as &lt;code&gt;slmgr /ipk&lt;/code&gt; then &lt;code&gt;/ato&lt;/code&gt; on Windows. If &lt;code&gt;/act&lt;/code&gt; fails, it gives you an error code, so note it down.&lt;/p&gt;

&lt;h2&gt;
  
  
  /unpkey: remove an old key
&lt;/h2&gt;

&lt;p&gt;If &lt;code&gt;/dstatus&lt;/code&gt; shows a leftover license you don't want (an expired trial, an old key), remove it using the last five characters shown:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cscript ospp.vbs /unpkey:AB123
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Do this before activating the one you actually want, otherwise Office can keep checking the wrong license.&lt;/p&gt;

&lt;h2&gt;
  
  
  A caveat
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;ospp.vbs&lt;/code&gt; is most useful for volume and standalone retail installs. Microsoft 365 subscriptions are licensed through your account sign-in, so for those the answer is usually on the File, Account page rather than in here.&lt;/p&gt;

&lt;h2&gt;
  
  
  My usual order
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;/dstatus&lt;/code&gt; to see everything that's installed.&lt;/li&gt;
&lt;li&gt;Remove anything that shouldn't be there with &lt;code&gt;/unpkey&lt;/code&gt;, or uninstall the extra Office product from Settings, Apps.&lt;/li&gt;
&lt;li&gt;Quick Repair from Settings, Apps if things still look off.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;/inpkey&lt;/code&gt; and &lt;code&gt;/act&lt;/code&gt; for the license you actually want.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Nothing fancy, but it turns a vague "Unlicensed Product" banner into something you can actually work with.&lt;/p&gt;

</description>
      <category>microsoft</category>
      <category>office</category>
      <category>windows</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Windows activation error codes, translated into plain English</title>
      <dc:creator>Matthew J. Moore</dc:creator>
      <pubDate>Mon, 09 Nov 2026 09:30:00 +0000</pubDate>
      <link>https://dev.to/mattmoore_tech/windows-activation-error-codes-translated-into-plain-english-ik1</link>
      <guid>https://dev.to/mattmoore_tech/windows-activation-error-codes-translated-into-plain-english-ik1</guid>
      <description>&lt;p&gt;Windows activation errors are some of the least helpful messages in the whole OS. You get a hex code, a sentence that sounds like it was written by a lawyer, and a "Troubleshoot" button that usually says it couldn't find anything.&lt;/p&gt;

&lt;p&gt;I deal with these every day, so I started keeping my own cheat sheet of what each code actually means in practice. Here it is.&lt;/p&gt;

&lt;h2&gt;
  
  
  0xC004C008: the key has been used too many times
&lt;/h2&gt;

&lt;p&gt;Microsoft's servers have seen this key activate on more machines than its license allows. Sometimes that's innocent, like you swapped hardware and Windows thinks it's a different PC, or the key is still active on your old machine. Sometimes the key was simply sold to more than one person.&lt;/p&gt;

&lt;h2&gt;
  
  
  0xC004C060: the key is no longer valid
&lt;/h2&gt;

&lt;p&gt;The activation servers have blocked this key. Before you assume the worst, check it's the right edition. A Pro key won't activate Home, and the other way round.&lt;/p&gt;

&lt;h2&gt;
  
  
  0xC004F050: the key is invalid
&lt;/h2&gt;

&lt;p&gt;Usually a typo (B and 8, O and 0, the usual suspects) or a key for a different edition than the one installed. Check Settings, System, About to see what you're actually running.&lt;/p&gt;

&lt;h2&gt;
  
  
  0x803F7001: no valid license found
&lt;/h2&gt;

&lt;p&gt;Classic after a motherboard swap. The license was tied to the old hardware. If it was linked to a Microsoft account before the swap, the Activation troubleshooter has an "I changed hardware on this device recently" option that usually sorts it.&lt;/p&gt;

&lt;h2&gt;
  
  
  0xC004F213: no product key found on the device
&lt;/h2&gt;

&lt;p&gt;Similar story to 0x803F7001. Windows can't match the hardware to a license and there's no key installed to fall back on.&lt;/p&gt;

&lt;h2&gt;
  
  
  0x8007232B and 0xC004F074: looking for a KMS server
&lt;/h2&gt;

&lt;p&gt;Both mean Windows was installed from volume license media and is trying to reach a company activation server. On a work laptop that's normal and IT handles it. On a home PC it means you need to put in a normal retail key so it stops looking for a server that doesn't exist.&lt;/p&gt;

&lt;h2&gt;
  
  
  0x8007007B: "file name, directory name or volume label syntax is incorrect"
&lt;/h2&gt;

&lt;p&gt;My favourite misleading message. Nothing to do with files. It's the same KMS situation as above wearing a different hat.&lt;/p&gt;

&lt;h2&gt;
  
  
  0x80072F8F: a secure connection failed
&lt;/h2&gt;

&lt;p&gt;Nine times out of ten the PC's date or time is wrong, so the certificates don't line up. Turn on "Set time automatically" and "Set time zone automatically", hit Sync now, try again. If the clock is fine, look at VPNs, proxies or antivirus that inspects HTTPS traffic.&lt;/p&gt;

&lt;h2&gt;
  
  
  0x803FA067: upgrade from Home to Pro won't go through
&lt;/h2&gt;

&lt;p&gt;Doing it in two steps helps: get the edition switched first, then activate. Being fully updated before you start also fixes more of these than you'd expect.&lt;/p&gt;

&lt;h2&gt;
  
  
  0xC004F012: a license value wasn't found
&lt;/h2&gt;

&lt;p&gt;The local license store is damaged or out of sync. &lt;code&gt;sfc /scannow&lt;/code&gt;, then &lt;code&gt;slmgr /rilc&lt;/code&gt; to reinstall the license files, restart, and enter the key again.&lt;/p&gt;

&lt;h2&gt;
  
  
  The two commands that explain most of these
&lt;/h2&gt;

&lt;p&gt;If you only remember one thing from this post: run &lt;code&gt;slmgr /dli&lt;/code&gt; and look at the Description line. It tells you whether you're on a retail, OEM or volume channel, and that alone explains about half of the codes above. Then &lt;code&gt;slmgr /xpr&lt;/code&gt; tells you whether the machine was ever permanently activated.&lt;/p&gt;

&lt;p&gt;Got a code that isn't on this list? Drop it in the comments and I'll add it.&lt;/p&gt;

</description>
      <category>windows</category>
      <category>beginners</category>
      <category>productivity</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>What actually happens to your Windows license when you replace the motherboard</title>
      <dc:creator>Matthew J. Moore</dc:creator>
      <pubDate>Thu, 05 Nov 2026 21:41:59 +0000</pubDate>
      <link>https://dev.to/mattmoore_tech/checking-windows-activation-from-the-terminal-instead-of-clicking-through-settings-i6m</link>
      <guid>https://dev.to/mattmoore_tech/checking-windows-activation-from-the-terminal-instead-of-clicking-through-settings-i6m</guid>
      <description>&lt;p&gt;If you've ever swapped a motherboard and then seen a "Windows isn't activated" message on your next boot, you know how annoying that is. Nothing is wrong with the install. Windows just doesn't recognize the PC anymore.&lt;/p&gt;

&lt;p&gt;Here's why. When Windows activates, Microsoft stores a digital license linked to a fingerprint of your hardware. Most small changes don't matter, so adding RAM or a new SSD is usually fine. The motherboard is the big one, because as far as activation goes, a new board looks like a new computer.&lt;/p&gt;

&lt;p&gt;What happens next depends on the type of license you have.&lt;/p&gt;

&lt;p&gt;A retail license is meant to move with you, so you can reactivate it on the new hardware. An OEM license, the kind that comes preinstalled on a Dell or HP, is tied to the machine it shipped with. Microsoft doesn't guarantee it will carry over to a new board, although it can be different if the manufacturer replaced the board under warranty. To find out which one you have, run this in an admin Command Prompt:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;slmgr /dli
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and look for RETAIL or OEM in the description line.&lt;/p&gt;

&lt;p&gt;The step that saves the most hassle has to happen before you open the case. Go to Settings, then Accounts, and sign in with a Microsoft account. Then check Settings &amp;gt; System &amp;gt; Activation. It should say your digital license is linked to your Microsoft account. If it does, you've got a way to prove the license is yours after the swap.&lt;/p&gt;

&lt;p&gt;Once the new board is in, boot up, sign in with that same account and go back to the Activation page. Run the troubleshooter, choose "I changed hardware on this device recently", and pick your PC from the list. If it isn't listed, check that you're signed in with the right account.&lt;/p&gt;

&lt;p&gt;If the troubleshooter can't do it and you still have your original product key, try entering it under Change product key. If that fails too, Microsoft's support team can look at it.&lt;/p&gt;

&lt;p&gt;The mistake I'd avoid is reinstalling Windows to fix this. A clean install doesn't change your hardware fingerprint, so you'd end up in exactly the same spot, just with all your apps gone.&lt;/p&gt;

&lt;p&gt;Has anyone had an OEM license survive a board swap? I'm curious how often that happens.&lt;/p&gt;

</description>
      <category>windows</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>The slmgr commands I actually use to debug Windows activation (and the PowerShell version)</title>
      <dc:creator>Matthew J. Moore</dc:creator>
      <pubDate>Wed, 04 Nov 2026 16:44:16 +0000</pubDate>
      <link>https://dev.to/mattmoore_tech/the-slmgr-commands-i-actually-use-to-debug-windows-activation-and-the-powershell-version-kp5</link>
      <guid>https://dev.to/mattmoore_tech/the-slmgr-commands-i-actually-use-to-debug-windows-activation-and-the-powershell-version-kp5</guid>
      <description>&lt;p&gt;I spend a weird amount of my week staring at Windows activation errors. I run a small shop that sells Windows and Office keys, so when something won't activate, it lands in my inbox. After a few hundred of these I noticed I always reach for the same handful of commands, so here they are, with what each one actually tells you.&lt;/p&gt;

&lt;p&gt;Everything below needs an elevated prompt. Right click Start, pick Terminal (Admin), and go from there. If you run these as a normal user you'll get "access denied" and think something is broken.&lt;/p&gt;

&lt;h2&gt;
  
  
  First, a small trick: stop the popups
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;slmgr&lt;/code&gt; is just a VBScript (&lt;code&gt;slmgr.vbs&lt;/code&gt;) and by default every command pops up a little message box. That's annoying when you want to copy the output or run a few commands in a row. Run it through &lt;code&gt;cscript&lt;/code&gt; instead and it prints straight to the console:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cscript //nologo %windir%\system32\slmgr.vbs /dli
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Same commands, same output, just text you can actually copy.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;code&gt;slmgr /dli&lt;/code&gt;: what am I looking at?
&lt;/h2&gt;

&lt;p&gt;This is always my first command. It shows the edition, the license channel and the last five characters of the installed key.&lt;/p&gt;

&lt;p&gt;The line that matters most is &lt;strong&gt;Description&lt;/strong&gt;. It tells you the channel:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;RETAIL channel&lt;/code&gt;: a key someone bought on its own. Can usually move to a new PC.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;OEM_DM channel&lt;/code&gt;: the key that came with the laptop, tied to that hardware.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;VOLUME_KMSCLIENT channel&lt;/code&gt;: the machine expects a company KMS server.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;VOLUME_MAK channel&lt;/code&gt;: a volume key that activates directly with Microsoft.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Half the "mystery" activation errors I see make sense the moment you read this line. If a home PC says &lt;code&gt;VOLUME_KMSCLIENT&lt;/code&gt;, it's going to throw KMS errors like 0x8007232B or 0xC004F074 forever, because there's no company server for it to talk to.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;code&gt;slmgr /dlv&lt;/code&gt;: the verbose version
&lt;/h2&gt;

&lt;p&gt;Same as &lt;code&gt;/dli&lt;/code&gt; plus a lot more: activation ID, installation ID, remaining rearm count, and KMS details if it's a volume machine. I mostly use it when &lt;code&gt;/dli&lt;/code&gt; didn't explain things, or when I need the installation ID for phone activation.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;code&gt;slmgr /xpr&lt;/code&gt;: is it permanent?
&lt;/h2&gt;

&lt;p&gt;One line answer. Either "The machine is permanently activated" or a date when activation runs out. If you see a date about 180 days out, that's a KMS activation, not a permanent one. Super common on used business laptops, and the reason people get the "your Windows license will expire soon" popup months after buying the machine.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;code&gt;slmgr /ipk &amp;lt;key&amp;gt;&lt;/code&gt; and &lt;code&gt;slmgr /ato&lt;/code&gt;: swap and activate
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;/ipk&lt;/code&gt; installs a new product key (replacing the old one). &lt;code&gt;/ato&lt;/code&gt; tells Windows to go activate right now instead of waiting.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
slmgr /ato
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Give it a few seconds between the two. If &lt;code&gt;/ato&lt;/code&gt; fails, the error code it shows is the most useful piece of information you'll get, so write it down before you start googling.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;code&gt;slmgr /upk&lt;/code&gt; and &lt;code&gt;slmgr /cpky&lt;/code&gt;: before you wipe an old PC
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;/upk&lt;/code&gt; uninstalls the product key from the current machine. I tell people to run it on their old PC before moving a retail key to a new one, so the old machine isn't still holding it.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;/cpky&lt;/code&gt; clears the key from the registry so it can't be read back out by tools that dump product keys. Doesn't deactivate anything, just tidies up.&lt;/p&gt;

&lt;h2&gt;
  
  
  The PowerShell way
&lt;/h2&gt;

&lt;p&gt;VBScript is being phased out of Windows, so it's worth knowing the PowerShell equivalent too. The licensing info lives in a CIM class called &lt;code&gt;SoftwareLicensingProduct&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;CimInstance&lt;/span&gt; &lt;span class="nc"&gt;SoftwareLicensingProduct&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="k"&gt;Filter&lt;/span&gt; &lt;span class="s2"&gt;"PartialProductKey IS NOT NULL"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt;
  &lt;span class="nc"&gt;Select&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="nc"&gt;Name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;Description&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;LicenseStatus&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;PartialProductKey&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That lists Windows and any Office installs that use the same licensing service. &lt;code&gt;LicenseStatus&lt;/code&gt; is a number:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Unlicensed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Licensed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;Initial grace period&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;Additional grace period&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;Non-genuine grace period&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;Notification mode&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;Extended grace period&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If you only care about Windows itself, filter on the Windows application ID:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;CimInstance&lt;/span&gt; &lt;span class="nc"&gt;SoftwareLicensingProduct&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="k"&gt;Filter&lt;/span&gt; &lt;span class="s2"&gt;"ApplicationID='55c92734-d682-4d71-983e-d6ec3f16059f' AND PartialProductKey IS NOT NULL"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt;
  &lt;span class="nc"&gt;Select&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="nc"&gt;Name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;Description&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;LicenseStatus&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And one more I use a lot: if the machine shipped with Windows, the original OEM key is often stored in the firmware. This reads it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;CimInstance&lt;/span&gt; &lt;span class="nc"&gt;SoftwareLicensingService&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;OA3xOriginalProductKey&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Blank output just means there's no key in the firmware, which is normal on custom builds.&lt;/p&gt;

&lt;h2&gt;
  
  
  My actual order of operations
&lt;/h2&gt;

&lt;p&gt;When someone sends me "Windows won't activate", this is basically it:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;/dli&lt;/code&gt; to see the edition and channel. Wrong edition or a volume channel explains most problems straight away.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;/xpr&lt;/code&gt; to see if it was ever permanently activated.&lt;/li&gt;
&lt;li&gt;Check the date, time and time zone. A wrong clock breaks the secure connection to the activation servers (hello, 0x80072F8F).&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;/ipk&lt;/code&gt; with the right key for that edition, then &lt;code&gt;/ato&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;If &lt;code&gt;/ato&lt;/code&gt; fails, read the error code and go from there.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Most of the time it never gets past step 1 or 2. The error messages Windows shows are pretty bad at explaining themselves, but these commands usually tell you the real story in about ten seconds.&lt;/p&gt;

&lt;p&gt;If you've got a weird activation error you keep running into, drop it in the comments. I've probably seen it, and if I haven't I'd like to.&lt;/p&gt;

</description>
      <category>windows</category>
      <category>powershell</category>
      <category>tutorial</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
