We know now there is four Windows 8 editions:
Windows 8 editions
Windows 8
Windows 8 Pro
Windows 8 Enterprise
Windows RT
The goal is to add the SKU numbers to Windows Post-Install Wizard to improve the program for Windows 8 editions.
This can be detected with this vbs file:
SKU.vbs
On Error Resume Next
Const wbemFlagReturnImmediately = &h10
Const wbemFlagForwardOnly = &h20
arrComputers = Array(".")
For Each strComputer In arrComputers
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_OperatingSystem", "WQL", _
wbemFlagReturnImmediately + wbemFlagForwardOnly)
For Each objItem In colItems
WScript.Echo "OperatingSystemSKU: " & objItem.OperatingSystemSKU
Next
Next
Many thanks to share your results.
Regards
This post has been edited by myselfidem: 19 September 2012 - 10:42 AM



Help

Back to top











