Results 1 to 2 of 2

Thread: Stopping a Service with a .bat file?

  1. #1
    Newbie
    Join Date
    Feb 2006
    Posts
    2
    I was wondering if anyone knew how to stop an Administrative Service with a command in a .bat file? Thanks Chris

  2. #2
    Junior Member
    Join Date
    Oct 2006
    Location
    Washington DC
    Posts
    80
    You could create a bat file using the

    net stop <service name>

    A full list of the exact services is found in the registry (run regedit.exe) under the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es key.

    Alternatively, you can perform the stop and start using the name that is showed in the Services Control Panel applet by putting the name in quotes

    net stop "<service>"



    You can also use the Resource Kit SC.EXE command, using

    sc query

    to get a list of the services, and then

    sc stop <service name>

Similar Threads

  1. How to use the Sysprep tool
    By CoolJsa14 in forum Windows - General Topics
    Replies: 0
    Last Post: 01-05-2005, 08:34 PM
  2. List of fixes included in Windows XP SP2
    By regix in forum Windows - General Topics
    Replies: 6
    Last Post: 01-03-2005, 10:44 PM
  3. File Formats Supported by Windows Media Player
    By regix in forum Windows - General Topics
    Replies: 0
    Last Post: 01-03-2005, 10:17 PM
  4. Calling all mail server admins
    By demian in forum Linux - Hardware, Networking & Security
    Replies: 4
    Last Post: 04-21-2004, 08:21 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •