Re: remote machine execution



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: RPC Call
    ... >>> I have administrative rights to all of my machines on my network. ... I need to send an RPC command to my ... >>> machines in order to execute this application. ...
    (microsoft.public.win32.programmer.networks)
  • Re: remote shutdown
    ... Remote computer is on peer network, and I can ping the remote ... Those should work great - if you are a system administrator of the ... Two machines in a workgroup. ...
    (microsoft.public.windowsxp.work_remotely)
  • Re: Home Network Dilemma
    ... Microsoft Windows XP Professional version 5.1.2600 Service Pack 3 Build ... and the Vista machines for an hour now. ... "What is Remote Desktop Connection?": ...
    (microsoft.public.windows.server.networking)
  • RE: Help and Support - Windows 2000 Upgrade to XP
    ... Please use the problematic upgraded XP SP2 machine to initiate a Remote ... Assistance - as a Solicited Remote Assistance. ... Is there any difference between the upgraded XP SP2 computers and OEM XP ... -ANSWER- All of the upgraded machines are HP machines, ...
    (microsoft.public.windowsxp.help_and_support)
  • 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)