Category filter

Script to play a beep sound on Windows devices

The Windows beep command produces a beeping sound through the computer’s speaker. This command can be employed to test the speaker’s functionality or generate various signals for the user. Predominantly, generating such reverberations can signal the user about an operation that has been completed or that the device needs attention. With Hexnode UEM admins can remotely play a beep sound for a specified period on Windows devices by using customized scripts.

Disclaimer:

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

PowerShell script

Executing this script will play the beep sound on the device.

In the above script, there are two values mentioned next to the beep command. The first value specifies the frequency of the beep sound which ranges from 37 to 32767 and the second value is to specify the time period in milliseconds for how long the beep sound should prevail.

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