nerdexam
EC-Council

312-50V9 · Question #30

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 without additional parameters returns all currently active (running) services on a Windows system.

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

(42 responses)
  • A
    2% (1)
  • B
    7% (3)
  • C
    88% (37)
  • D
    2% (1)

Why each option

The `sc query` command without additional parameters returns all currently active (running) services on a Windows system.

ASc query type= running

`sc query type= running` is a more explicit filter but requires the correct spacing syntax; the basic `sc query` already shows running services and is the simpler accepted answer here.

BSc query \\servername

`sc query \\servername` queries services on a remote machine specified by name, not the local system's running services.

CSc queryCorrect

Running `sc query` with no arguments queries the Service Control Manager and returns a list of all active Win32 services in the running state by default. It is the simplest and most direct command to view running services from the Windows command prompt without needing to specify additional parameters.

DSc config

`sc config` is used to modify or configure service properties such as start type and display name; it does not list services.

Concept tested: Windows SC command for listing running services

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

Topics

#sc query#Windows services enumeration#command prompt#running services

Community Discussion

No community discussion yet for this question.

Full 312-50V9 Practice