Multiple choice

What is the command to get and format processes by name?

  1. Get-process

  2. Set-process | format-list name

  3. Get-process | format-list name

  4. Get-process format-list name

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In PowerShell, the pipe operator (|) is used to pass the output of one command to another. 'Get-process | format-list name' correctly retrieves process information and formats it to show only the names.