By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,028 Members | 881 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,028 IT Pros & Developers. It's quick & easy.

Invoking a process on the remote machine

P: n/a
Hi,

I am trying to run an exe present on the remote machine using the ManagementClass object. I connect to the remote machine using ObjectManagementScope class, but i am not being able to run the exe through normal Win32 process. How should I go about it?
--------------------------------
From: Nidhee Pathak

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>s3QhesQMJ0O24aiIcMmT+w==</Id>
Nov 16 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Nidhee,

You can not just run a program of your choosing on a remote machine.
You need to have some sort of environment to run it in. Basically, the only
way you are going to be able to run a program on the machine is if you have
another program already running on the machine (which has a login), that
will run the program on the machine for you.

Basically, you should create a service (or a serviced component which
can be called to) which exposes an object which will take the name of the
program that you want to run and then run it.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Nidhee Pathak via .NET 247" <an*******@dotnet247.com> wrote in message
news:ug***************@tk2msftngp13.phx.gbl...
Hi,

I am trying to run an exe present on the remote machine using the ManagementClass object. I connect to the remote machine using
ObjectManagementScope class, but i am not being able to run the exe through
normal Win32 process. How should I go about it? --------------------------------
From: Nidhee Pathak

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>s3QhesQMJ0O24aiIcMmT+w==</Id>

Nov 16 '05 #2

P: n/a
What kind of program are you trying to run remotely, does it have a UI or
not?

Willy.

"Nidhee Pathak via .NET 247" <an*******@dotnet247.com> wrote in message
news:ug***************@tk2msftngp13.phx.gbl...
Hi,

I am trying to run an exe present on the remote machine using the
ManagementClass object. I connect to the remote machine using
ObjectManagementScope class, but i am not being able to run the exe
through normal Win32 process. How should I go about it?
--------------------------------
From: Nidhee Pathak

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>s3QhesQMJ0O24aiIcMmT+w==</Id>

Nov 16 '05 #3

P: n/a
Nicholas ,

OP mentioned ManagementClass, that is, he's using WMI under the covers, so
this should work unless he's trying to run a windows UI application or an
application that needs a specific security context to run in.

Willy.

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:ue**************@tk2msftngp13.phx.gbl...
Nidhee,

You can not just run a program of your choosing on a remote machine.
You need to have some sort of environment to run it in. Basically, the
only
way you are going to be able to run a program on the machine is if you
have
another program already running on the machine (which has a login), that
will run the program on the machine for you.

Basically, you should create a service (or a serviced component which
can be called to) which exposes an object which will take the name of the
program that you want to run and then run it.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Nidhee Pathak via .NET 247" <an*******@dotnet247.com> wrote in message
news:ug***************@tk2msftngp13.phx.gbl...
Hi,

I am trying to run an exe present on the remote machine using the

ManagementClass object. I connect to the remote machine using
ObjectManagementScope class, but i am not being able to run the exe
through
normal Win32 process. How should I go about it?
--------------------------------
From: Nidhee Pathak

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>s3QhesQMJ0O24aiIcMmT+w==</Id>


Nov 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.