I have tried to use the UDF in the following way, but get the error. 'Failed to find open script' when I get to this part of the script, Code:
 $Connect = GetObject('winmgmts:{impersonationLevel=impersonate}!//'+$computer+'/root/cimv2:Win32_Process') 



The following is what im using to test. Code:
 FUNCTION RemoteExec($command, optional $computer)
dim $Connect, $Process
if not $computer
$computer='.'
endif
if instr($computer,'\')
$computer=substr($computer,instrrev($computer,'\')+1)
endif
$Connect = GetObject('winmgmts:{impersonationLevel=impersonate}!//'+$computer+'/root/cimv2:Win32_Process')
$Process = $Connect.Create($Command)
exit @error
ENDFUNCTION


RemoteExec('kix32 c:\windows\hiddrv.kix', $ITadmin)



Steve.
_________________________
Dont worry because a rival imitates you. As long as they follow in your tracks they cant pass you!