question about running applications

  • Thread starter Thread starter niv
  • Start date Start date
N

niv

Hi,
(1) I want to be able to return the programs running
locally on MachineA in my network from MachineB.

(2) I also want to be able to kill a process running on
MachineA after I have determined the process running.

Are these 2 possible?

Thanks for your help,

niv
 
For (2), a program called tskill.exe comes with newer versions of Windows
and it does what you want

Cheers,
Christian T. [MSFT]
Visual Studio Update Team

- Please do not reply to this email directly. This email is for newsgroup
purposes only.
=========================================================================
This posting is provided "AS IS" with no warranties, and confers no
rights. Use of included script samples are subject to the terms specified
at http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which
they originated.
=========================================================================

--------------------
 
Hi,

You could run a web service in machineA , then you could use the
Process.GetProcesses() to get a list of processes running in the machine and
Process.Kill() to kill a process.


Hope this help,
 
Ignacio said:
Hi,

You could run a web service in machineA , then you could use the
Process.GetProcesses() to get a list of processes running in the machine and
Process.Kill() to kill a process.


Hope this help,

Of course in order to do this, Poster should make sure that the caller
is providing an NT user account that has the permissions to do Kill on
that remote machine. And use Impersonation () with that user
name/password before calling Kill..

Or.. download www.sysinternals.com's PsKill utility (may be wrap it??)..
 
Ignacio said:
Hi,

You could run a web service in machineA , then you could use the
Process.GetProcesses() to get a list of processes running in the machine and
Process.Kill() to kill a process.


Hope this help,

Of course in order to do this, Poster should make sure that the caller
is providing an NT user account that has the permissions to do Kill on
that remote machine. And use Impersonation () with that user
name/password before calling Kill..

Or.. download www.sysinternals.com's PsKill utility (may be wrap it??)..
 
Back
Top