If you are in need of performing a task on a remote computer and you don’t want to start up a RDP session to do so (say you want to run ipconfig /all) you can use the psexec tool from Technet to do this and anything else you can dream up. You can download Psexec from here: http://technet.microsoft.com/en-us/sysinternals/bb897553
Once you have it downloaded (please note that the file you download contains numerous tools and psexec is just one of them) and unzipped you are going to want to copy the executable into a folder that is in your executable path (say c:\windows).
To give you an example of how to use this tool start up a command prompt and type in “psexec \\remoteworkstationname -u “username” -p “userpassword” ipconfig /all” and see what you get. Some things to remember here is that if you are using a domain level account you need to include the domain name then “\” then the user name. It is also a good idea to enclose your user name and password in double quotes.
As you can see from the example the things that you can do are pretty much anything you can do from the command line of the computer as if you are sitting at it. So here are some other examples:
- gpupdate /force
- gpresult /r
- cmd
- regedit
0 Responses to “Using Technet Psexec”