any one know how to use psexec

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
Mohab el Amry said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top