Process p=process.getAllprocessbyName(processName,RemoteMachineName);
p.Kill();
i have this exeption
this feature is not supported in remote machine
what i want to say is why microsoft make this function and told us that we can use it for remote machinr
in msdn help i found:
| C# |
|---|
public static Process[] GetProcessesByName ( string processName, string machineName ) |
- processName The friendly name of the process.
- machineName The name of a computer on the network.

please microsoft or anyone tell me why !!!????
Laura Bagnall
salvatore
Is the process that runs on the ochter machine a process that is developed by yourself
Scraniel
I don't know but meybe you can use WMI to kill a remote process, you can create on with WMI.
csexpert
"You can call Kill and CloseMainWindow only for processes that are running on the local computer. You cannot cause processes on remote computers to exit."
So, alas, you cannot do it.
dozaone
MauiSon
I have all permission I am member of administrators
frankly I do not want use
client server application is there another way
TaffyDownUnder
the process in the other pc which i try to kill it it is a calc
I lost hope to find the solution
note:is there any chance to resolve it
glw
yes my dear
I tried to test my code in domain between two computers
after that i tried to test it in workgroup with no benefit
Melissa_Janet
A method similar to what PJ suggests is already available here http://www.codeguru.com/csharp/csharp/cs_network/remoting/article.php/c6037/ (uses remoting).
Cheers,
Greg
drtom
You have to deal with security issues, and I believe that the call uses WMI underneath anyway, so it's basically a WMI call.
Is your account valid on the systems you're trying to access Are you an administrator on them
gpja
grcor
wow I apologize.
http://www.codeproject.com/csharp/WMI.asp contains code that can do this through WMI.
Cheers,
Greg
Mridu
Thanks for anyone shared to solve my problem
I respect every responses