Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


sc failed to show all the services

- - - - -

  • Please log in to reply
1 reply to this topic




  • Member
  • PipPip
  • 119 posts
  • Joined 20-February 09

Since a long time I was wishing to be able to create a batch file, that would stop all the unnecessary (at least for my machine and needs) services. There are two problems. First - I had no idea how to use the net command to change the service config in turn to enable/disable auto startup.

Turns out that sc from Windows 2000 Resource Kit can do the job, so a line like this:

net stop Alerter
sc config Alerter start= demand

...for each undesired service will work just well.


Not the Second thing. I need list of all of those pesky services. Their names are nowhere near to be found, till I stumbled upon this:

sc query state= all

That is supposed to show me all the service names. And it does, untill:

Enum: more data, need 4286 bytes start resume at index 51




****! Never expected this one to stop me. Any ideas, what to change and where to get more (preferably all) of the resulting output?


I tried:

sc query state= all > trodasservices.txt

...but in the 4275 bytes long file it ends with the same cursed message :(  Please help.


Ah! Finally I figured out the bufsize and I can fix the problem with just:

sc query state= all bufsize= 32800




PS. sometimes one space go a long way, lol. Never managed it to work w/o the space after the "=" ...  :D

Disclaimer: Any errors in spelling, tact, or fact are transmission errors.

How to remove advertisement from MSFN



    The Finder

  • Developer
  • 16,010 posts
  • Joined 23-July 04
  • OS:none specified
  • Country: Country Flag

JFYI, amont the 2K Resource Kit tools, NETSVC and SVCLIST are IMHO a bit simpler:




Just in case:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users