1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

How to write a script for services.msc

Discussion in 'Software Development' started by kevin82485, Jun 19, 2011.

Thread Status:
Not open for further replies.
  1. kevin82485

    kevin82485 Thread Starter

    Jun 19, 2011
    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.
  2. Frank4d

    Frank4d Trusted Advisor

    Sep 10, 2006
    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
  3. Squashman

    Squashman Trusted Advisor

    Apr 4, 2003
    You can use the NET coomand to start and stop services.

    Net stop sevicename
As Seen On
As Seen On...

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.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1002981