Bird
0
0

You run this command but get an error:

medium📝 Debug Q14 of 15
PowerShell - System Administration
You run this command but get an error:
Get-EventLog -LogName Security -EntryType Warning

What is the most likely cause?
AThe Security log does not support filtering by EntryType Warning.
BThe -EntryType parameter is misspelled.
CGet-EventLog cannot read the Security log at all.
DYou need to specify -Newest with -EntryType.
Step-by-Step Solution
Solution:
  1. Step 1: Understand Security log restrictions

    The Security log often does not support filtering by EntryType Warning because it mainly contains Audit Success or Failure events.
  2. Step 2: Check parameter correctness and usage

    The parameter is spelled correctly and Get-EventLog can read Security logs, so those are not causes.
  3. Final Answer:

    The Security log does not support filtering by EntryType Warning. -> Option A
  4. Quick Check:

    Security log limits EntryType filters = C [OK]
Quick Trick: Security log has limited EntryType filters, no Warning [OK]
Common Mistakes:
  • Assuming EntryType is misspelled
  • Thinking Get-EventLog can't read Security log
  • Believing -Newest is required with -EntryType

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes