Windows Vista Forums

NET START STOP Service Command Line
  1. #1


    Dr. Network Guest

    NET START STOP Service Command Line

    I'm trying to run NET START and NET STOP commands from the command line.
    However, I'm getting "System error 5 has occurred.

    Access is denied."

    Yet, I can go into the SERVICES GUI and start and stop the same service.



    It appears this has something to do with the USER ACCOUNT CONTROL. When I
    turn if off, I can use the NET START/STOP commands normally.

    Is there a specific security policy setting that I can change that will keep
    USER ACCOUNT CONTROL turned on but let me run the NET START/STOP commands to
    turn off and on services?

    Chuck


      My System SpecsSystem Spec

  2. #2


    Steve Guest

    Re: NET START STOP Service Command Line

    Are you running from an elevated command prompt?

    "Dr. Network" <charles.hawkins@jenzabar.net> wrote in message
    news:OE2hMjX4GHA.2264@TK2MSFTNGP02.phx.gbl...
    > I'm trying to run NET START and NET STOP commands from the command line.
    > However, I'm getting "System error 5 has occurred.
    >
    > Access is denied."
    >
    > Yet, I can go into the SERVICES GUI and start and stop the same service.
    >
    > It appears this has something to do with the USER ACCOUNT CONTROL. When I
    > turn if off, I can use the NET START/STOP commands normally.
    >
    > Is there a specific security policy setting that I can change that will
    > keep USER ACCOUNT CONTROL turned on but let me run the NET START/STOP
    > commands to turn off and on services?
    >
    > Chuck



      My System SpecsSystem Spec

  3. #3


    Dr. Network Guest

    Re: NET START STOP Service Command Line

    I'm right-clicking on both the shortcut and CMD.EXE and neither allows me to
    run as an administrator in the properties window. Is there another way to
    elevate CMD.EXE?

    Chuck

    "Steve" <Steve@SPAM.NOT.FOR.ME> wrote in message
    news:%23UbMAKY4GHA.3556@TK2MSFTNGP02.phx.gbl...
    > Are you running from an elevated command prompt?
    >
    > "Dr. Network" <charles.hawkins@jenzabar.net> wrote in message
    > news:OE2hMjX4GHA.2264@TK2MSFTNGP02.phx.gbl...
    >> I'm trying to run NET START and NET STOP commands from the command line.
    >> However, I'm getting "System error 5 has occurred.
    >>
    >> Access is denied."
    >>
    >> Yet, I can go into the SERVICES GUI and start and stop the same service.
    >>
    >> It appears this has something to do with the USER ACCOUNT CONTROL. When I
    >> turn if off, I can use the NET START/STOP commands normally.
    >>
    >> Is there a specific security policy setting that I can change that will
    >> keep USER ACCOUNT CONTROL turned on but let me run the NET START/STOP
    >> commands to turn off and on services?
    >>
    >> Chuck

    >



      My System SpecsSystem Spec

  4. #4


    Rock Guest

    Re: NET START STOP Service Command Line

    "Dr. Network"wrote

    > I'm right-clicking on both the shortcut and CMD.EXE and neither allows me
    > to run as an administrator in the properties window. Is there another way
    > to elevate CMD.EXE?
    >
    > Chuck
    >
    > "Steve" <Steve@SPAM.NOT.FOR.ME> wrote in message
    > news:%23UbMAKY4GHA.3556@TK2MSFTNGP02.phx.gbl...
    >> Are you running from an elevated command prompt?
    >>
    >> "Dr. Network" <charles.hawkins@jenzabar.net> wrote in message
    >> news:OE2hMjX4GHA.2264@TK2MSFTNGP02.phx.gbl...
    >>> I'm trying to run NET START and NET STOP commands from the command line.
    >>> However, I'm getting "System error 5 has occurred.
    >>>
    >>> Access is denied."
    >>>
    >>> Yet, I can go into the SERVICES GUI and start and stop the same service.
    >>>
    >>> It appears this has something to do with the USER ACCOUNT CONTROL. When
    >>> I turn if off, I can use the NET START/STOP commands normally.
    >>>
    >>> Is there a specific security policy setting that I can change that will
    >>> keep USER ACCOUNT CONTROL turned on but let me run the NET START/STOP
    >>> commands to turn off and on services?
    >>>
    >>> Chuck


    Click on the Start Orb. Type cmd in the Start Search box. When cmd.exe
    show up at the top of the window right click and choose Run as
    administrator.

    --
    Rock [ MVP User/Shell]


      My System SpecsSystem Spec

NET START STOP Service Command Line problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
List privilege for install, start and stop service on Windows Serv Piotr Server General 3 09 May 2010
stop and start windows update service James Bond VB Script 3 02 Feb 2009
How deactivate-reactivate a hardware component and start a service by script / command-line ? MoiMeme VB Script 4 22 Jan 2009
How is it possible to execute start-service and stop-service through a Web-interface? Alexander Vasilevsky PowerShell 7 15 Nov 2007
Start, Run Command line options........ Jim Vista General 5 23 Oct 2007