Summary

This chapter has focused on issues associated with using WMI on remote machines. We started by demonstrating how to connect to the WMI service of a remote machine and retrieve and manipulate references to remote WMI objects. This was followed by a discussion of error handling with WMI and VBScript. We showed a variety of techniques and tricks that can be used to ensure that scripts run smoothly even when connecting to WMI over a network. In the final section, we considered how to write scripts that can perform actions on a fleet of machines specified by name or IP address. These issues were all illustrated with an examination of Win32_Process, a WMI object that represents the programs running on a Windows 2000 box.

Get Windows Management Instrumentation (WMI) now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.