On Your Own: Lab 16 Retrieving Hotfix Information

In this lab, you use the Win32_QuickFixEngineering provider to retrieve information about hotfixes installed on your server. This lab incorporates techniques learned in earlier chapters into the information about WMI discussed in this chapter.

Lab Instructions

  1. Open Notepad.exe.

  2. Turn on Option Explicit by typing Option Explicit on the first line of the script.

  3. Declare variables to be used in the script. There are six variables to be used: str-Computer, objWmiService, wmiNS, wmiQuery, objItem, and colItems.

  4. Assign the value of "." to the variable strComputer. The code will look like the following:

    strComputer = "."
  5. Assign the value of "\root\cimv2" to the variable wmiNS. The code will look like the following: ...

Get Microsoft® Windows® Scripting Self-Paced Learning Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.