Loading
Scriptbox
 VBScript Links 
 About VBscript 
 JavaScript Links 
 About JavaScript 
 Powershell Links 
 PSCRIPT the Script Launcher 
 PowerShell Shortcut Keys 
 About Powershell 
     VBScript
    JavaScript
    Powershell
Disclaimer
Contact
Latest 10 Scripts
Script search
  :: { Category } :: 0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ
         

Search Options:  WMI  MSStorageDriver_ATAPISmartData  Query  

 Content of WMI MSStorageDriver_ATAPISmartData Query.js
MD5 Hash: 2E2C76DA91C44CE580FC67427DDF70CA
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 MSStorageDriver_ATAPISmartData", "WQL",
wbemFlagReturnImmediately | wbemFlagForwardOnly);

var enumItems = new Enumerator(colItems);
for (; !enumItems.atEnd(); enumItems.moveNext()) {
var objItem = enumItems.item();

WScript.Echo("Active: " + objItem.Active);
WScript.Echo("Checksum: " + objItem.Checksum);
WScript.Echo("ErrorLogCapability: " + objItem.ErrorLogCapability);
WScript.Echo("ExtendedPollTimeInMinutes: " + objItem.ExtendedPollTimeInMinutes);
WScript.Echo("InstanceName: " + objItem.InstanceName);
WScript.Echo("Length: " + objItem.Length);
WScript.Echo("OfflineCollectCapability: " + objItem.OfflineCollectCapability);
WScript.Echo("OfflineCollectionStatus: " + objItem.OfflineCollectionStatus);
try { WScript.Echo("Reserved: " + (objItem.Reserved.toArray()).join(",")); }
catch(e) { WScript.Echo("Reserved: null"); }
WScript.Echo("SelfTestStatus: " + objItem.SelfTestStatus);
WScript.Echo("ShortPollTimeInMinutes: " + objItem.ShortPollTimeInMinutes);
WScript.Echo("SmartCapability: " + objItem.SmartCapability);
WScript.Echo("TotalTime: " + objItem.TotalTime);
try { WScript.Echo("VendorSpecific: " + (objItem.VendorSpecific.toArray()).join(",")); }
catch(e) { WScript.Echo("VendorSpecific: null"); }
WScript.Echo("VendorSpecific2: " + objItem.VendorSpecific2);
WScript.Echo("VendorSpecific3: " + objItem.VendorSpecific3);
try { WScript.Echo("VendorSpecific4: " + (objItem.VendorSpecific4.toArray()).join(",")); }
catch(e) { WScript.Echo("VendorSpecific4: null"); }
}
}

   © 2008 - 2013 Boris Toll      :: Scripts available: 6.481 ::      :: scriptbox.toll.at ::      :: powered by www.toll.at ::
  Google Entries:n/a
  Yahoo Backlinks:n/a
  Live Backlinks:n/a
  del.icio.us Bookmarks:n/a
  Technorati Links:n/a