nerdexam
EC-Council

312-50V11 · 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 lists services on a Windows system, and without additional parameters it displays currently active (running) services.

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

(69 responses)
  • A
    1% (1)
  • B
    4% (3)
  • C
    93% (64)
  • D
    1% (1)

Why each option

The sc query command lists services on a Windows system, and without additional parameters it displays currently active (running) services.

ASc query type= running

sc query type= running uses an invalid value for the type= parameter - the type= parameter accepts values like 'service', 'driver', or 'all', not 'running'; the correct filter for state would be state= running.

BSc query \\servername

sc query \\servername queries services on a remote server by name, which is a remote administration form and not the simple local listing the question asks about.

CSc queryCorrect

sc query without arguments returns all Win32 services in an active state by default, making it the standard baseline command for listing running services. It is the foundational form of the command from which filtered queries are derived.

DSc config

sc config is used to modify service configuration settings such as start type or binary path, not to list or query service status.

Concept tested: Windows sc command service query syntax

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

Topics

#Windows sc command#service enumeration#Windows administration#command-line tools

Community Discussion

No community discussion yet for this question.

Full 312-50V11 Practice