Microsoft® Windows® 2000 Scripting Guide
« Previous | Next »
WMI has a reputation for being very difficult to learn and even more difficult to use. In many respects, this reputation has been acquired not so much because WMI really is difficult but simply because it is so big. WMI can be used to manage computer hardware, computer software, and nearly everything in between; the assumption is that any technology that encompasses so many different elements must be difficult.
In reality, though, many of the system administration tasks that can be performed by using WMI follow one of a handful of standard approaches. For example, you have already seen how a template can serve as the basis for scripts that return information about almost any managed resource. In the opening pages of this chapter, the same basic script with one or two minor modifications was used to return information about items as disparate as installed memory, services, and events recorded in the event logs.
The following sections of this chapter present basic script templates that can be used to:
Note
strComputer =
"atl-dc-01
"Send us your feedback | « Previous | Next » |