CPENT Practice Question: Privilege Escalation Lateral Movement And Post Exploitation
A tester has achieved code execution on a Windows server and needs to clean up event logs or check log activity to evade detection during post-exploitation. Which TWO built-in tools or commands can be used to manage or clear Windows Event Logs? Choose two.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
wevtutil cl <LogName>
wevtutil and PowerShell's Remove-EventLog or Clear-EventLog are standard utilities for managing Windows event logs.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
wevtutil cl <LogName>
Why this is correct
wevtutil clear-log (cl) clears the specified event log.
- ✗
netsh advfirewall reset
Why it's wrong here
netsh advfirewall resets firewall configurations.
- ✗
taskkill /f /im lsass.exe
Why it's wrong here
taskkill /f /im lsass.exe crashes the system and causes a Blue Screen of Death (BSOD).
- ✗
ipconfig /flushdns
Why it's wrong here
ipconfig /flushdns flushes the DNS resolver cache.
- ✓
Clear-EventLog -LogName <LogName>
Why this is correct
Clear-EventLog is the PowerShell cmdlet used to clear logs.
About these practice questions
Courseiva writes every CPENT question from scratch — 274 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed August 2026 · checked against the official EC-Council exam blueprint
This CPENT practice question is part of Courseiva's free EC-Council certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CPENT exam.