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

  • Thread starter Thread starter Victor
  • Start date Start date
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!
 
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.
 
Back
Top