If you've got an old batch script that runs wmic path softwarelicensingservice get OA3xOriginalProductKey, 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.
"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.
Quick check (no admin needed)
slmgr /dli Shows the edition, the last 5 characters of the key and the license status. slmgr /xpr 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).
slmgr /dlv is the long version with the activation ID, rearm count and so on.
The PowerShell way (what replaces wmic)
Get-CimInstance SoftwareLicensingProduct -Filter "PartialProductKey IS NOT NULL" | Select-Object Name, Description, LicenseStatus LicenseStatus 1 means licensed. Anything else and something's off.
To read the key that's embedded in the firmware on OEM laptops:
(Get-CimInstance SoftwareLicensingService).OA3xOriginalProductKey Empty result just means there's no OEM key in the BIOS/UEFI, which is normal on custom builds.
Office
This is the one that trips people up. For Office 2016, 2019, 2021 and LTSC, ospp.vbs still works:
cscript "C:\Program Files\Microsoft Office\Office16\OSPP.VBS" /dstatus (Use Program Files (x86) instead if you have 32-bit Office on 64-bit Windows.)
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:
& "C:\Program Files\Microsoft Office\root\Office16\vnextdiag.ps1" -action list Took me way too long to figure out that 365 thing the first time.
Anyone else still have wmic calls buried in old scripts? Curious what else broke for you after the 24H2/25H2 updates.