var wbemFlagReturnImmediately = 0x10;
var wbemFlagForwardOnly = 0x20;
var objWMIService = GetObject("winmgmts:\\\\.\\root\\CIMV2");
var colItems = objWMIService.ExecQuery("SELECT * FROM Win32_OperatingSystem", "WQL",
wbemFlagReturnImmediately | wbemFlagForwardOnly);
var enumItems = new Enumerator(colItems);
var objItem = enumItems.item();
WScript.Echo("Caption: " + objItem.Caption);
标签:enumItems,操作系统,JScript,查找,var,colItems,wbemFlagForwardOnly,objItem
From: https://www.cnblogs.com/qzxff/p/17629843.html