Category filter

Script to Stop and Restart Windows Audio Service

Windows Audio Service manages all the audio devices on your computer. It is a vital component to enable sound for any program running on the Windows operating system. By default, the audio service starts when you power on your device. But there may occur times when the audio service glitches and stops working. Executing a simple Windows script to restart the audio service might solve the issue. Using Hexnode, you can execute scripts remotely to fix audio issues on your Windows devices.

Disclaimer:

The Sample Scripts provided below are adapted from third-party Open-Source sites.

Batch Script

PowerShell Script

If you get an error stating “Cannot stop service ‘Windows Audio (audiosrv)’ because it has dependent services”, run the script below:

Notes:

  • It is recommended to manually validate the script execution on a system before executing the action in bulk.
  • Hexnode will not be responsible for any damage/loss to the system on the behavior of the script.

  • Sample Script Repository