Thanks for replying,
I have used the /d switch and stepped through the script and it dosent throw any errors. The kix script that im trying to run remotely should show a gui that runs a progress bar, but it does not appear to run at all.
Could I be doing something wrong in the script?
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.exe %windir%\delprof.kix', serv2k1)