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.
Turn on Option Explicit by typing Option Explicit on the first line of the script.
Declare variables to be used in the script. There are six variables to be used: str-Computer, objWmiService, wmiNS, wmiQuery, objItem, and colItems.
Assign the value of "." to the variable strComputer. The code will look like the following:
strComputer = "."
Assign the value of "\root\cimv2" to the variable wmiNS. The code will look like the following: ...