Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3372
  • Last Modified:

Display a service's status from DOS command prompt?

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
Tgilbert
Asked:
Tgilbert
1 Solution
 
Christopher McKayMicrosoft Network AdministratorCommented:
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
 
spareticusCommented:
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
 
magus123Commented:
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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now