Forrest logo
back to the Get-Process tool

sort-object:tldr:ceb4a

sort-object: Sort processes with the highest memory usage based on their working set (WS) size.
$ Get-Process | Sort-Object -Property WS
try on your machine

This command is written in PowerShell scripting language and it is used to retrieve a list of running processes on a Windows system, and then sorts those processes based on their working set size (WS).

Here's a breakdown of the individual components of the command:

  • Get-Process: This is a PowerShell cmdlet that retrieves a list of running processes on the system.

  • | (pipe operator): It takes the output of the previous command (Get-Process) and passes it as input to the next command (Sort-Object).

  • Sort-Object: This is another PowerShell cmdlet used to sort objects based on specified properties. In this case, it's sorting the list of processes.

  • -Property WS: This is a parameter for the Sort-Object cmdlet that specifies the property by which the objects (processes) should be sorted. In this case, it's sorting the processes based on their working set size (WS).

So, by running this command, you would get a list of running processes sorted in ascending order based on their working set size, where the process with the smallest working set size would be displayed first.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the Get-Process tool