Solved

C# - Create a process on a remote machine

Posted on 2014-11-11
3
267 Views
Last Modified: 2014-11-23
Hi,

Can I please have a sample to create a remote process on a machine? I don't want to use psexec. (I believe that it can be done with WMI - but have not found a good sample.

Thanks,

Ward
0
Comment
Question by:whorsfall
[X]
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
3 Comments
 
LVL 96

Accepted Solution

by:
Bob Learned earned 167 total points
ID: 40438584
How's 'bout this?

Create a Remote Process using WMI in C#
http://www.codeproject.com/Articles/31113/Create-a-Remote-Process-using-WMI-in-C
0
 
LVL 23

Assisted Solution

by:Michael74
Michael74 earned 167 total points
ID: 40438892
0
 
LVL 14

Assisted Solution

by:frankhelk
frankhelk earned 166 total points
ID: 40439641
Depending on what you'll try do do on the remote machine, you'll might have a look at .NET remoting.

There are by far too many web pages on that topic, but asking Google for "C# remoting site:msdn.microsoft.com" would give you a good start about the basics and some examples - and lots of details if you want more.

Basically it's an alternative to DCOM and RPC, it allows you to execute code (in objects) on remote machines.
0

Featured Post

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
parse string in c# 5 40
Web page design problem 3 41
Windows Universal App 22 58
SSIS Column mapping 5 40
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

734 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