Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista General

Vista - NET START STOP Service Command Line

Reply
 
Old 09-26-2006   #1 (permalink)
Dr. Network


 
 

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
Old 09-26-2006   #2 (permalink)
Steve


 
 

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
Old 09-26-2006   #3 (permalink)
Dr. Network


 
 

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
Old 09-26-2006   #4 (permalink)
Rock


 
 

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
Reply

Thread Tools


Similar Threads
Thread Forum
Running a command from inside a script, command line is corrupted PowerShell
stop and start windows update service VB Script
How deactivate-reactivate a hardware component and start a service by script / command-line ? VB Script
How is it possible to execute start-service and stop-service through a Web-interface? PowerShell
Start, Run Command line options........ Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46