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.
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)- A1% (1)
- B4% (3)
- C93% (64)
- D1% (1)
Why each option
The sc query command lists services on a Windows system, and without additional parameters it displays currently active (running) services.
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.
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.
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.
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
Community Discussion
No community discussion yet for this question.