|Purpose:||Remotely execute commands|
|Format:||REXEC [/H host /U name /P password /IPv6 /Rn /Tn] host [/L userid] command ...|
|command||The command to execute|
REXEC allows remote execution of commands on any system with the rexec service installed. Press Ctrl-C to disconnect from the other system.
If you don't specify a username, REXEC will use the current username. You can provide a password on the command line by appending it to the username (i.e., "User:Password"). If you don't provide a password, REXEC will prompt for it.
If you want to do redirection on the remote system, enclose the argument list in double quotes. For example:
REXEC /H host /U user /P password "command | command2"
The double quotes will be removed before passing the commands to the remote system.
Note: Windows does not include the rexec service, so you will need to get one from a third-party and install it on the remote system before executing REXEC.
|0||No firewall (default setting)|
|1||Connect through a tunneling proxy|
|2||Connect through a SOCKS4 Proxy|
|3||Connect through a SOCKS5 Proxy|