Advertisement

There's no such thing as a stupid question, but they're the easiest to answer.
Login
Search

Advertisement

Software Development Software Development
Search Search
Search for:
Tech Support Guy > > >

How to write a script for services.msc


(!)

kevin82485's Avatar
kevin82485 kevin82485 is offline
Junior Member with 1 posts.
THREAD STARTER
 
Join Date: Jun 2011
19-Jun-2011, 04:07 AM #1
How to write a script for services.msc
I was wondering if someone could help me, or point me toward, a script for disabling unnecessary services in a Windows based OS. I know which services I want to disable, I just want a one click method to do it.
Frank4d's Avatar
Computer Specs
Trusted Advisor with 9,126 posts.
 
Join Date: Sep 2006
Location: So. California
19-Jun-2011, 05:04 PM #2
You can write a batch file using the sc command to disable services. The following lines in a batch file stops the print spooler and audio services, and disables them from starting again (not that you would want to disable these two):

sc stop spooler
sc config spooler start = disabled
sc stop audiosrv
sc config audiosrv start = disabled
Squashman's Avatar
Trusted Advisor with 19,643 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
19-Jun-2011, 09:37 PM #3
You can use the NET coomand to start and stop services.

Net stop sevicename
As Seen On

BBC, Reader's Digest, PC Magazine, Today Show, Money Magazine
WELCOME TO TECH SUPPORT GUY!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.


(clock)
THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


WELCOME
You Are Using: Server ID
Trusted Website Back to the Top ↑