ProductKeys.ps1 was converted to ProductKeys.exe by PS2EXE-GUI v0.5.0.8, see
https://gallery.technet.microsoft.com/scriptc....7cb69d5 ProductKeys.exe - x64, ProductKeysx86.exe - x86
------------------------------------ Operating System Summary --------------------------------------
Current InstallDate, BuildLabEx : 23.12.2016 04:48:03, 14393.1914.amd64fre.rs1_release_inmarket.171117-1700
OSDescription : Windows 10 Enterprise 2016 LTSB x64 Volume:MAK channel
ApplicationID : {55c92734-d682-4d71-983e-d6ec3f16059f}
SkuID : 2782d615-3249-495b-8260-15a4c2295448
Edition, CompositionEdition : EnterpriseS, EnterpriseS
ProductKeyID : 03612-03802-048-412445-03-1049-14393.0000-3452017
ProductKeyID2 : 00380-20484-12445-AA424
LicenseStatusReason : 0
StatusReasonExplanation : Windows is activated by the Retail/OEM key.
LicenseStatus : Licensed
Activation : Windows is activated by the Retail/OEM key.
ProductID, ProductKey : 00380-20484-12445-AA424, BBBBB-BBBBB-BBBBB-BBBBB-BBBBB
ProductID, DefaultProductKey : 00380-70000-00001-AAOEM, NK96Y-D9CD8-W44CQ-R8YTK-DYJWX
BackupProductKeyDefault : NB9JR-7RDFW-QQVRK-YXFBM-KD8WQ
------------------------------------ Computer hardware Summary -------------------------------------
Platform : ASUSTeK COMPUTER INC. 1.0 E502MA
Processor : Intel(R) Pentium(R) CPU N3540 @ 2.16GHz
----------------------------------------------------- Data Sources ------------------------------------------------------------
ProductKey: HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion, DigitalProductId[52..66]
DefaultProductKey: HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DefaultProductKey, DigitalProductId[52..66]
DefaultProductKey2: HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DefaultProductKey2, DigitalProductId[52..66]
SkuID: HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion, DigitalProductId4[136..207]
BackupProductKeyDefault: HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform, BackupProductKeyDefault
BIOSKey: HKLM\SYSTEM\ControlSet001\Services\mssmbios\Data, AcpiData, Section MSDM
ApplicationID: HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\GenuineApps\*
HKLM\SYSTEM\Setup\Source OS Updated on...) for the lowest Build number provides:
InitialInstallDate, BuildLabEx and InitialProductKey extracted from the DigitalProductId.
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion provides:
CurrentInstallDate, BuildLabEx, EditionID, CompositionEditionID, ProductName, Channel = DigitalProductId4[0x3f8..0x477].
Table of the LicenseStatusReason codes and corresponding explain messages were extracted from the Windows\System32\en-US\SLC.DLL.MUI.
Hardware data are retrieved from the HKLM\HARDWARE\DESCRIPTION\System, HKLM\HARDWARE\DESCRIPTION\System\BIOS,
HKLM\HARDWARE\DESCRIPTION\System\CentralProcessor
Some data are retrived with WMI:
BIOSKeyDescription is requested from the WMI class SoftwareLicensingService.
ProductKeyID, ProductKeyID2, LicenseStatus, LicenseStatusReason are requested from the WMI class SoftwareLicensingProduct.
*****************************************************
To get source file, ProductKeys.ps1, run:
ProductKeys.exe -extract:<TargetDir>\ProductKeys.ps1
*****************************************************