📜 VBScript (WSH)
Get Computer System Product Info Report (VBScript)
Queries Win32_ComputerSystemProduct via WMI and prints Computer System Product Info to the console — no PowerShell required.
GetComputerSystemProductReport.vbs
' ============================================================
' GetComputerSystemProductReport.vbs
'
' Reports Computer System Product Info via WMI (Win32_ComputerSystemProduct).
'
' Usage: cscript GetComputerSystemProductReport.vbs
' ============================================================
Option Explicit
Dim objWMIService, colItems, objItem, strOutput
Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
Set colItems = objWMIService.ExecQuery("SELECT Name, Vendor, Version, IdentifyingNumber FROM Win32_ComputerSystemProduct")
strOutput = ""
For Each objItem In colItems
strOutput = strOutput & "Name: " & objItem.Name & vbCrLf
strOutput = strOutput & "Vendor: " & objItem.Vendor & vbCrLf
strOutput = strOutput & "Version: " & objItem.Version & vbCrLf
strOutput = strOutput & "IdentifyingNumber: " & objItem.IdentifyingNumber & vbCrLf
strOutput = strOutput & String(40, "-") & vbCrLf
Next
If strOutput = "" Then
WScript.Echo "No Computer System Product Info found."
Else
WScript.Echo strOutput
End If