You enable and configure PowerShell Script Block Logging.
You need to view which script blocks were executed by using Windows PowerShell scripts.
What should you do?
A. Open the log files in %LocalAppData%MicrosoftWindowsPowerShell
B. View the Microsoft-Windows-PowerShell/Operational event log
C. View the Windows PowerShell event log
D. Open the log files in %SYSTEMROOT%/Logs
Correct:
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_logging_windows?view=powershell-7
given answer is correct.
Correct