Author: mycachecrashedSubject: PsKill & Rundll
Posted: 20 October 2016 at 9:49am
I want to terminate a Rundll process after a certain number of milliseconds. Applets like PsKill are always
useful when creating a script, but I've never tried to control the ubiquitous Rundll32.exe. The command
line looks like this:
rundll32.exe newdev.dll,ClientSideInstall \\.\pipe\PNP_Device_Install_Pipe_0.{Registry Key}
Using the PID with PsKill seemed like a good idea, until a countdown box appeared. When it got to "0" the
system rebooted. Needless to say, I didn't try that again!
PsKill followed by the process name is a little better. It kills the process and immediately reloads itself, like
it's stuck in a feedback loop. Am I wasting my time, or is there a way to make a "clean rundll kill" with PsKill?
You might be thinking, "why are you messing around with this process?" I have a very good reason, but the
explanation would require several paragraphs.
If it can be done, please tell me how.