Multiple choice technology

Which CmdLet can be used to export all the processes running in a system to a CSV file?

  1. Get-Process | Export-CSV

  2. Set-Service| Export-CSV Processes.csv

  3. Get-AllProcess | Export-CSV Processes.csv

  4. Get-Process | Export-CSV Processes.csv

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

The correct syntax uses Get-Process to retrieve process objects, pipes them to Export-CSV, and specifies the output filename. Get-AllProcess is not a valid cmdlet. Set-Service manages Windows services, not processes. The pipe symbol (|) is required to connect the cmdlets.