Question 342 of 509
Tools and Code AnalysismediumMultiple ChoiceObjective-mapped

Quick Answer

The answer is the enumeration of misconfigurations phase. This PowerShell script directly supports that phase because it uses the Invoke-Command cmdlet to remotely check whether the local Administrator account on multiple Windows systems still uses a default password, which is a classic example of identifying a security weakness through configuration review. On the CompTIA PenTest+ PT0-002 exam, this scenario tests your ability to distinguish between active reconnaissance phases—enumeration of misconfigurations focuses on discovering existing weaknesses like default credentials, not on moving laterally or extracting hashes. A common trap is confusing this with credential dumping or lateral movement, but remember: if the script only checks for a known weak setting without altering systems or stealing stored secrets, it belongs to misconfiguration enumeration. Memory tip: “Check, don’t crack”—if you’re verifying a default password rather than extracting or cracking hashes, you’re enumerating misconfigurations.

PT0-002 Tools and Code Analysis Practice Question

This PT0-002 practice question tests your understanding of tools and code analysis. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A penetration tester analyzes a PowerShell script that uses the 'Invoke-Command' cmdlet to run a command on multiple remote Windows systems. The script checks if the local Administrator account is using a default password. Which phase of the penetration test is this script most directly supporting?

Question 1mediummultiple choice
Full question →

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

Enumeration of misconfigurations

The script uses Invoke-Command to check if the local Administrator account on multiple remote Windows systems uses a default password. This directly supports the enumeration of misconfigurations phase, as it identifies a common security weakness (default credentials) that could be exploited. It does not involve moving between systems (lateral movement) or extracting stored credentials (credential dumping).

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Lateral movement

    Why it's wrong here

    Lateral movement involves using compromised credentials to access other systems. The script is only checking for default passwords, not using them to move laterally. However, it could enable lateral movement if a default password is found.

  • Credential dumping

    Why it's wrong here

    Credential dumping refers to extracting stored credentials (e.g., from LSASS memory or SAM). This script does not dump credentials; it tests whether a known default password works.

  • Enumeration of misconfigurations

    Why this is correct

    The script enumerates remote systems to identify if the default Administrator password is still in use, which is a misconfiguration. This is a form of enumeration used to identify weaknesses.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Privilege escalation

    Why it's wrong here

    Privilege escalation typically involves gaining higher privileges on a single system. The script is checking across multiple systems but does not escalate privileges on any one system.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is confusing the act of checking for default credentials (enumeration of misconfigurations) with the subsequent exploitation step (lateral movement) or the method of extracting stored credentials (credential dumping).

Detailed technical explanation

How to think about this question

Invoke-Command leverages PowerShell Remoting (WinRM) over HTTP/HTTPS (ports 5985/5986) to execute commands remotely. Checking for default passwords is a classic misconfiguration test; if found, it could be used for initial access or privilege escalation, but the act of checking itself is purely enumeration. In real-world assessments, this script might be run against a domain-joined system where the local Administrator password is often unchanged after deployment.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A security team runs a vulnerability scan on a web application and discovers an unpatched SQL injection flaw. The team prioritises remediation by CVSS score — critical flaws are patched within 24 hours, high within 7 days. Questions like this test whether you understand vulnerability management processes, scanning tools, and remediation prioritisation.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related PT0-002 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free PT0-002 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this PT0-002 question test?

Tools and Code Analysis — This question tests Tools and Code Analysis — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Enumeration of misconfigurations — The script uses Invoke-Command to check if the local Administrator account on multiple remote Windows systems uses a default password. This directly supports the enumeration of misconfigurations phase, as it identifies a common security weakness (default credentials) that could be exploited. It does not involve moving between systems (lateral movement) or extracting stored credentials (credential dumping).

What should I do if I get this PT0-002 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This PT0-002 practice question is part of Courseiva's free CompTIA 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 PT0-002 exam.