C# - remote application that is interactive with desktop - DOTNET
This is a discussion on C# - remote application that is interactive with desktop - DOTNET ; Hello,
I would like to launch an application on a remote computer that is
interactive with the desktop. I am using C# and WMI. The code I have
here just loads the process in the background and that is not ...
-
C# - remote application that is interactive with desktop
Hello,
I would like to launch an application on a remote computer that is
interactive with the desktop. I am using C# and WMI. The code I have
here just loads the process in the background and that is not what I
need. Thank you, Fred
string stringCommandLine = "notepad.exe";
System.Management.ManagementOperationObserver observer = new
System.Management.ManagementOperationObserver();
System.Management.ManagementScope ms = new
System.Management.ManagementScope("\\\\firestarter\\root\\cimv2",co);
System.Management.ManagementPath path = new
System.Management.ManagementPath("Win32_Process");
System.Management.ManagementClass processClass = new
System.Management.ManagementClass(ms,path,null);
object[] methodArgs = {stringCommandLine,null,null,0};
processClass.InvokeMethod(observer,"Create",methodArgs);
-
Re: C# - remote application that is interactive with desktop
This workin as designed, due to security issues, i.e. a average user getting
a command prompt with admin privledges when he/she should not. In short
Win32_Process.Create will not show the process in the default desktop.
--
Ryan Ackerman,
SofTulz.Net, Giving administrators more time with there families through
automated computer management.
http://www.SofTulz.Net
"daytonabeach" <fred.kling> wrote in message
news:1109084180.892626.81150@o13g2000cwo.googlegroups.com...
> Hello,
>
> I would like to launch an application on a remote computer that is
> interactive with the desktop. I am using C# and WMI. The code I have
> here just loads the process in the background and that is not what I
> need. Thank you, Fred
>
> string stringCommandLine = "notepad.exe";
>
> System.Management.ManagementOperationObserver observer = new
> System.Management.ManagementOperationObserver();
>
> System.Management.ManagementScope ms = new
> System.Management.ManagementScope("\\\\firestarter\\root\\cimv2",co);
> System.Management.ManagementPath path = new
> System.Management.ManagementPath("Win32_Process");
>
>
> System.Management.ManagementClass processClass = new
> System.Management.ManagementClass(ms,path,null);
>
> object[] methodArgs = {stringCommandLine,null,null,0};
>
> processClass.InvokeMethod(observer,"Create",methodArgs);
>
-
Re: C# - remote application that is interactive with desktop
Thanks for the reply.
How could I create an "interactive desktop"/"load application" from a
remote server? I haven't been able to find anything on the net... Thanks
in advance...
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
-
Re: C# - remote application that is interactive with desktop
Hi,
that's not possible with the build-in functionality, or not simple. You have
to use a windows service, which has the ability to "interact with desktop".
Even the famous "psexec" from system internals uses this technic. May be
you'll find the following article helpful also:
http://www.codeproject.com/csharp/Run_Code_Remotely.asp
It explains some tricks behind the scene.
Another trick, I have used is to create a COM object on the destination
machine and register it with COM to run under the interactive user. Then, if
a user is logged on to the remote machine, you can instantiate the object
remotely and use it for your display purposes.
Best regards,
Manfred Braun
(Private)
Mannheim
Germany
mailto:_manfred.braun_@manfbraun.de
(Remove the anti-spam-underscore to mail me!)
"daytonabeach" <daytonabeach@devdex.com> wrote in message
news:%23bMloARGFHA.3316@tk2msftngp13.phx.gbl...
>
> Thanks for the reply.
>
> How could I create an "interactive desktop"/"load application" from a
> remote server? I haven't been able to find anything on the net... Thanks
> in advance...
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!
Similar Threads
-
By Application Development in forum DOTNET
Replies: 9
Last Post: 11-22-2007, 07:23 PM
-
By Application Development in forum DOTNET
Replies: 1
Last Post: 11-22-2007, 03:11 PM
-
By Application Development in forum DOTNET
Replies: 15
Last Post: 06-04-2007, 09:09 PM
-
By Application Development in forum Java
Replies: 4
Last Post: 10-31-2005, 07:26 AM
-
By Application Development in forum Clarion
Replies: 0
Last Post: 04-15-2004, 01:28 PM