Services

Discussion in 'Scripting & Programming' started by Makaveli, Apr 1, 2006.

  1. Makaveli

    Makaveli Byte Poster

    193
    2
    10
    Hi guys

    I want to create a batch file that is put in the start up folder, when it runs it Enables a Disabled service. Ive done some googling but cant seem to get it working, can anyone help....
     
  2. hbroomhall

    hbroomhall Petabyte Poster Gold Member

    6,624
    117
    224
    After a short google I found

    Code:
    sc config servicename start= auto
    You may need to add a "net start" to it as well.

    :biggrin

    Harry.
     
    Certifications: ECDL A+ Network+ i-Net+
    WIP: Server+
  3. Makaveli

    Makaveli Byte Poster

    193
    2
    10
    Damn Harry! I just found out how to do it....

    sc config Schedule start= auto
    net start Schedule

    Thanks for your help though!
     
  4. hbroomhall

    hbroomhall Petabyte Poster Gold Member

    6,624
    117
    224
    :biggrin Ah well....


    Harry.
     
    Certifications: ECDL A+ Network+ i-Net+
    WIP: Server+
  5. Makaveli

    Makaveli Byte Poster

    193
    2
    10
    Harry - do you know if its possible to run a batch file so that the black cmd is not visible to the person logged in? But still completing the commands in the batch file......
     
  6. hbroomhall

    hbroomhall Petabyte Poster Gold Member

    6,624
    117
    224
    Try 'echo off' - I haven't used that since DOS days though...


    Harry.
     
    Certifications: ECDL A+ Network+ i-Net+
    WIP: Server+
  7. d-Faktor
    Honorary Member

    d-Faktor R.I.P - gone but never forgotten.

    810
    0
    39
    make that "@echo off", without the quotes. if you don't add the @ sign, the echo off itself will get displayed. :rolleyes:
     
  8. hbroomhall

    hbroomhall Petabyte Poster Gold Member

    6,624
    117
    224
    Aha! I had forgotten that twist!

    Harry.
     
    Certifications: ECDL A+ Network+ i-Net+
    WIP: Server+

Share This Page

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.