Terminating A Specific Process
Terminating A Specific Process
On Windows, you can view running processes in the Task Viewer, or use Windows PowerShell (this is what you'll be using for this lab). For
these operations, you'll need to be running a Windows PowerShell terminal in Administrative mode. So, search the Start Menu for Windows
PowerShell, right-click it, and select "Run as Administrator".
From Windows PowerShell, you can use Get-Process to search for a process by name. The "totally_not_malicious" process is running on this
machine, too. Search for it, using this command:
To end a process, you can use taskkill and specify the Process ID, or PID, of the process:
Note: Make sure you replace/substitute the "[PROCESS ID]" with id of the process you got from the previous command.
To verify that the process is no longer running, you can search for it again:
Malicious Process
Check my progress
Terminating multiple processes
There are processes containing the word "razzle" also running on this VM. Get-Process doesn't handle processes with partially-matching
names, like grep does, and running Get-Process -Name "razzle" would result in no matches. However, you can use "wildcards"
(asterisks) to look for processes that contain "razzle" in their name:
You can use taskkill, like before, once for each of the "razzle" processes:
Note: Make sure you replace/substitute the "[PROCESS ID]" with id of the process you got from the previous command.
You can use Get-Process again to verify that the processes have been ended: