Re: any one know how to use psexec

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Pegasus \(MVP\) (I.can_at_fly.com)
Date: 11/28/04


Date: Sun, 28 Nov 2004 23:44:42 +1100


"Mohab el Amry" <MohabelAmry@discussions.microsoft.com> wrote in message
news:8C03B0FD-A6F7-4D84-8207-CE287D8D871C@microsoft.com...
> i am trying to execute an exe file over remote machine and
> and this is an example of the test syntex i wrote
> psexec \\remotename :@c:\calc.exe
> it prompet a message that says
> "make sure that the default admins$ share is enabled on $
> can any one tell me the way to use it correctly

The correct syntax is:

psexec \\RemoteName c:\calc.exe

However . . . psexec.exe is suitable for command line
commands only. Calc.exe has a graphical user interface
and will therefore not work under psexec.exe. Try
something simple, e.g.

psexec \\RemoteName attrib.exe c:\*.*

I don't know if the administrative shares need to be
enabled on the target machine or not. If they do then
you can easily fix it like so:

HKLM\System\CurrentControlSet\Services\LanmanServer\Parameters
Set the value of : AutoShareServer to 1
Set the value of : AutoShareWks to 1



Relevant Pages

  • Re: netsh and DHCP server
    ... Unfortunately psexec sends the password as clear text, ... >> remote machine, I want to be able to make changes to DHCP. ... >> Unable to determine the DHCP Server version for the Server ... >> I need to execute commands using a script though, ...
    (microsoft.public.windows.server.scripting)
  • 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: remote machine execution
    ... I use robocopy and copy my files to remote machine directory. ... Seems psexec don't work, or shld i write ...
    (microsoft.public.windows.server.scripting)
  • PSExec vs Task Scheduler
    ... Can someone explain/clarify any differences between launching processes on ... a remote machine using psexec with/without specific user credentials? ... If I stage the installation file to the remote machine (a Wise created .exe ...
    (microsoft.public.win2000.cmdprompt.admin)