Alex Hearl
asked on
cmd on a remote machine..?
Hi there I have once used a tool that allowed me, on my XPsp2 machine, to launch from the command line another window the was running cmd.exe on a remote machine (also XPsp2) any command I entered there would be run on the remote machine - not mine.... does anyone know of this tool or an alternative....?
Alex.
Alex.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
check out psexec from http://www.sysinternals.com/Utilities/PsExec.html
or you can use nc netcat http://netcat.sourceforge.net/
From: http://m.nu/program/util/netcat/netcat.html
Remote command prompt anyone?
On a Windows NT server issue the following command in the directory that contains netcat:
nc -l -p1234 -d -e cmd.exe –L
This –l puts netcat into listen mode, the -p1234 tells netcat to use port 1234, the –d allows netcat to run detached from the console, the –e cmd.exe tells netcat to execute the cmd.exe program when a connection is made, and the –L will restart Netcat with the same command line when the connection is terminated.
On the client system issue the following command:
nc destination 1234
This command causes netcat to connect to the server named destination on port 1234. Immediately you are given a console connection to the destination server. Be careful! To exit the remote console session type:
exit
You will be returned to your own console and will be able to reconnect to the destination server because netcat was started on the destination server with the –L option.
or you can use nc netcat http://netcat.sourceforge.net/
From: http://m.nu/program/util/netcat/netcat.html
Remote command prompt anyone?
On a Windows NT server issue the following command in the directory that contains netcat:
nc -l -p1234 -d -e cmd.exe –L
This –l puts netcat into listen mode, the -p1234 tells netcat to use port 1234, the –d allows netcat to run detached from the console, the –e cmd.exe tells netcat to execute the cmd.exe program when a connection is made, and the –L will restart Netcat with the same command line when the connection is terminated.
On the client system issue the following command:
nc destination 1234
This command causes netcat to connect to the server named destination on port 1234. Immediately you are given a console connection to the destination server. Be careful! To exit the remote console session type:
exit
You will be returned to your own console and will be able to reconnect to the destination server because netcat was started on the destination server with the –L option.
Use PSexec as Dbergert mentioned.
psexec \\machine cmd
psexec rocks.
psexec \\machine cmd
psexec rocks.
Please note the Microsoft has purchased Sysinternals (creators of Pstools) and changed the EULA. It is now not free for commercial use.
Microsoft has a tool called rcmd, http://support.microsoft.com/kb/151519/ that can be downloaded here: http://www.petri.co.il/download_free_reskit_tools.htm
Where does it say that it is not free for commercial use ?
http://www.sysinternals.com/Licensing.html ?
http://www.sysinternals.com/Blog/
"So what’s going to happen to Winternals and Sysinternals? Microsoft is still evaluating the best way to leverage the many different technologies that have been developed by Winternals. Some will find their ways into existing Microsoft products or Windows itself and others will continue on as Microsoft-branded products. As for Sysinternals, the site will remain for the time being while Microsoft determines the best way to integrate it into its own community efforts, and the tools will continue to be free to download."
http://www.sysinternals.com/Licensing.html ?
http://www.sysinternals.com/Blog/
"So what’s going to happen to Winternals and Sysinternals? Microsoft is still evaluating the best way to leverage the many different technologies that have been developed by Winternals. Some will find their ways into existing Microsoft products or Windows itself and others will continue on as Microsoft-branded products. As for Sysinternals, the site will remain for the time being while Microsoft determines the best way to integrate it into its own community efforts, and the tools will continue to be free to download."
>> Please note the Microsoft has purchased Sysinternals (creators of Pstools) and changed the EULA. It is now not free for commercial use.
Where does it say that? I just downloaded psexec just to read the eula and it doesn't say anything about not being free for commercial use. The closest that I can find is:
"You may not [...] use the software for commercial software hosting services." whatever that means.
Where does it say that? I just downloaded psexec just to read the eula and it doesn't say anything about not being free for commercial use. The closest that I can find is:
"You may not [...] use the software for commercial software hosting services." whatever that means.
For this you have to be Domain Admin for your domain.
From any machine right click "MY Computer", select manage.
In left hand pane, Right click and select connect to another computer.
Fill in the name of remote computer.
Then goto Services and Applications and then select services.
Locate Telnet and start the service.
Thats it.
Now goto dos prompt on your machine.
telnet Remote_Machine
This will open dos prompt of remote machine. Any command executed will be run on remote machine.