Monday, 10 November 2014

Get-Process:How to capture the list of process running on the Computer using Powershell

How to capture the list of process running on the Computer using Powershell


  • To list all process running on the computer use the Command
           Get-Process

          This will give you list of all the process running on your system.
  • To count number of process running on the system,use
          (get-process).count





  • To output the Process to textfile so that you can send email to your support team with details,use
         get-process | out-File -FilePath c:\temp\testpr.txt


         This will give you output to text file.

  • If you want only to check if particular process is running, then use
          get-process | select-string "goog"


No comments:

Post a Comment