nerdexam
GIAC

GCIH · Question #819

Which of the following commands will show programs set to autostart?

The correct answer is D. wmic startup list full. The wmic startup list full command uses Windows Management Instrumentation to enumerate all programs configured to run automatically at system startup.

Reconnaissance, Scanning, and Enumeration

Question

Which of the following commands will show programs set to autostart?

Options

  • Aschtasks/query
  • Bwevtutil qe security /f:text
  • CGet-EventLog -LogName Security
  • Dwmic startup list full

How the community answered

(26 responses)
  • A
    4% (1)
  • C
    4% (1)
  • D
    92% (24)

Why each option

The wmic startup list full command uses Windows Management Instrumentation to enumerate all programs configured to run automatically at system startup.

Aschtasks/query

schtasks /query lists tasks configured in the Windows Task Scheduler, not programs set to autostart via registry run keys or startup folders.

Bwevtutil qe security /f:text

wevtutil qe security /f:text queries the Windows Security event log for recorded events, not startup program configuration.

CGet-EventLog -LogName Security

Get-EventLog -LogName Security retrieves entries from the Security event log in PowerShell, not a list of programs registered to autostart.

Dwmic startup list fullCorrect

The wmic startup list full command queries the Win32_StartupCommand WMI class, which enumerates all programs registered to autostart via registry run keys, startup folders, and other autorun locations. It returns detailed output including the command path, user context, and source registry key, making it a reliable tool for identifying persistence mechanisms. WMIC consolidates startup entries from multiple sources into a single comprehensive listing.

Concept tested: Windows autostart enumeration using WMIC

Source: https://learn.microsoft.com/en-us/windows/win32/wmisdk/wmic

Topics

#wmic#autostart programs#persistence detection#Windows enumeration

Community Discussion

No community discussion yet for this question.

Full GCIH Practice