I'm new to JScript scripting, and I've encountered a problem when calling Windows Management Instrumentation (WMI) methods that use output parameters to return values. When I call these methods in JScript, the output values aren't set. Is there any way to call these methods in JScript?
I ran into this problem when I started writing JScript code, and this question is frequently asked in newsgroups. To understand the problem, it helps to have some background information about JScript's design. So first, I'll explain how and why the problem occurs. Then, I'll show you how to solve the problem.
Explaining the Problem
Data in JScript variables fall into two categories: primitive types and reference types. Numbers and booleans (true/false values) are primitive types because their data values are stored directly in the variable. All other data are reference types; that is, the variable contains a reference to the data, but not the data itself. (Strings are an exception because they're stored like reference types but behave like primitive types.) . . .

