<?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: GeeKeys</title>
    <description>The latest articles on DEV Community by GeeKeys (@geekeys-net).</description>
    <link>https://dev.to/geekeys-net</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%2F4269602%2Fde986318-db67-43b5-8347-6c72cf0de1a2.png</url>
      <title>DEV Community: GeeKeys</title>
      <link>https://dev.to/geekeys-net</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/geekeys-net"/>
    <language>en</language>
    <item>
      <title>WMIC is gone from Windows 11. Here's how I check Windows and Office activation now</title>
      <dc:creator>GeeKeys</dc:creator>
      <pubDate>Sat, 28 Nov 2026 17:49:37 +0000</pubDate>
      <link>https://dev.to/geekeys-net/wmic-is-gone-from-windows-11-heres-how-i-check-windows-and-office-activation-now-27h7</link>
      <guid>https://dev.to/geekeys-net/wmic-is-gone-from-windows-11-heres-how-i-check-windows-and-office-activation-now-27h7</guid>
      <description>&lt;p&gt;If you've got an old batch script that runs &lt;code&gt;wmic path softwarelicensingservice get OA3xOriginalProductKey&lt;/code&gt;, it's probably broken by now. Microsoft pulled WMIC out of Windows 11 24H2 and 25H2 this year, and you can't add it back as an optional feature anymore either.&lt;/p&gt;

&lt;p&gt;"Is my Windows actually activated?" comes up constantly, so I had to redo my little cheat sheet. Dropping it here in case it saves someone an afternoon.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick check (no admin needed)
&lt;/h2&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;Shows the edition, the last 5 characters of the key and the license status. &lt;code&gt;slmgr /xpr&lt;/code&gt; tells you if the activation is permanent or when it expires, which is handy for spotting KMS activations (those only last 180 days and need to renew).&lt;/p&gt;

&lt;p&gt;&lt;code&gt;slmgr /dlv&lt;/code&gt; is the long version with the activation ID, rearm count and so on.&lt;/p&gt;

&lt;h2&gt;
  
  
  The PowerShell way (what replaces wmic)
&lt;/h2&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;LicenseStatus&lt;/code&gt; 1 means licensed. Anything else and something's off.&lt;/p&gt;

&lt;p&gt;To read the key that's embedded in the firmware on OEM laptops:&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;Empty result just means there's no OEM key in the BIOS/UEFI, which is normal on custom builds.&lt;/p&gt;

&lt;h2&gt;
  
  
  Office
&lt;/h2&gt;

&lt;p&gt;This is the one that trips people up. For Office 2016, 2019, 2021 and LTSC, &lt;code&gt;ospp.vbs&lt;/code&gt; still works:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cscript "C:\Program Files\Microsoft Office\Office16\OSPP.VBS" /dstatus
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;(Use &lt;code&gt;Program Files (x86)&lt;/code&gt; instead if you have 32-bit Office on 64-bit Windows.)&lt;/p&gt;

&lt;p&gt;But if it's Microsoft 365 Apps, ospp.vbs will happily tell you there are no keys installed even though everything works fine. 365 moved to a different activation method a while back, so you need vnextdiag instead:&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="o"&gt;&amp;amp;&lt;/span&gt; &lt;span class="s2"&gt;"C:\Program Files\Microsoft Office\root\Office16\vnextdiag.ps1"&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;action&lt;/span&gt; &lt;span class="n"&gt;list&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Took me way too long to figure out that 365 thing the first time.&lt;/p&gt;

&lt;p&gt;Anyone else still have wmic calls buried in old scripts? Curious what else broke for you after the 24H2/25H2 updates.&lt;/p&gt;

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