Bird
0
0

What does the PowerShell cmdlet Get-EventLog primarily do?

easy📝 Conceptual Q11 of 15
PowerShell - System Administration
What does the PowerShell cmdlet Get-EventLog primarily do?
AIt creates new event logs on the system.
BIt retrieves entries from Windows event logs.
CIt deletes all event logs from the system.
DIt updates the event log service configuration.
Step-by-Step Solution
Solution:
  1. Step 1: Understand the purpose of Get-EventLog

    The cmdlet is designed to read and retrieve event log entries from Windows logs.
  2. Step 2: Compare with other options

    Creating, deleting, or updating logs are not functions of Get-EventLog; it only reads logs.
  3. Final Answer:

    It retrieves entries from Windows event logs. -> Option B
  4. Quick Check:

    Get-EventLog reads logs = A [OK]
Quick Trick: Get-EventLog always reads logs, not modifies them [OK]
Common Mistakes:
  • Confusing reading logs with creating or deleting logs
  • Thinking it modifies event log settings
  • Assuming it works for non-Windows logs

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes