298 Part V: Security and Troubleshooting
tion, I do not supply the computer name in single quotes, but contain it in a variable called str-
Computer enclosed in double quotes. When I supply a computer name for the key name
property of Win32_ComputerSystem class, the computer name must be enclosed in single
quotes. To use a single variable for both of these instances that have different requirements, I
devised the simple FunFix function and included it at the bottom of the script. This function
takes the string that is supplied to it, appends a single quote as both a prefix and a suffix, and
assigns the resultant string to be equal to the function name. This enables dual use of the
same variable name.
RetrieveComputerSystem.vbs
strComputer ...