Start and Stop window Services from command prompt using NET commands

Start and Stop window Services from command prompt using NET commands

NET START: Name of all services present in the windows services which is running

D:\ImageCenter\Database\6dbcheck>net start
These Windows services are started:

Adobe Acrobat Update Service
Application Information
Application Management
COM+ Event System
OracleServiceXE
OracleXETNSListener

SC QUERY command give you only service name which you specify

D:\ImageCenter\Database\6dbcheck>sc query OracleServiceXE

SERVICE_NAME: OracleServiceXE
TYPE : 10 WIN32_OWN_PROCESS
STATE : 4 RUNNING
(STOPPABLE, PAUSABLE, ACCEPTS_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0

SC QUERY command give you all services details as follows

D:\ImageCenter\Database\6dbcheck>sc query
SERVICE_NAME: OracleServiceXE
DISPLAY_NAME: OracleServiceXE
TYPE : 10 WIN32_OWN_PROCESS
STATE : 4 RUNNING
(STOPPABLE, PAUSABLE, ACCEPTS_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0

SERVICE_NAME: OracleXETNSListener
DISPLAY_NAME: OracleXETNSListener
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

NET STOP : Stop the service from windows command prompt

net stop OracleXETNSListener
C:\Windows\system32>net stop OracleXETNSListener
The OracleXETNSListener service is stopping.
The OracleXETNSListener service was stopped successfully.

net start OracleServiceXE
C:\Windows\system32>net stop OracleServiceXE
The OracleServiceXE service is stopping...................
The OracleServiceXE service was stopped successfully.

NET START : Start the service from windows command prompt

net start OracleXETNSListener
C:\Windows\system32>net start OracleXETNSListener
The OracleXETNSListener service is starting.
The OracleXETNSListener service was started successfully.

net start OracleServiceXE
C:\Windows\system32>net start OracleServiceXE
The OracleServiceXE service is starting...............
The OracleServiceXE service was started successfully.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.