How to start a process remotely

Posted on 2003-03-13
Medium Priority
Last Modified: 2012-06-27
i've found a very nice tool on www.sysinternals.com it's called psexec.
with this tool you can start a process on a remote machine.

I need this feature in one of my applications.
Does anybody know which API could do that?

thanks a lot!
Question by:stele99
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 70

Expert Comment

by:Éric Moreau
ID: 8135435
in VB.Net you have the Remoting that can do this.
LVL 143

Accepted Solution

Guy Hengel [angelIII / a3] earned 150 total points
ID: 8136184
If you look closely at what psexec does, you will be able to do this "easily" yourself:
* check if psexecsv is "installed" on the remote machine
  + copy psexecsvc.exe to the remote server
  + create the service (see also psservice)
* check if the above service is started
  + start the service if stopped
* pass the command to run to the service, handling standard input/output
* if not other client needs the service:
  + stop the psexec service
  + destroy the service
  + delete the exe


Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month8 days, 15 hours left to enroll

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question