"Mohab el Amry" <(E-Mail Removed)> wrote in message
news:8C03B0FD-A6F7-4D84-8207-(E-Mail Removed)...
> 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
|