nerdexam
EC-Council

312-50V10 · Question #258

At a Windows Server command prompt, which command could be used to list the running services?

The correct answer is C. Sc query. The 'sc query' command with no arguments lists all running Win32 services on the local Windows machine.

Enumeration

Question

At a Windows Server command prompt, which command could be used to list the running services?

Options

  • ASc query type= running
  • BSc query \servername
  • CSc query
  • DSc config

How the community answered

(20 responses)
  • A
    5% (1)
  • C
    90% (18)
  • D
    5% (1)

Why each option

The 'sc query' command with no arguments lists all running Win32 services on the local Windows machine.

ASc query type= running

'sc query type= running' uses incorrect parameter syntax - the 'type=' parameter specifies service type (e.g., driver, all, own), not service state; filtering by state requires 'state= running'.

BSc query \\servername

'sc query \\servername' queries services on a remote machine, not the local server.

CSc queryCorrect

Running 'sc query' without arguments defaults to querying Win32 services in the running state, producing a list of currently active services with their status, type, and state. This is the standard method for listing running services from the Windows Server command prompt without additional filters or remote targets.

DSc config

'sc config' is used to modify service configuration settings such as startup type and account, not to list running services.

Concept tested: Windows sc command - listing running services

Source: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/sc-query

Topics

#Windows enumeration#sc query#service enumeration#Windows commands

Community Discussion

No community discussion yet for this question.

Full 312-50V10 Practice