Posts

Showing posts with the label Command Prompt

Change windows service startup type via command line

Windows get running processes

Command line query service status

How to query windows service status using command line?
Sc.exe command line tool will help to query service status on local computer, remote computers or servers.
Example below shows the command line to query or list the services state that are running.
Query running services:
sc query | findstr /c:" RUNNING"  /c:"SERVICE_NAME"
Sample output:
SERVICE_NAME: AdobeARMservice
        STATE              : 4  RUNNING SERVICE_NAME: AntiVirSchedulerService
        STATE              : 4  RUNNING SERVICE_NAME: AntiVirService
        STATE              : 4  RUNNING SERVICE_NAME: AppHostSvc
        STATE              : 4  RUNNING SERVICE_NAME: Appinfo
        STATE              : 4  RUNNING SERVICE_NAME: AudioEndpointBuilder
        STATE              : 4  RUNNING SERVICE_NAME: Audiosrv
        STATE              : 4  RUNNING SERVICE_NAME: Avira.ServiceHost
        STATE              : 4  RUNNING SERVICE_NAME: BcmBtRSupport
        STATE              : 4  RUNNING SERVICE_NAME…

Display Active Directory Users via command line

Manage Windows files and folder security permissions via command line

Sort running process using command line