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>