Solved

C# - Create a process on a remote machine

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

810 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