Re: remote machine execution



The current problem in psexec is they cannot pass "=" sign over to remote
machines.

it will pass the "/" sign.

Anyway i will try to find a solution.


"Michael Bednarek" <ROT13-zo@xxxxxxxxxxxxx> wrote in message
news:ad56d29abgptfju4v2860jfvasdberi0js@xxxxxxxxxx
On Fri, 4 Aug 2006 09:51:38 +0800, "James" wrote in
microsoft.public.windows.server.scripting:

i also went to sysinternals forum and they gave the same code as u :

psexec \\%1 "%remote_drive%:\%remote_dir_install%\Capinst.exe" /AdvCli
/SLP=smsserver

i tried and it only pass the exe over the remote machine without the
arguments
c:\sms_install_files\Capinst.exe exited on nol-b0000586 with error code 0.

Why wasn't the arguments (/AdvCli /SLP=smsserver) passed over ? I m using
1.72 version of psexec.

What makes you think the arguments were not passed?

What happens when you execute the command line locally on machine
nol-b0000586? Did
you use any credentials to run the command via psexec, or -s (SYSTEM
account)?

I just executed this command:
$ psexec \\host -s cmd.exe /c Echo /AdvCli /SLP

PsExec v1.72 - Execute processes remotely
Copyright (C) 2001-2006 Mark Russinovich
Sysinternals - www.sysinternals.com


/AdvCli /SLP
cmd.exe exited on mb-nt51n with error code 0.

which shows that all arguments were passed.

I suspect that the process spawned by psexec on the remote PC needs some
network
resources which are not available to it.

Why do you want to run Capinst.exe via psexec anyway? I've never used it,
but
it seems to me it is normally used in a logon script.

"Michael Bednarek" <ROT13-zo@xxxxxxxxxxxxx> wrote in message
news:q2v3d2lsh2gah19q5h37jrab5gdmuf2ndq@xxxxxxxxxx
On Thu, 3 Aug 2006 08:58:10 +0800, "James" wrote in
microsoft.public.windows.server.scripting:

at my machine, i run psexec in the batch file which resides on remote
machines

psexec \\%1 "%remote_drive%:\%remote_dir_install%\Capinst.exe /AdvCli
/SLP=smsserver"

it does not seems to execute and error is:

Starting c:\sms_install_files\Capinst.exe /AdvCli /SLP=smsserver on
<remote
computer>.

PsExec could not start c:\sms_install_files\Capinst.exe /AdvCli
/SLP=smsserveron
< remote computer>:
The system cannot find the path specified.

================================
why is this so ? i have admin permission over remote machines.

The error message is correct and gives a hint. You put the quotes in
the wrong place. Try:
psexec \\%1 "%remote_drive%:\%remote_dir_install%\Capinst.exe" /AdvCli
/SLP=smsserver

"Clay Calvert" <ccalvert@xxxxxxxxxxx> wrote in message
news:mmftc2d7f6q6u2gkkh8auov7phkem3n2i0@xxxxxxxxxx
On Tue, 1 Aug 2006 09:01:40 +0800, "James" <jkklim@xxxxxxxxxxx> wrote:

does psexec runs only for exe files instead of other extension ?

As in Michael's example, it will run .bat and also .vbs, etc.

I've never tried running a non-executing extension, but there is
always the Start command.

psexec \\computer %comspec% / start c:\file.txt

--
Michael Bednarek http://mbednarek.com/ "POST NO BILLS"


.



Relevant Pages

  • Re: remote machine execution
    ... i tried and it only pass the exe over the remote machine without the ... What happens when you execute the command line locally on machine nol-b0000586? ... you use any credentials to run the command via psexec, ... I suspect that the process spawned by psexec on the remote PC needs some network ...
    (microsoft.public.windows.server.scripting)
  • Re: VB newbie - exposing VB subs to VBA?
    ... > differences of the apps on the two machines, ... > in on the command line easily enough. ... ActiveX component and use COM to connect to it. ... Not sure what you mean by "fire up a command line app from a remote ...
    (microsoft.public.vb.com)
  • Re: How to run a script on a remote host
    ... There is a utility called psexec to execute command on remote ... Those tools are a great addition to my library, but how would I execut a set of vbscript on a remote host, such as a simple MsgBoxwithout using logon script functions of AD? ... you can copy the scripts to the remote computers first and execute them. ...
    (microsoft.public.scripting.wsh)
  • Re: how to use psexec to defrag all my computers
    ... I'm not sure about the script but from the Command Prompt this simple command gets it going on my remotes: ... Are all the remote machines using the same Administrator name and password? ... If yes run it from a local Administrator account with the same credentials, but if you are logged on as an administrator I don't think that should be necessary. ... For the life of me I can't figure out how to use this with psexec logging in as the local admin with a -u administrator to defrag all my workstations in this file. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: remote machine execution
    ... i run psexec in the batch file which resides on remote ... it does not seems to execute and error is: ... i have admin permission over remote machines. ...
    (microsoft.public.windows.server.scripting)