How to remote execute a command in Windows and get its output?

  • Thread starter Thread starter sridhar123
  • Start date Start date
S

sridhar123

I would like a run a simple command remotely and get the output of it.
What are the options?

I looked at psexec already and looks like its not secure. Looking for
other alternatives.

With WMI, i found few scripts which start the command on remote
machine and unable to capture the output. Even redirecting the output
to file on remote system did not work.

Any WMI or DCOM or Other scripts available which can get the output of
the command or redirect to file?

Thanks for your response.

-Ram
 
I would like a run a simple command remotely and get the output of it.
What are the options?

Telnet is the "standard" IP way to do it -- available on MS boxes.
(There are others.)

PSExec which you have found (below...) is another:
I looked at psexec already and looks like its not secure. Looking for
other alternatives.

Nothing is secure if you are sending uncrypted traffic -- you could
implement it over IPSec maybe.

You could also just use Terminal Services or a third party similar
solution like VNC and get graphical interface as well.
With WMI, i found few scripts which start the command on remote
machine and unable to capture the output. Even redirecting the output
to file on remote system did not work.

Those are no more or less secure than PSExec.
 
I would like a run a simple command remotely and get the output of it.
What are the options?

I looked at psexec already and looks like its not secure. Looking for
other alternatives.

With WMI, i found few scripts which start the command on remote
machine and unable to capture the output. Even redirecting the output
to file on remote system did not work.

If you redirect the command output to a file on a local machine, does it go
into the file?
 
Back
Top