Loading |
VBScript |
JavaScript |
Powershell |
Search Options: WMI MSSmBios_RawSMBiosTables QueryContent of WMI MSSmBios_RawSMBiosTables Query.jsMD5 Hash: 23C28570D309A22BAA0C1CDDEE657E92 |
||
var wbemFlagReturnImmediately = 0x10;
var wbemFlagForwardOnly = 0x20; var arrComputers = new Array("."); for (i = 0; i < arrComputers.length; i++) { WScript.Echo(); WScript.Echo("=========================================="); WScript.Echo("Computer: " + arrComputers[i]); WScript.Echo("=========================================="); var objWMIService = GetObject("winmgmts:\\\\" + arrComputers[i] + "\\root\\WMI"); var colItems = objWMIService.ExecQuery("SELECT * FROM MSSmBios_RawSMBiosTables", "WQL", wbemFlagReturnImmediately | wbemFlagForwardOnly); var enumItems = new Enumerator(colItems); for (; !enumItems.atEnd(); enumItems.moveNext()) { var objItem = enumItems.item(); WScript.Echo("Active: " + objItem.Active); WScript.Echo("DmiRevision: " + objItem.DmiRevision); WScript.Echo("InstanceName: " + objItem.InstanceName); WScript.Echo("Size: " + objItem.Size); try { WScript.Echo("SMBiosData: " + (objItem.SMBiosData.toArray()).join(",")); } catch(e) { WScript.Echo("SMBiosData: null"); } WScript.Echo("SmbiosMajorVersion: " + objItem.SmbiosMajorVersion); WScript.Echo("SmbiosMinorVersion: " + objItem.SmbiosMinorVersion); WScript.Echo("Used20CallingMethod: " + objItem.Used20CallingMethod); } } | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |