Solved

C# - Create a process on a remote machine

Posted on 2014-11-11
3
226 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
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 13

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

760 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now