Microsoft Windows Operating System Information Retrieval Script ( MSWinOSInfoRS ) This script was previously known as OSInfoNT and OSInfo-v5.1+ This VBScript will retrieve information about the Operating System, Software Licensing & Computer System via the Windows Management Instrumentation (WMI). The information will echo to screen with the option to save the information to a text file (.txt). MSWinOSInfoRS for Windows 10/8.x/7/Vista/XP MSWinOSInfoRS10 for Windows 10 [[Go to Post #2]] Requires Windows Version 5.1 (XP) and above This script uses the following (via WMI) to get information: Win32_OperatingSystem Win32_ComputerSystem Win32_ComputerSystemProduct Win32_BaseBoard SoftwareLicensingProduct SoftwareLicensingService Win32_WindowsProductActivation StdRegProv (Registry) v1.01.119.03Alpha : 21160202.2 Script updated with various changes 1.01.119.01Alpha : 21151221.1 This Script has been tested on Windows 7 (SP1, 64-bit), 10.0 Home (core, 32-bit) and XP Home This script has NOT been test on Windows Vista, 8 or 8.1 Various changes (includes adding UBR from the registry) Fixed SourceOS issue with more than one entry in the registry v1.01.118.00Alpha : 21150831.1 This version has NOT been fully tested This Script has been tested on Windows 7 (SP1, 64-bit), 10.0 Home (core) (32-bit) and XP Home This script has NOT been test on Windows Vista, 8 or 8.1 Replaced some Select Case code with Scripting.Dictionary Added Source OS section (only used if present in the registry) Download Link(s) v1.01.119.03Alpha : 21160202.2 datafilehost [VBS: VBScript File] SHA-256 : MSWinOSInfoRS_1.01.119.03Alpha.vbs 78A19143D959D11CE56254DE106450FACE81418B95905C7BF52F7FB81A57193E File output (example): MSWinOSInfoRS.[<WinVerNo.>$<COMPUTERNAME>].Report.txt |#| MSWinOSInfoRS.[<WinVerNo.>.<WinBuildNo.>.<UBR>$<COMPUTERNAME>].Report Code: Microsoft Windows Operating System Information Retrieval Script (MSWinOSInfoRS) for Windows Version 5.1 and above|WinNT - WinVer: 5.1 and Above VBScript | by: 38956 | 1.01.119.03Alpha : 21160202.2 --------------------------------------------------------------------------------------------- Operating System information --------------------------------------------------------------------------------------------- Product Name: [>> REMOVED <<] SKU: [>> REMOVED <<] Edition ID: [>> REMOVED <<] CSD Version: [>> REMOVED <<] OS Architecture: [>> REMOVED <<] OS Version:[>> REMOVED <<] | [>> REMOVED <<] OS Build:[>> REMOVED <<] Build Branch:[>> REMOVED <<] Release ID:[>> REMOVED <<] Registry$WinNT.Current >Major Version: [>> REMOVED <<], Minor Version: [>> REMOVED <<] Registry$WinNT.CurrentVersion: [>> REMOVED <<] WMI$OS.Build Number:[>> REMOVED <<] Registry$UBR:[>> REMOVED <<] Registry$Build Lab:[>> REMOVED <<] Registry$Build Lab Ex:[>> REMOVED <<] Build Type:[>> REMOVED <<] OS Type: [>> REMOVED <<]Country Code:[>> REMOVED <<] Product Type: [>> REMOVED <<] Primary OS: [>> REMOVED <<] Windows Directory: [>> REMOVED <<] Language: [>> REMOVED <<] Locale: [>> REMOVED <<] Product ID: [>> REMOVED <<] Product Key: [>> REMOVED <<] License Channel / Type: [>> REMOVED <<] Install Date: [>> REMOVED <<] Last Boot Time: [>> REMOVED <<] Local Date/Time: [>> REMOVED <<] Current Time Zone: [>> REMOVED <<] --------------------------------------------------------------------------------------------- Registered Owner: [>> REMOVED <<] Organization: [>> REMOVED <<] --------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- Software Licensing Product information --------------------------------------------------------------------------------------------- Name: Windows(R), [>> REMOVED <<] edition Description: Windows(R) Operating System, [>> REMOVED <<] channel Partial Product Key: [>> REMOVED <<] Genuine Status: [>> REMOVED <<] License Family: [>> REMOVED <<] License Is Addon: [>> REMOVED <<] License Status: [>> REMOVED <<] License Status Reason: [>> REMOVED <<] [>> REMOVED <<] Grace Period Remaining: [>> REMOVED <<] Extended Grace: [>> REMOVED <<] Evaluation End Date: [>> REMOVED <<] --------------------------------------------------------------------------------------------- Software Licensing Service information --------------------------------------------------------------------------------------------- Remaining Windows Rearm Count: [>> REMOVED <<] OA2 BIOS Marker Status:[>> REMOVED <<] OA2 BIOS Marker Minor Version: [>> REMOVED <<] OA3 Original Product Key:[>> REMOVED <<] OA3 Original Product Key Description: [>> REMOVED <<] OA3 Original Product Key Pk Pn: [>> REMOVED <<] --------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- Additional Product Key(s): --------------------------------------------------------------------------------------------- WMI$SLP.PartialProductKey: [>> REMOVED <<] Registry: HKLM\SOFTWARE\Microsoft\Windows NT\ CurrentVersion ¦ DigitalProductId: [>> REMOVED <<] CurrentVersion\DefaultProductKey ¦ DigitalProductId: [>> REMOVED <<] CurrentVersion\SoftwareProtectionPlatform ¦ BackupProductKeyDefault: [>> REMOVED <<] Registry: HKLM\SOFTWARE\Microsoft\Internet Explorer\Registration ¦ DigitalProductId: [>> REMOVED <<] --------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- Source Operating System information --------------------------------------------------------------------------------------------- [ Registry $ Source OS (Updated on [>> REMOVED <<]) ] ' << Date: MM/DD/YYYY Product Name: [>> REMOVED <<] Edition ID: [>> REMOVED <<] CSD Version: [>> REMOVED <<] OS Architecture: [>> REMOVED <<] Windows Current >Major Version: [>> REMOVED <<], Minor Version: [>> REMOVED <<] OS Build:[>> REMOVED <<] Build Branch:[>> REMOVED <<] Release ID:[>> REMOVED <<] Windows Version:[>> REMOVED <<] Build Number:[>> REMOVED <<] UBR:[>> REMOVED <<] Build Lab:[>> REMOVED <<] Build Lab Ex:[>> REMOVED <<] Build GUID:[>> REMOVED <<] Build Type:[>> REMOVED <<] Windows Directory: [>> REMOVED <<] Product ID: [>> REMOVED <<] Product Key: [>> REMOVED <<] Install Date: [>> REMOVED <<] Installation Type: [>> REMOVED <<] --------------------------------------------------------------------------------------------- Registered Owner: [>> REMOVED <<] Organization: [>> REMOVED <<] --------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- Computer Identification information --------------------------------------------------------------------------------------------- Computer System: Manufacturer:[>> REMOVED <<] Model:[>> REMOVED <<] |$$| Name:[>> REMOVED <<] PC System Type:[>> REMOVED <<] |$$| System Type:[>> REMOVED <<] Computer System Product: Vendor:[>> REMOVED <<] Name:[>> REMOVED <<] Version:[>> REMOVED <<] Identifying Number:[>> REMOVED <<] UUID:[>> REMOVED <<] SKU Number:[>> REMOVED <<] Caption:[>> REMOVED <<] Description:[>> REMOVED <<] Base Board: Manufacturer:[>> REMOVED <<] Product:[>> REMOVED <<] Version:[>> REMOVED <<] Serial Number:[>> REMOVED <<] --------------------------------------------------------------------------------------------- OEM Information: Manufacturer:[>> REMOVED <<] Model:[>> REMOVED <<] --------------------------------------------------------------------------------------------- File output (example): MSWinOSInfoRS.[5.x.<COMPUTERNAME>].Report.txt Code: Microsoft Windows Operating System Information Retrieval Script (MSWinOSInfoRS) for Windows Version 5.1 and above WinNT - WinVer: 5.1 and Above Script by: 38956 | 1.01.115.02Beta : 21150114.3 --------------------------------------------------------------------------------- Operating System information --------------------------------------------------------------------------------- Product Name: <REMOVED> Edition ID: <REMOVED> CSD Version: <REMOVED> OS Architecture: <REMOVED> Windows Version:<REMOVED> Build: <REMOVED> Build Lab:<REMOVED> Build Type:<REMOVED> OS Type: <REMOVED>Country Code:<REMOVED> Product Type: <REMOVED> Primary OS: <REMOVED> Windows Directory: <REMOVED> Language: <REMOVED> Locale: <REMOVED> Product ID: <REMOVED> Product Key: "<REMOVED>" Channel ID: <REMOVED> Activation Status: <REMOVED> Is Notification On: <REMOVED> Remaining Grace Period: <REMOVED> Install Date: <REMOVED> Last Boot Time: <REMOVED> Local Date/Time: <REMOVED> Current Time Zone: <REMOVED> --------------------------------------------------------------------------------- Registered Owner: <REMOVED> Organization: <REMOVED> --------------------------------------------------------------------------------- --------------------------------------------------------------------------------- Additional Product Key(s) & Setup PID --------------------------------------------------------------------------------- REG.HKLM.SW.MS.WinNT.CurrentVersion: DigitalProductId: <REMOVED> REG.HKLM.SW.MS.Internet Explorer.Registration: DigitalProductId: <REMOVED> REG.HKLM.SYS.WPA.Key-<REMOVED>: DigitalProductId: <REMOVED> REG.HKLM.SYS.Setup.Pid:<REMOVED> --------------------------------------------------------------------------------- Computer Identification information --------------------------------------------------------------------------------- Computer System: Manufacturer:<REMOVED> Model:<REMOVED> Name:<REMOVED> System Type:<REMOVED> Computer System Product: Vendor:<REMOVED> Name:<REMOVED> Version:<REMOVED> Identifying Number:<REMOVED> UUID:<REMOVED> SKU Number:<REMOVED> Caption:<REMOVED> Description:<REMOVED> Base Board: Manufacturer:<REMOVED> Product:<REMOVED> Version:<REMOVED> Serial Number:<REMOVED> --------------------------------------------------------------------------------- Optional Command line switches /ip:<IP Address> /usr:<Username> /pwd:<Password> /output:file /h:switches
MSWinOSInfoRS10 (1.00.001.04Alpha) for Windows 10 MSWinOSInfoRS10 (1.00.001.04Alpha) for Windows 10 Script updated v1.00.001.04Alpha : 21151215.2 This script is for Windows 10 This script has been tested on Windows 10 Home (core) and Pro (build 10586) WMI > SoftwareLicensingService > OA3xOriginalProductKeyPkPn ??? (on Win10 build 10586 (1511) found using WMI Code Creator v1.0) added UBR from the registry Download Link(s) v1.00.001.04Alpha : 21151215.2 datafilehost [SFX: self extracting archive] SHA-256 : MSWinOSInfoRS10_1.00.001.04Alpha.exe 71CD92E6DB2D2C578A47DB3AF17D5B2D62B6040E9D640BB53AB24E8D46721BBF SHA-256 : MSWinOSInfoRS10_1.00.001.04Alpha.vbs 440DD9B0919CF395D93BDE0D5C2E78B8FA1F68E1FFFEF69D21673D2FC57DE810 datafilehost [vbs file : VBScript file] SHA-256 : MSWinOSInfoRS10_1.00.001.04Alpha.vbs 440DD9B0919CF395D93BDE0D5C2E78B8FA1F68E1FFFEF69D21673D2FC57DE810 File Output (example): http://pastebin.com/FY1d67Z5
Code: MSWinOSInfoRS_1.01.115.01Beta.vbs(907, 3) Microsoft VBScript runtime error: Name redefined: 'HR_S_OK'
MSWinOSInfoRS v1.01.116.01Alpha : 21150708.3 MSWinOSInfoRS v1.01.116.01Alpha : 21150708.3 Updated/modified code NOTE: Has NOT been fully tested.
MSWinOSInfoRS v1.01.117.00Alpha : 21150812.3 MSWinOSInfoRS v1.01.117.00Alpha : 21150812.3 Updated/modified code NOTE: Has NOT been fully tested.
MSWinOSInfoRS v1.01.118.00Alpha : 21150831.1 MSWinOSInfoRS v1.01.118.00Alpha : 21150831.1 Updated/modified code NOTE: Has NOT been fully tested.
MSWinOSInfoRS10 (1.00.001.01Alpha) for Windows 10 MSWinOSInfoRS10 (1.00.001.01Alpha) for Windows 10 v1.00.001.01Alpha : 21151208.2 This script is for Windows 10 This script has been tested on Windows 10 Home (core) and Pro This script has not been tested on preinstalled computers with Windows 10 (check OA3) WMI > SoftwareLicensingService > OA3xOriginalProductKeyPkPn ??? (on Win10 build 10586 (1511) found using WMI Code Creator v1.0) Download Link(s) v1.00.001.01Alpha : 21151208.2 datafilehost [SFX: self extracting archive] SHA-256 : MSWinOSInfoRS10_1.00.001.01Alpha.exe 84EF9999F26DDFE0389DA7417710C086FB8FE446DD5420AF749AD81BBFAC6FEB SHA-256 : MSWinOSInfoRS10_1.00.001.01Alpha.vbs C493FA7F5F172E4706AEDC23DC9F67BBD98FF666A8F9E6B4B972146DB9BE56DB datafilehost [vbs file : vbscript file] SHA-256 : MSWinOSInfoRS10_1.00.001.01Alpha.vbs C493FA7F5F172E4706AEDC23DC9F67BBD98FF666A8F9E6B4B972146DB9BE56DB File Output: http://pastebin.com/heQEnrD1 Partial File Output: http://pastebin.com/c4Z9CnRN
MSWinOSInfoRS10 (1.00.001.04Alpha) for Windows 10 MSWinOSInfoRS10 (1.00.001.04Alpha) for Windows 10 Script updated v1.00.001.04Alpha : 21151215.2 This script is for Windows 10 This script has been tested on Windows 10 Home (core) and Pro (build 10586) WMI > SoftwareLicensingService > OA3xOriginalProductKeyPkPn ??? (on Win10 build 10586 (1511) found using WMI Code Creator v1.0) added UBR from the registry Download Link(s) v1.00.001.04Alpha : 21151215.2 datafilehost [SFX: self extracting archive] SHA-256 : MSWinOSInfoRS10_1.00.001.04Alpha.exe 71CD92E6DB2D2C578A47DB3AF17D5B2D62B6040E9D640BB53AB24E8D46721BBF SHA-256 : MSWinOSInfoRS10_1.00.001.04Alpha.vbs 440DD9B0919CF395D93BDE0D5C2E78B8FA1F68E1FFFEF69D21673D2FC57DE810 datafilehost [vbs file : VBScript file] SHA-256 : MSWinOSInfoRS10_1.00.001.04Alpha.vbs 440DD9B0919CF395D93BDE0D5C2E78B8FA1F68E1FFFEF69D21673D2FC57DE810 File Output (example): http://pastebin.com/FY1d67Z5
Just to let you know, "WMIC Path SoftwareLicensingService Get OA3xOriginalProductKey" command works for both win8 & Win10...
MSWinOSInfoRS | v1.01.119.01Alpha : 21151221.1 MSWinOSInfoRS | v1.01.119.01Alpha : 21151221.1 VBScript Updated see Post #1