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.
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)- A2% (1)
- B7% (3)
- C88% (37)
- D2% (1)
Why each option
The `sc query` command without additional parameters returns all currently active (running) services on a Windows system.
`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.
`sc query \\servername` queries services on a remote machine specified by name, not the local system's running services.
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.
`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
Community Discussion
No community discussion yet for this question.