Open eliweitzman opened 5 months ago
Get Windows Activation Key PS Command:
(Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey
Get Windows Activation Type PS Command:
Get-CimInstance -ClassName SoftwareLicensingProduct | ? { $_.PartialProductKey -ne $null } | Select Name, Description, PartialProductKey, LicenseStatus
With the recent notice of VBScript ejng deprecated (https://techcommunity.microsoft.com/t5/windows-it-pro-blog/vbscript-deprecation-timelines-and-next-steps/ba-p/4148301), we might need to re-evaluate some ETT tools currently relying on VBScript, including the license checker tool (slmgr)