Security Engineering

A security engineer must find Windows servers whose services run as a local administrator and remediate each one, passing the discovered service objects directly to the fix without parsing text. Which tool is the best fit?

Show the answer

Correct answerA. PowerShell using cmdlets and the object pipeline

AWhy this is right: PowerShell cmdlets emit objects that pass through the pipeline directly into a remediation cmdlet.

BWhy not this: Batch files only offer text matching with findstr and have no object pipeline.

CWhy not this: Bash is a Linux shell and would need text scraping of Windows output, which the scenario rules out.

DWhy not this: Python could parse output, but the regex approach is still text parsing rather than passing objects.

PowerShell cmdlets return .NET objects that flow through the pipeline, so discovered services can be passed straight to a remediation cmdlet with no text parsing. The other options all work by scraping text output, which is the approach the scenario rules out.