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 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.