473,402 Members | 2,046 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Invoking a process on the remote machine

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
3 8132
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: student | last post by:
Hi, I am working on a project where I need to start processes on remote machines, across mac, linux, windows from one server or 'manager' machine. For now, I only need to implement a 'wait'...
7
by: Yosh | last post by:
I am developing an application that will stop and start a process on a remote machine. What security rights are needed for my application to be able to do this? Hope this makes sense. Yosh
5
by: hangten | last post by:
I have a service that 1) uses filewatcher to watch a directory on a remote machine. 2) checks if a certain application is running on the local machine before starting it. The problem is while...
7
by: Denis Brkljacic | last post by:
Hi, I have made some simple ASP.NET (C#) application, that somewhere uses this command: Process aProcesses = Process.GetProcesses(Environment.MachineName); This command purpose is to find...
0
by: Patrick A. | last post by:
Dll written in VB.NET 2003 to start a command remotely. You can : - launch the command and wait until it's finished. (Ex. 1) - launch the command providing a timeout in seconds, it will wait...
3
by: Billy Bob | last post by:
Hello In C# how can i start a remote process such as someapp.exe on a remote PC? I know the remote PC's name, but how do I start the app on that PC? Thanks ..
1
shrek123
by: shrek123 | last post by:
I want to kill some process on remote machine which is on some other domain. I am using Win32::OLE GetObject to do that. But I am getting following error Error1: When my remote machine is on...
2
by: =?Utf-8?B?SmltIE93ZW4=?= | last post by:
Hi John, Hopefully this post will find its way back to you - or perhaps be answered by someone else. As I mentioned in my last post on the earlier portion of this thread, changing the...
1
by: srinivasan srinivas | last post by:
HI, I am using Solaris and subprocess.Popen to spawn a process on a remote machine. Thanks, Srini ----- Original Message ---- From:Diez B. Roggisch <deets@nospam.web.de> To:...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.