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


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
 
Ad

Advertisements

H

Herb Martin

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.
 
Ad

Advertisements

F

foxidrive

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?
 

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

Top