Error running remote process with WMI



Hi, I have the next code, and when I try to run get this error:

Error de Microsoft VBScript en tiempo de ejecución:
El objeto no acepta esta propiedad o método:
'Methods_(...).InParameters.SpawnInstance_objProgram'

What's the problem? Can't I run a remote process??

Const WbemAuthenticationLevelPktPrivacy = 6
strUsuario= "SRV1\administrador"
strPass= "password"
strPrograma = "notepad.exe"
strComputer = "SRV1"

' Conexión a WMI
Set objWbemLocator = CreateObject("WbemScripting.SWbemLocator")
Set objWMIServicio = objwbemLocator.ConnectServer (strComputer,
"root\cimv2", strUsuario, strPass)
objWMIServicio.Security_.authenticationLevel =
WbemAuthenticationLevelPktPrivacy

' Obtiene la clase Win32_Process
Set objProceso = objWMIServicio.Get("Win32_Process")
Set objPrograma =
objProceso.Methods_("Create").InParameters.SpawnInstance_objProgram.CommandLine
= strPrograma

'Ejecuta el programa.
'Set strShell = objWMIService.ExecMethod("Win32_Process", "Create",
objPrograma)

.


Loading