Remote Tasklist
Remote Tasklist
The first thing I wanted to see if I could do remotely was to determine the Process Id (PID) on the remote machine. I was
able to do this using native Windows 7 (or Server 2008 R2) tools and here are the steps.
After you have the PID, you can now utilize another tool to actually force the process to shut down
The next step is to shutdown the process remotely. This is easily available in-box using the taskkill.exe command that in
Windows 7 & Server 2008 R2. The steps to shut the runaway process are outlined below.
NOTE: For demonstration purposes, I’ve started Notepad in a user session on a remote server and that session is
Notepad.exe
3. To stop the remote process, type taskkill /s {remote pc} /u {domain | username} /p {password} /PID {process
id}
This should return, if it works, a message stating “Success: The process with PID {PID} has been terminated. This is it.
This is all you have to do to get this mis-behaving process out of the picture!
Summary
In today’s post, I just went off the normal path of my typical post and shared a newly discovered “trick” that makes my
life a bit easier when I have a remote machine who I can’t access because the “screen” is locked. This might be a unique
scenario and if so then please accept apologies for taking up space on the internet – but I felt the need to put it together
since I couldn’t really easily locate other posts relating to it.
Enjoy!
Thanks,
-Chris