You are here

Remote control of a Windows computer from the command line


Hello. Sometimes there are tasks when you need to do something on a remote computer, or there is no possibility to connect via RDP, for example, if the server is suddenly heavily loaded, and it does not have enough resources to start the terminal session (yes, I have met, do not say That often, but it happened). Either from the command line the task is done faster. Well, or else as an option, if you need something to do secretly, in the event that the user at the time when you need to do it working on the computer. Linux users are much easier with this, they have ssh. But in Windows it is possible to connect, if I may say so, to the command line.

In general, the SysInternals utilities come to help us, namely - pstools, and more specifically - psexec from this set of utilities. You can download this kind ]]>here]]>.

After you downloaded, you need to unzip these utilities somewhere. I usually on disk C: I create a folder ps, that it would be more convenient to get to utilities. They do not require installation. In order to connect to a remote computer on the command line, type:

c:\ps\PsExec.exe \\192.168.1.114 -u domain\user -p password cmd

For a place cmd it is possible for example to launch any batch file or other command.

 

0 1

Share the article with your friends in social networks, maybe it will be useful to them.


If the article helped you, you can >>thank the author<<