Jun 12, 2025
This lecture covers the PowerShell Get-Process cmdlet, which retrieves information about running processes on local or remote computers, including syntax, parameters, usage examples, and output details.
Get-Process lists all running processes on the local computer by default.-Name) or process ID (-Id).-ComputerName parameter.-Name allows specifying one or more process names, supports wildcards.-Id specifies one or more process IDs (PIDs).-ComputerName targets remote computers by name, IP, or FQDN.-Module retrieves information on each module loaded in a process.-FileVersionInfo returns file version info for a processβs main module.-IncludeUserName adds the owner username to process info (requires admin rights).System.Diagnostics.Process object with process details.-Module, returns ProcessModule objects; with -FileVersionInfo, returns FileVersionInfo objects.Get-Process shows all processes; Get-Process winword, explorer targets specific processes by name.Where-Object to filter by properties (e.g., working set memory over 20MB).Format-Table, Format-List) to customize displayed properties.$PID to reference the process hosting the current PowerShell session.Invoke-Command with Get-Process.Get-CimInstance and Invoke-CimMethod for owner info without admin rights.gps and ps are aliases for Get-Process.Path and MainModule may be unavailable.Get-Process with different parameters and filters.Format-Table, Where-Object, and viewing all properties with Get-Member.Stop-Process, Start-Process, Wait-Process.