Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET RemoteControl
Hey,
 
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
wany123117
Edited 13-May-11 21:57pm
thatraja242.6K
v2
Rate this: bad
good
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#[^].
  Permalink  
Comments
SAKryukov at 14-May-11 15:35pm
   
Good link, my 5.
--SA
Abhinav S at 15-May-11 1:13am
   
Thank you SA.
Rate this: bad
good
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.
  Permalink  
Comments
SAKryukov at 14-May-11 15:34pm
   
Good points, my 5.
--SA
Member 11229327 at 13-Nov-14 22:08pm
   
Can you please provide an example code ?
Dave Kreskowiak at 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
0 OriginalGriff 315
1 Jochen Arndt 190
2 DamithSL 125
3 PIEBALDconsult 110
4 Garth J Lancaster 90
0 OriginalGriff 5,790
1 DamithSL 4,601
2 Maciej Los 4,012
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,195


Advertise | Privacy | Mobile
Web02 | 2.8.141220.1 | Last Updated 14 May 2011
Copyright © CodeProject, 1999-2014
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