sc query — Basic UsageIT technician command center
Windows CMD · Windows Command Line

sc query — Basic Usage

Use sc query for a standard administrative task.

Copy-ready commandsc query — Basic Usage
sc query type= service state= all

Requirements and permissions

Requirements
Windows 10/11 or Windows Server
Permissions
Varies by command
Last reviewed
2026-07-31

Examples

Basic Usage

Use sc query for a standard administrative task.

sc query type= service state= all

Original command

Query Windows services.

sc query type= service state= all

Common errors

Command not found

Confirm Windows 10/11 or Windows Server is installed and available in your current shell.