Albert works as a Windows system administrator at an MNC. He uses PowerShell logging to identify
any suspicious scripting activity across the network. He wants to record pipeline execution details as
PowerShell executes, including variable initialization and command invocations. Which PowerShell
logging component records pipeline execution details as PowerShell executes?
A
Script Block Logging in PowerShell is the component that:
Records detailed information about code as it is executed, including:
Pipeline execution
Variable initialization
Command invocations
Captures entire blocks of code, even if they are obfuscated or dynamically generated at runtime.
Is especially useful for detecting suspicious or malicious activity in scripts.