In all the years I've used KiXtart, I don't think I've ever tried to use an OUT parameter for a function. All function parameters I've ever defined are IN parameters. Does KiXtart not support this?

I'm trying to manipulate the registry using WMI because the KiXtart method will not work against the remote computer. However, all the WMI registry GETs put the data in the last parameter (variable) specified in the function, and I cannot get this to work no matter what I try.

Here's an example:

 Code:
$oWMIReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\COMP1\root\default:StdRegProv")
$HKLM = 2147483650
$RegKey = "System\CurrentControlSet\Services\TCPIP\Performance"
$RegValue = "Open"
$Result = $oWMIReg.GetStringValue($HKLM, $RegKey, $RegValue, $OUTValue)
$ = MessageBox($OUTValue, "GetStringValue")


In theory (and in vbscript) the registry value will be in the variable $OUTValue.