Re: remote machine execution



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.






"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: Accessing PCs that connect to SBS server 2003 via VPN
    ... We have dual nic + router configuration. ... subnet from the external nic which is connected to the router. ... run the Remote Access Wizard (Server Management | To ... update the actual user profile on the remote machine with your ...
    (microsoft.public.windows.server.sbs)
  • Re: Remote debugging a mixed DLL
    ... Here Path 1) is the remote machine where the Win32 service is running ... But when i do the local debugging i can put breakpoints. ... the modules window that it's loading the correct pdb from the remote machine. ...
    (microsoft.public.vsnet.debugging)
  • Re: Accessing PCs that connect to SBS server 2003 via VPN
    ... Let SBS handle the DHCP service for the LAN. ... run the Remote Access Wizard (Server Management | To ... to the SBS server for software installations/updates. ... update the actual user profile on the remote machine with your ...
    (microsoft.public.windows.server.sbs)
  • Re: Remove programs with a script?
    ... As for the remote impersonation thing, ... executed) on the remote machine. ... The /c switch causes PSexec to copy the file to the target system for you, ... for someone who just wants to run a batch script. ...
    (microsoft.public.scripting.wsh)