Running commands on remote servers

We have many citrix servers, but whenever I need to run one simple command I hate to go to all my citrix servers to run on. I wish I could just connect to one server, and access the command line for all the other server. Well you can, as I soon learned with psexec. It’s a Microsoft tool (formerly sysinternals), and you can download it here.  Below is how you use it.

psexec \\RemoteComputer cmd.exe

Now your at the command line of the remote computer. This requires the admin$ to be on (which it usually is).

line
footer