0

I am looking for something like SysInternals pskill which is just great!

But that can be executed on Linux more exactly I want it to run on Maemo (Nokia N900 phone). Please do not offer me to run a Wine or any other windows emulation environment.

Of course I got the credentials for the Windows machine and windows machine is general Windows XP or Windows 7 not Windows Server.

3 Answers3

1

Maybe a bit late:

Well it is possible if you have installed sysinternals/microsoft PSkill on your server. and you have a user on your server that has the rights to run rpc commands.

from your linux run the following commands:

net rpc service create killproc killproc "%windir%\pskill <program name|process id>" -I <server ip> -U <username>%<password>

net rpc service start killproc -I <server ip> -U <username>%<password>

net rpc service delete killproc -I <server ip> -U <username>%<password>

Hope it helps

Peet
  • 11
0

The PSKILL tool does what it does by:

  • Copy the file to the target machine
  • Using WMI to create a service on the target machine that launches the file copied
  • Starts the service on the remote machine
  • Removes the service on the target machine
  • Removes the file from the target machine

Samba, and by extension Linux, can do the first and last bullet-points. The others are currently not possible. Such a tool does not exist.

sysadmin1138
  • 135,853
0

Have a look at WinEXE. I'm not sure if it will compile correctly on an N900, but it will allow you to run command to run "process -k whatever" remotely.