Using PSExec to Run Commands Remotely

Let’s say you want to sit at your desk and run commands on someone else’s machine. If you’re on a domain, you can do this quite easily with the third-party utility PSExec.

psexec -s \\server. cmd
That’s correct. There should be a dot at the end of the hostname. This is so it will be interactive with your local machine. If the dot is not present, it will just open a CMD window on the remote machine.

Leave a Reply

Your email address will not be published. Required fields are marked *