hi,

i use the following code to start a remote process on another w2k-workstation. problem: the remote process starts, but is not visible. if i start the script against my own workstation, the process-window is visible...

anybody knows whats wrong!?

kind regards,

johannes

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)
? @error
exit @error
ENDFUNCTION

RemoteExec("notepad.exe","PC114")