Solved

Display a service's status from DOS command prompt?

Posted on 2004-04-20
3
3,359 Views
Last Modified: 2008-03-17
I would like to know if there is a DOS command which could be embedded in a batch file to show whether a particular service is started or not?

I can open up services and look but there are so many services, I then have to scroll to see the ones I am interested in.

I know I can use NET START and NET STOP to stop or start a service, but is there a command to show current status?

TIA-TOMG

0
Comment
Question by:Tgilbert
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 22

Expert Comment

by:Christopher McKay
ID: 10870787
Hi Tgilbert,
If you just type "Net Start" at the command prompt, it shows you all started services.

Hope this helps!

:o)

Bartender_1
0
 
LVL 7

Accepted Solution

by:
spareticus earned 50 total points
ID: 10870831
the SC command from the resource kit can give you much more information

sc query <servicename> will give you status on any service whether it is started or not
0
 
LVL 7

Expert Comment

by:magus123
ID: 10873312
go to services   "the list"


and rerrrange them to show the ones that state "services started" first

thats the easiest and you can manage them from there which ones you want to stop
also go here for services info , also look around his , has some great info.

ports to block sites

www.dslreports.com  and broadbandreports


http://www.blackviper.com/WIN2K/servicecfg.htm

also please make sure you back up before stoping a service that could
rendor you os useless


look on google on which applications run which ports , also disable dcom.
disable netbios over tcp/ip disable wins


etc etc ... need more repost












0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Robocopy - migrate user shares access denied 6 1,540
auto copy 8 620
Windows 2000 Server to 2008 upgrade 8 530
removing broke domain controller...then upgrading to MS Win 2K12 6 405
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Suggested Courses

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question