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.

Note:


Supported Versions:

The scripts given below will be supported on the following versions:

  • Windows 10 v1607+ (Pro, Enterprise, Education)
  • Windows 11 (Pro, Enterprise, Education)


Disclaimer:

The sample scripts provided below are adapted from third-party open-source sites.

Batch Script

Batch script to stop and restart Windows audio service remotely executed successfully from Hexnode.

PowerShell Script

PowerShell script to stop and restart Windows audio service remotely executed successfully from Hexnode.

How to View Script Output in Hexnode

To review the execution results, navigate to the Action History tab of the specific device in your Hexnode UEM portal. Locate the script entry in the Subject column and click the Show Output button next to the status field to view the returned data.

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