Good Afternoon,

I'm working on a script to check the installed patches on a remote system. I'm trying to create an object of "Microsoft.Update.Session" which points to the remote system. Doing:

 Code:
$objSession = CreateObject("Microsoft.Update.Session")
works fine for creating the object on the local system. However if I try to add:
 Code:
$strWks="remotesys"
$objSession = CreateObject("Microsoft.Update.Session", $strWks)
I get back:
 Code:
ERROR : invalid method/function call: too many parameters!


Anyone have an idea what I am doing wrong? An example is given in:
Scripting Guy Determine Patch Applied

Regards,

Brad