Using Technet Psexec

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
And the list goes on and on. If you really want to get creative you can run installers. A recent article in Windows IT Pro gave an example of installing Security Essentials using this command: “psexec \\remoteworkstationname -S \\servername\softwaresharename mssefullinstall-XP-x86\setup.exe /S /runwgacheck /o”
Some additional features worth mentioning are the ability to run the command on all computers that are listed in a specific file or a really dangerous one \\* which will run on all computers in the domain.

 

 

 

 

 

 

Advertisement

0 Responses to “Using Technet Psexec”



  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s




Categories

Twitter Updates

  • Fact: if you spend any amount of time on Facebook you need to get a hobby and a life! 1 month ago
  • Samsung ad says it all about Apple fanboys: http://t.co/ZgZGu6n5 3 months ago
  • Just finished Steve Job's Bio. Interesting read. Yes he was what most would call a jerk but he didn't put up with being sub par. 3 months ago
  • Watching iGenius on Discovery. Make me vomit! 4 months ago
  • The masses will know of Steve Jobs death, but the technical world lost a true engineer with the death of Dennis Ritchie. 4 months ago

Follow

Get every new post delivered to your Inbox.