Processes (PowerShell)

This example retrieves all of the processes on a computer

Get-Process
Get-WMIObject Win32_Process

This example uses WMI to get the processes named svchost.exe

Get-WMIObject Win32_Process -filter “Name=’svchost.exe'”
 

This example uses WMI to get the command line path

Get-WMIObject Win32_Process | Where-Object {$_.CommandLine -ne $null}

 

 

 
Comments

No comments yet.

Leave a Reply