PowerShell: Show running processes

This script will retrieve and display all running processes on the local computer.

# Retrieve all running processes
$processes = Get-Process

# Display the processes

If you want to retrieve running processes on a remote computer, you can use the -ComputerName parameter of the Get-Process cmdlet. Here’s how you can do it:

# Retrieve all running processes on a remote computer
$processes = Get-Process -ComputerName "RemoteComputerName"

# Display the processes

Replace “RemoteComputerName” with the name of the remote computer from which you want to retrieve running processes.

For an advanced version of this PowerShell Script that queries every Active Computer in the Active Directory Domain and exports to CSV, Checkout this link

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top