How can I stop and start a service from cmd line?

V

Victor

My sons' PC sometimes loses audio. He is running iTunes and sometimes
Audacity. He usually has to reboot to get audio back, but as the system
shuts down to restart, he gets the WiNDOWS SHUTDOWN sound.

I was looking at it when it happened and I poked around and stopped and
started the WINDOWS AUDIO Service (C:\WINDOWS\System32\svchost.exe -k
netsvcs). The audio came back.

Unless someone knows why this is happening and how I can prevent it, how
can I stop the service via a cmd line (that I can have him click on the
shortcut to) and then start it (with another short cut).

You reply here or remove the 6's from the email address.

Thanks in advance!
 
A

Ayush

Replied to [Victor]s message :
-----------------------------------------------------------
My sons' PC sometimes loses audio. He is running iTunes and sometimes
Audacity. He usually has to reboot to get audio back, but as the system
shuts down to restart, he gets the WiNDOWS SHUTDOWN sound.

I was looking at it when it happened and I poked around and stopped and
started the WINDOWS AUDIO Service (C:\WINDOWS\System32\svchost.exe -k
netsvcs). The audio came back.

Unless someone knows why this is happening and how I can prevent it, how
can I stop the service via a cmd line (that I can have him click on the
shortcut to) and then start it (with another short cut).

You reply here or remove the 6's from the email address.

Thanks in advance!

Try to Reinstall/Upgrade your sound drivers.

To Start/Stop service, make a bat file and put the following lines in it :
;----------------
net stop "SerVice Name"
ping localhost -n 10
net start "Service Name"
;-----------------

Replace Service name with the name of service.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top