Home > Articles > Home & Office Computing > Microsoft Windows Desktop

  • Print
  • + Share This
From the author of

Conclusion

CIM_DataFile is not exactly the most enthralling part of WMI. All the tasks accomplished with the scripts presented in this article could have been accomplished much more easily with Windows Explorer. The important point to note, though, is that Windows Explorer is useful only for viewing and manipulating the filesystem. The VBScript techniques used here to interact with WMI have a scope that spreads to virtually every aspect of Windows management. All you need to use them in other situations is knowledge of the WMI objects that reside on a computer and the properties and methods that these objects expose.

There is much, much more to WMI than merely viewing and manipulating objects. I did not even touch upon the most interesting aspects of its operation, such as the ability to search for objects in the WMI repository, to perform bulk operations on groups of objects, and to get WMI to inform a script asynchronously when a system that it is monitoring suddenly changes state. However, at the bottom line, using WMI consists largely of reading the properties and executing the methods of WMI objects. Everything else is just a fancy way of getting hold of the objects you need!

  • + Share This
  • 🔖 Save To Your Account