Solved

Display a service's status from DOS command prompt?

Posted on 2004-04-20
3
3,354 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: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: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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
Visual C++ Runtime Error on Windows 2000 Server 2 1,541
kerberos errors 7 552
windows explorer 21 179
Device with fixed IP not seen in DHCP server manager Windows 2000 9 96
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…
Many businesses neglect disaster recovery and treat it as an after-thought. I can tell you first hand that data will be lost, hard drives die, servers will be hacked, and careless (or malicious) employees can ruin your data.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

828 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