Bird
0
0

Which parameter of Get-EventLog limits the number of entries returned?

easy📝 Conceptual Q2 of 15
PowerShell - System Administration
Which parameter of Get-EventLog limits the number of entries returned?
A-EntryType
B-Newest
C-After
D-ComputerName
Step-by-Step Solution
Solution:
  1. Step 1: Identify parameter purpose

    The -Newest parameter specifies how many of the most recent entries to retrieve.
  2. Step 2: Check other parameters

    -After filters by date, -EntryType filters by type, and -ComputerName specifies the target computer.
  3. Final Answer:

    -Newest -> Option B
  4. Quick Check:

    Limit entries = -Newest [OK]
Quick Trick: Use -Newest to get only recent entries [OK]
Common Mistakes:
  • Using -After to limit count instead of date filtering
  • Confusing -EntryType with count limiting
  • Ignoring -Newest parameter

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes