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.
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)- A5% (1)
- C90% (18)
- D5% (1)
Why each option
The 'sc query' command with no arguments lists all running Win32 services on the local Windows machine.
'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'.
'sc query \\servername' queries services on a remote machine, not the local server.
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.
'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
Community Discussion
No community discussion yet for this question.