Break OnDim $SO$SO=SetOption('Explicit','On')$SO=SetOption('NoVarsInStrings','On')$SO=SetOption('NoMacrosInStrings','On') Dim $sComputers,$sComputer,$Details,$DetailDim $Alive,$WMIOkay$sComputers = ReadFile(@ScriptDir+'\'+'computer_list.txt')For Each $sComputer In $sComputers If $sComputer $Alive = Ping($sComputer) If $Alive $WMIOkay = ConfirmWMI($sComputer) If $WMIOkay $Details = GetBIOSInfo($sComputer) ? '*** ' + $sComputer + ' ***' ? '*********************' ? For Each $Detail In $Details $Detail ? Next EndIf EndIf EndIfNextExit @ERROR Function GetBIOSInfo(optional $sComputer) Dim $WMIService,$BIOSItems,$BIOSName,$BIOSVersion,$SMBIOSVersion Dim $Item, $SerialNumber, $Manufacturer, $BIOSArray[4] $sComputer=IIf(Not $sComputer,'','\\'+Join(Split($sComputer,'\'),'',3)+'\') $WMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!"+$sComputer+'root\cimv2') $BIOSItems = $WMIService.ExecQuery("Select * from Win32_BIOS where PrimaryBIOS = true", , 48 ) For Each $Item in $BIOSItems $BIOSName = Trim($Item.Name) $BIOSVersion = Trim($Item.Version) $SMBIOSVersion = Trim($Item.SMBIOSBIOSVersion) $SerialNumber = Trim($Item.SerialNumber) $Manufacturer = Trim($Item.Manufacturer) Next $BIOSArray[0]=$BIOSName $BIOSArray[1]=$BIOSVersion $BIOSArray[2]=$SMBIOSVersion $BIOSArray[3]=$SerialNumber $BIOSArray[4]=$Manufacturer $GetBIOSInfo=$BIOSArrayEndFunction Function ReadFile($file) Dim $lf, $f, $_, $t $lf=CHR(10) $f=FreeFileHandle $_=Open($f,$file) If @ERROR Exit @ERROR EndIf Do $t=$t+$lf+ReadLine($f) Until @ERROR $_=Close($f) $ReadFile=Split(SubStr($t,2),$lf)EndFunction Function Ping($PC) Shell'%comspec% /c ping -n 1 '+$PC+' >nul' $Ping = NOT @ERROREndFunction Function ConfirmWMI(optional $sComputer) Dim $objWMIService,$objWMISetting,$colWMISettings $sComputer=IIf(Not $sComputer,'','\\'+Join(Split($sComputer,'\'),'',3)+'\') $objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!"+$sComputer+'root\cimv2') If @ERROR $ConfirmWMI = Val("&"+Right(DecToHex(@ERROR),4)) Exit $ConfirmWMI EndIf $colWMISettings = $objWMIService.ExecQuery("Select * from Win32_WMISetting") For Each $objWMISetting In $colWMISettings $ConfirmWMI = $objWMISetting.BuildVersion Next Exit $ConfirmWMIEndFunction
Generated in 0.081 seconds in which 0.029 seconds were spent on a total of 13 queries. Zlib compression enabled.
") !=-1) { tempah=tempah.substring(tempah.indexOf("")+5,tempah.indexOf("")); codes[i].innerHTML="" + dotag(tempah.substring()) + ""; } } //var pres = document.getElementsByTagName("pre"); //for (var i=0, maxi = pres.length; i < maxi; i++) { // var tempah = pres[i].innerHTML; // if (tempah.indexOf("[postprep") !=-1) { // tempah=tempah.substring((tempah.indexOf("]",tempah.indexOf("[postprep"))+1)); // pres[i].innerHTML=dotag(tempah); // } //} function ytag(which_one) { var codes = document.getElementsByClassName("ubbcode-body"); var thisone = codes[which_one].innerHTML; codes[which_one].innerHTML = "" + dotag(thisone.substring(5+thisone.indexOf(""),thisone.indexOf(""))) + ""; var heads = document.getElementsByClassName("ubbcode-header"); heads[which_one].innerHTML = "Code:" + ' '; } function ttag(which_one) { var codes = document.getElementsByClassName("ubbcode-body"); var thisone = ""; if (codes[which_one].innerText != undefined) { thisone += codes[which_one].innerText; } else { thisone += codes[which_one].textContent; } codes[which_one].innerHTML = thisone + ""; var heads = document.getElementsByClassName("ubbcode-header"); heads[which_one].innerHTML = "Code:" + ' '; }
")+5,tempah.indexOf("
" + dotag(tempah.substring()) + "
" + dotag(thisone.substring(5+thisone.indexOf(""),thisone.indexOf(""))) + "
"),thisone.indexOf("
"; if (codes[which_one].innerText != undefined) { thisone += codes[which_one].innerText; } else { thisone += codes[which_one].textContent; } codes[which_one].innerHTML = thisone + "