Solved

Display a service's status from DOS command prompt?

Posted on 2004-04-20
3
3,346 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
3 Comments
 
LVL 22

Expert Comment

by:Bartender_1
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

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

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…
A procedure for exporting installed hotfix details of remote computers using powershell
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now