Page 1 of 1 1
Topic Options
#113051 - 2004-02-02 11:31 AM remote process starts in hidden window
gueste Offline
Lurker

Registered: 2004-02-02
Posts: 1
Loc: buxtehude
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")

Top
#113052 - 2004-02-02 11:41 AM Re: remote process starts in hidden window
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
well, is there interactivity setting?
hmm...
started thinking... it most likely is not possible.
it has something to do with security and stuff...
_________________________
!

download KiXnet

Top
#113053 - 2004-02-02 01:25 PM Re: remote process starts in hidden window
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
correct. remote processes are running under the security context of either the remote system account, or under 'your' context.

there are ways of making it execute 'visibly' but it wouldn't operate under the remote user context and would not have network permissions
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 905 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.054 seconds in which 0.027 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org