How to get all the processes on remote computers using PowerShell?

PowerShellMicrosoft TechnologiesSoftware & Coding

To get all running processes on the remote computer, you need to use – ComputerNameparameter in Get-process cmdlet, WMI class Win32_Process or using the Get-CimInstance cmdlet.

  • With –ComputerName parameter
Get-process -ComputerName Test-PC

To connect multiple computers use computer names separated by comma (,).

Get-process -ComputerName Test-PC, Win2k8
  • With WMI object to get processes on multiple remote computers.
Get-WmiObject Win32_Process -ComputerName Test-PC, Win2k8
  • Get-CimInstance cmdlet to get processes on remote computers.
Get-CimInstance Win32_Process -ComputerName Test-PC, Win2k8
raja
Published on 22-Jan-2020 16:47:11
Advertisements