It is quite a familiar scenario that helpdesk/tech support/systems administration folks need to see what is there on a remote box without using a remote viewer like VNC or using RDP (Of course I am talking about Microsoft Windows family here 🙂 ).
Say like the other day when I wanted to refresh group policies on a desktop box without of course disturbing the user logged in there.
Here,PsTools becomes the swiss army knife of remote administration and management.Download it from here
Suppose I want to do a familiar gpupdate/force on a box sitting miles away from me(but on network and reachable) :
1.I will need to get to the remote command prompt.
2.Then,do the thing – gpupdate/force.
Here is a way that can be done :
From your local windows box,open command prompt and navigate to where the psexec tool is kept.One trick I use to avoid navigating to the PsTools folder in command prompt is to copy all the tools from there to C:WindowsSystem32.
Then you can launch any of the tool from anywhere in command prompt.
General way to get remote command prompt is :
psexec \computer-name cmd
Always ensure that the remote command prompt is of the machine that you want to do your stuff on(by typing hostname on the remote prompt).After all,there is no need to remotely reboot a box accidentally right?
I hope this article has helped to know the wonderful suite of PsTools,there are other utilities in that set which are quite helpful.Personally,I have found psexec a lifesaver many a times hence this post.(See my earlier post – Wonderful netsh).