Security Operations

On a Windows server, an analyst must use only PowerShell cmdlets to triage a suspected intrusion. Which four commands meet that requirement? (Choose four.)

Choose 4 answers

Show the answer

Correct answersA. Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4625}B. Get-Process | Sort-Object CPU -DescendingD. Get-NetTCPConnection -State EstablishedF. Get-ChildItem C:\Users -Recurse -File | Get-FileHash

AWhy this is right: Get-WinEvent is a cmdlet that queries Windows event logs, here failed logons (event 4625).

BWhy this is right: Get-Process is a cmdlet that lists running processes, and Sort-Object is another cmdlet to rank them.

CWhy not this: This runs the Python interpreter with the psutil library, so it is a Python command, not a cmdlet.

DWhy this is right: Get-NetTCPConnection is a cmdlet that lists TCP connections, useful for spotting suspicious sessions.

EWhy not this: grep is a Unix shell utility, and it reads a Linux log path that does not exist on Windows.

FWhy this is right: Get-ChildItem piped to Get-FileHash is a PowerShell pipeline that hashes files for IOC comparison.

Get-WinEvent, Get-NetTCPConnection, Get-FileHash and Get-Process are PowerShell cmdlets that query event logs, connections, file hashes and processes. The grep command is tempting for log review but is a Linux shell tool, and the psutil one-liner is Python.