Click here to Skip to main content
11,923,948 members (63,811 online)
Rate this:
Please Sign up or sign in to vote.
See more: VB VB.NET RemoteControl

I am trying to build a program that would run an executable on a remote computer.

But basically i want to be able to login and then run a file on the C drive of the remote PC. I was hoping there some sort of support in the .NET that allows me to use RDP to do this.
I am trying to avoid writing a SERVER side program. That why i want to use RDP because then I could just connect how windows RDP connect and then write code to run a file remote pc.

Any help would be nice
Posted 13-May-11 20:44pm
Edited 13-May-11 21:57pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

One way could be to start a remote process using WMI - see Create a Remote Process using WMI in C#[^].
SAKryukov 14-May-11 15:35pm
Good link, my 5.
Abhinav S 15-May-11 1:13am
Thank you SA.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

You can launch processes on remote PC's, but you cannot launch an INTERACTIVE process, but only if the account YOUR code impersonates an admin account on the remote PC. The user that is logged onto the remote PC will never see any kind of user interface the remote program may put up. If it does, the app will just sit there waiting for response that will never come.

Remote Desktop requires more permissions on the remote machine that no account has default access to. The account you connect to the remote PC with has to be a member of the Remote Desktop Users group on the remote PC. Even then, you cannot remote desktop into a machine without kicking off the user that logged in on it.
SAKryukov 14-May-11 15:34pm
Good points, my 5.
Member 11229327 13-Nov-14 22:08pm
Can you please provide an example code ?
Dave Kreskowiak 13-Nov-14 23:09pm
All you had to do was look at solution #1 and there's a link to an example.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.151125.3 | Last Updated 14 May 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100