How to get all the processes on the local computer with Get-Process command using PowerShell?

PowerShellMicrosoft TechnologiesSoftware & Coding

To get the threads of the running processes in the server using PowerShell you need to use Get-Process command. When you run this command default fields (ProcessName, Id, SI, CPU(s), WS(K), PM(K), NPM(K), Handles) will be displayed as a table.

Command

Get-process

Output

Handles  NPM(K)    PM(K)      WS(K)     CPU(s)     Id  SI ProcessName
-------  ------    -----      -----     ------     --  -- -----------
    502      27     9796      19340       1.72   6320   1 AcroRd32
    640      52   112028      55820      32.70   8052   1 AcroRd32
    591      32    22852      37292       3.63   6340   1 ApplicationFrameHost
    156       9     1416       5816       0.06   4412   0 armsvc
   4793     569   344132     281612   8,676.73   4300   0 avp
   1212     118   104612       3868      94.52   9964   1 avpui
    141       9     1764       7760       0.03   2412   1 browser_broker
    604      28    28952      62436       3.05   6416   1 Calculator
    283      31    79672      88576      37.73   1488   1 chrome
    414       9     1780       6172       0.30   2432   1 chrome
    290      27    41148      62980       9.69   4812   1 chrome
    271      28    68448      58192      48.81   6268   1 chrome

The description of the above properties as outlined below.

  • Handles − The number of handles that process has opened
  • NPM(K) − The amount of non-page memory that the process is using in KB.
  • PM(K) − The amount of pageable memory that the process is using in KB.
  • WS(K) − The size of the working set of the process in KB. The working set consists of the pages of memory that were recently referenced by the process.
  • VM(M) − The amount of virtual memory that the process is using in MB. Virtual memory includes storage in the paging files on the disk.
  • CPU(s) − The amount of processor time that the process has used on all processors in seconds.
  • ID − The process ID (PID) of the process.
  • ProcessName − The name of the process.
raja
Published on 22-Jan-2020 15:05:52
Advertisements