Page 2 of 2 <12
Topic Options
#133175 - 2005-02-03 11:35 AM Re: Running a remote kix script
Anonymous
Unregistered


Jens,

Thanks for reply, Im running w2k client with W2k server. Do I have to configure WMI within w2k?

Regards

Steve.

Top
#133176 - 2005-02-05 06:40 PM Re: Running a remote kix script
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
WMI is already installed on any OS since Windows 2000 on onwards. Step through the code and use error checks to see why it fails.
_________________________
There are two types of vessels, submarines and targets.

Top
#133177 - 2005-02-08 04:56 PM Re: Running a remote kix script
Anonymous
Unregistered


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)


Top
#133178 - 2005-02-08 05:14 PM Re: Running a remote kix script
Anonymous
Unregistered


Have managed to get this working using PSEXEC from MACIEP suggestion I used the interactive switch to show that the script was running remotely. Can I do something similar with the UDF?

Regards

Steve.

Top
#133179 - 2005-02-08 06:12 PM Re: Running a remote kix script
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Beware that PSEXEC passes creds and passwords in clear text so if you are doing it, the kiddies will have a field day.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
Page 2 of 2 <12


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

Who's Online
0 registered and 323 anonymous users online.
Newest Members
Audio, Hoschi, Comet, rrosell, PatrickPinto
17880 Registered Users

Generated in 0.05 seconds in which 0.024 seconds were spent on a total of 13 queries. Zlib compression enabled.

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