Using psExec to Open a Remote Command Window


System Center Essentials provides several ways to remotely manage computers, including:

  • Computer Management MMC
  • Remote Desktop
  • Remote Assistance
  • Tasks to show current information, such as process usage

Sometimes though what is wanted is just a remote command window without the overhead of opening a full remote desktop session.

The PsExec tool which is one of the SysInternals tools provides a way to open a remote command window without needing to install anything on the remote computer.

You can find out more about PsExec from:
http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx

With psExec installed you can open a remote command prompt by calling it as follows:

psExec \\computer cmd

If you have psExec installed on your computer with the Essentials console you can create a task in Essentials to open a remote command window from within Essentials.

To create this task:

  1. Go to the Authoring workspace
  2. In the navigation pane on the left hand side, expand Management Pack Objects and select Tasks
  3. From the Tasks pane, select Create a New Task
  4. Select Command Line from the Console Tasks folder and click Next
  5. In the Task Name field, type "Remote Command Window"
  6. In the Description type "Use the SysInternals PsExec tool to open a remote command window for the selected computer. PsExec must be installed on the computer with the Essentials console."
  7. In the Task Target, click Select and then choose Windows Computer and click OK
  8. Click Next
  9. In the Application field, type the full path the psexec.exe on the Essentials console (e.g. C:\pstools\psexec.exe). If you have the console on multiple computers you will need psExec installed in the same location on each of them.
  10. Enter \\ then Click the arrow at the end of the Parameters field and select Net BIOS Computer Name, then add a space and enter cmd
  11. Uncheck the Display output when this task is run box
  12. Click Create

In the Computers workspace, with a computer selected there is now a "Remote Command Window" task that is available. Selecting this task will open a remote command window for the selected computer.

Comments (30)

  1. Anonymous says:

    Yay but how do you get a ip user and password

  2. Anonymous says:

    Yay but how do you get a ip user and password

  3. Anonymous says:

    @Griffin:  Sounds like your problem is that you are trying to launch PsExec from within Windows Explorer.  PsExec is a command line tool, so you need to open a command line session (CMD) and then run PsExec.    Hope this helps.

  4. Fredd says:

    Great.. Great… Great..

    Thank you!!!

  5. Joachim Luengas says:

    Cool.

  6. Griffin says:

    whenever i click on psexec it pops up and disappears

  7. it says:

    You have to copy all the tools in Cwindowssystem32 and after that you can run them from cmd.

  8. lucky says:

    Voila!

    Many Thanks!

  9. Md.Imran says:

    Its works with XP nut did not working with Windows 7 pro. in domain environment

  10. char says:

    “Sad -.-!”

  11. Datawire says:

    Works fine for me on Windows 7 Pro – in Domain environment.

  12. noob2 says:

    griffin 26 Jun 2013 11:43 PM
    whenever i click on psexec it pops up and disappears

    -hey use it in command line

  13. Ritesh chandra says:

    Remote system pc to pc connecte

  14. Vidhya says:

    Is there any secuirty issues using this command and is it reliable ?

  15. Rajendra says:

    Thank you so much !

  16. Gabriel Lupi says:

    hello,

    alternatively try to download and install eurysco to use the command line feature…

    http://www.eurysco.com/feature/command-line

  17. prznt says:

    Can we use Psexec for remote EXE installation??? If it is possible,
    My computer is AAAA-PC and my remote computer is YYYY-PC.
    I wanna install a exe file say Something.exe in my YYYY-PC through AAAA-PC.
    That exe is located on C:Folder1Folder2Something.exe. in AAAA-PC
    Please tell me the PSexec command to install that file..!
    also that exe has some parameters..

  18. Maf says:

    Is it still possible to access the remote PC if it is in recovery mode?

  19. Rudraksh says:

    You do Better
    Command Prompt is the best technique to communicate.
    -Thanks

  20. Rudraksh says:

    Please tell me how I edit the picture of me in the first comment.

    -Thanks

  21. Roshan Kumar and Rudraksh Gupta says:

    Hello we were Friends
    Is it possible to do command on command prompt
    to do work on the PC?
    Can we work on command prompt to use previous versions?

  22. Roshan Kumar says:

    Hello!
    I am studied in VIII D class in APS KALUCHAK, Jammu
    Can we command the Command Prompt to do work on the Folders that we can type?

  23. Abdul Sahil says:

    He was the Black Belt Senior.
    He studied in VIII D In APS KALUCHAK, Jammu
    He was smart.
    -Thanku

  24. Bharath Baskar.B says:

    Thanks For Your valuable posting, it was very informative. Am working inhttp://www.excelanto.com"> Erp Software Company In India

  25. Bharathi Baskar.B says:

    Thanks For Your valuable posting, it was very informative. Am working inhttp://www.excelanto.com"> Erp Software Company In India

  26. Visokoo says:

    Awesome, thanks!

  27. Rog says:

    very powerful indeed!

  28. Volta says:

    Where can I find my big dick??? 🙁 sooo sad right now.

  29. JJ says:

    Works fine under Windows 10. The only question I have is how do I use the command script available at the destination machine?

  30. vamshi says:

    can i open command window in same computer