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')'Reading computer list: ' + ' ::Error results: ' +@ERROR + ' ' +@SERROR ?For Each $sComputer In $sComputers If $sComputer 'Computer ' + $sComputer + ' found ' + ' ::Error results: ' +@ERROR + ' ' +@SERROR ? $Alive = Ping($sComputer) 'pinging ' + $sComputer + + ' ::Error results: ' +@ERROR + ' ' +@SERROR ? If $Alive 'Computer ' $sComputer + ' responded to ping ' + ' ::Error results: ' +@ERROR + ' ' +@SERROR ? $WMIOkay = ConfirmWMI($sComputer) 'Checking WMI on ' + $sComputer + ' ::Error results: ' +@ERROR + ' ' +@SERROR ? If $WMIOkay 'WMI appears to be responding for ' + $sComputer + ' ::Error results: ' +@ERROR + ' ' +@SERROR ? $Details = GetBIOSInfo($sComputer) 'Checking BIOS for ' + $sComputer + ' ::Error results: ' +@ERROR + ' ' +@SERROR ? For Each $Detail In $Details If $Detail 'BIOS for ' +$sComputer +': ' + $Detail + ' ::Error results: ' +@ERROR + ' ' +@SERROR ? EndIf Next EndIf EndIf EndIf ??Next 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 If $Item $BIOSName = Trim($Item.Name) $BIOSVersion = Trim($Item.Version) $SMBIOSVersion = Trim($Item.SMBIOSBIOSVersion) $SerialNumber = Trim($Item.SerialNumber) $Manufacturer = Trim($Item.Manufacturer) EndIf 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.185 seconds in which 0.101 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 + "