Windows Tutorials - Herong's Tutorial Examples - v5.62, by Dr. Herong Yang
"sc.exe query/start/stop" - Query, Start or Stop Services
This section provides a tutorial example on how to query, start, or stop a service with 'sc.exe' Service Controller command tool.
If you know the service name, you can use "sc.exe" to query, start or stop a service very easily. Here is a tutorial example of query, start and stop the "gusvc" service:
C:\herong>sc.exe query gusvc SERVICE_NAME: gusvc TYPE : 10 WIN32_OWN_PROCESS STATE : 1 STOPPED (NOT_STOPPABLE,NOT_PAUSABLE,IGNORES_SHUTDOWN) WIN32_EXIT_CODE : 0 (0x0) SERVICE_EXIT_CODE : 0 (0x0) CHECKPOINT : 0x0 WAIT_HINT : 0x0 C:\herong>sc.exe start gusvc SERVICE_NAME: gusvc TYPE : 10 WIN32_OWN_PROCESS STATE : 2 START_PENDING (STOPPABLE,NOT_PAUSABLE,IGNORES_SHUTDOWN) WIN32_EXIT_CODE : 0 (0x0) SERVICE_EXIT_CODE : 0 (0x0) CHECKPOINT : 0x0 WAIT_HINT : 0x0 PID : 3588 FLAGS : C:\herong>sc.exe query gusvc SERVICE_NAME: gusvc TYPE : 10 WIN32_OWN_PROCESS STATE : 4 RUNNING (STOPPABLE,NOT_PAUSABLE,IGNORES_SHUTDOWN) WIN32_EXIT_CODE : 0 (0x0) SERVICE_EXIT_CODE : 0 (0x0) CHECKPOINT : 0x0 WAIT_HINT : 0x0 C:\herong>sc.exe stop gusvc SERVICE_NAME: gusvc TYPE : 10 WIN32_OWN_PROCESS STATE : 3 STOP_PENDING (STOPPABLE,NOT_PAUSABLE,IGNORES_SHUTDOWN) WIN32_EXIT_CODE : 0 (0x0) SERVICE_EXIT_CODE : 0 (0x0) CHECKPOINT : 0x0 WAIT_HINT : 0x0 C:\herong>sc.exe query gusvc SERVICE_NAME: gusvc TYPE : 10 WIN32_OWN_PROCESS STATE : 1 STOPPED (NOT_STOPPABLE,NOT_PAUSABLE,IGNORES_SHUTDOWN) WIN32_EXIT_CODE : 0 (0x0) SERVICE_EXIT_CODE : 0 (0x0) CHECKPOINT : 0x0 WAIT_HINT : 0x0
Table of Contents
Introduction to Microsoft Windows
Introduction to Windows Explorer
Introduction to Internet Explorer
"Paint" Program and Computer Graphics
GIMP - GNU Image Manipulation Program
JPEG Image File Format Quality and Size
GIF Image File Format and Transparent Background
"WinZip" - ZIP File Compression Tool
"WinRAR" - RAR and ZIP File Compression Tool
FTP Server, Client and Commands
"FileZilla" - Free FTP Client and Server
Web Server Log Files and Analysis Tool - "Analog"
Spyware Adware Detection and Removal
IE Addon Program Listing and Removal
Vundo (VirtuMonde/VirtuMundo) - vtsts.dll Removal
Trojan and Malware "Puper" Description and Removal
VSToolbar (VSAdd-in.dll) - Description and Removal
Spybot - Spyware Blocker, Detection and Removal
Setting Up and Using Crossover Cable Network
Home Network Gateway - DSL Modem/Wireless Router
Windows Task Manager - The System Performance Tool
"tasklist" Command Line Tool to List Process Information
"msconfig" - System Configuration Tool
►Configuring and Managing System Services
What Are Windows Services and Related Programs
The Life Cycle of A Service - "Google Updater"
Installed Services in System Registry
"sc.exe" - A Command Line Tool to Manage Services
"sc.exe query type= driver" - All Device Driver Services
"sc.exe query type= service" - All Application Program Services
►"sc.exe query/start/stop" - Query, Start or Stop Services
"sc.exe create/delete" - Create or Delete Services
"services.msc" - Program Services Console
"services.msc" - Stoping and Starting Services
"services.msc" - Disabling Services
"Task Manger" - Ending a Service Process
Windows Registry Key and Value Management Tools