Play a Sound Every Few Minutes on Windows 10
In this article
Yes, you can make Windows 10 play a sound automatically every few minutes, and the easiest built-in way is to use Task Scheduler with a small script. This guide shows you how to set up a repeating sound alert (like a chime or beep) without installing any extra software. You'll need a sound file (like an MP3 or WAV) and about 10 minutes.
What You'll Need
- A Windows 10 PC with administrator access (to create scheduled tasks).
- A sound file (MP3, WAV, or M4A) you want to play. You can use a default Windows sound like C:\Windows\Media\Alarm01.wav or your own file.
- Basic comfort with Notepad and File Explorer.
Step-by-Step
- Create a script that plays the sound. Open Notepad (press Win, type
notepad, press Enter). Paste this line, replacing the path with your actual sound file:
powershell -Command (New-Object Media.SoundPlayer 'C:\Windows\Media\Alarm01.wav').PlaySync();
If your sound is an MP3 or other format, use this instead:
powershell -Command (New-Object Media.MediaPlayer).Open('C:\path\to\sound.mp3'); (New-Object Media.MediaPlayer).Play(); Start-Sleep -Seconds 5;
Note: The second command plays an MP3 and waits 5 seconds so the sound finishes before the script exits. Adjust the sleep time if your sound is longer. - Save the script as a .bat file. In Notepad, click File > Save As. Set “Save as type” to All Files. Name it
play-sound.bat(or anything with .bat). Choose a folder likeC:\Scripts(create it first if needed). Click Save. - Open Task Scheduler. Press Win, type
Task Scheduler, and press Enter. It’s a built-in Windows tool. - Create a new task. In the right-hand panel, click Create Basic Task… to open a wizard.
- Name the task. Type something like “Periodic Sound” and click Next.
- Set the trigger. Choose Daily (or One time – you’ll adjust the interval later). Click Next.
- Set the start time and interval. Enter a start time (e.g., 9:00 AM). Under “Recur every,” set the number of minutes you want between sounds (e.g., 5). Click Next.
- Choose the action. Select Start a program and click Next.
- Point to your script. In the “Program/script” field, click Browse and select your
play-sound.batfile. Click Next, then click Finish. - Test it. In Task Scheduler, find your task in the list, right-click it, and choose Run. You should hear the sound. If not, see Troubleshooting below.
- Adjust the interval later. To change how often the sound plays, right-click your task and choose Properties. Go to the Triggers tab, select the trigger, click Edit, and change the “Recur every” value. Click OK.
Common Mistakes
- Incorrect path in the script. If the path to your sound file has spaces, you must wrap it in single quotes inside the PowerShell command. For example:
'C:\My Sounds\chime.mp3'. - Using the wrong PowerShell command for the file type. The
SoundPlayerclass only works with WAV files. For MP3 or M4A, use theMediaPlayerclass as shown. - Task runs but no sound. This often happens because the script runs in the background with no audio session. Make sure your PC’s volume is not muted and that the sound file actually plays when you double-click it.
- Task doesn’t run at all. Check that the task is enabled (right-click > Enable) and that the “Run only when user is logged on” option is selected in the task’s Properties (General tab).
- Forgetting to set “Repeat every” correctly. The wizard’s “Recur every” is in minutes, but if you choose “One time” trigger, you won’t see that option. Always choose “Daily” first.
Tips
- Use a short, non-annoying sound. A gentle chime is better than a loud alarm for frequent reminders.
- Keep the script simple. If your sound is a WAV, use the first command. If it’s MP3, use the second. Don’t mix them.
- Run the script manually first. Double-click the .bat file to confirm it works before scheduling it.
- Set the task to run even when the PC is locked. In the task’s Properties, on the Conditions tab, uncheck “Start the task only if the computer is on AC power” if you want it on battery, and on the Settings tab, check “Run task as soon as possible after a scheduled start is missed” to avoid skipped sounds.
- If you want the sound to play only during working hours, add a second trigger or use the “Start time” and “End time” in the trigger’s settings.
Troubleshooting
Task runs but no sound. First, test the .bat file by double-clicking it. If it plays, the issue is likely that Task Scheduler runs the task in a different session. In the task’s Properties, on the General tab, make sure “Run only when user is logged on” is selected. Also, check that the “Hidden” checkbox is unchecked.
Script opens a black window every time. That’s normal for a .bat file. To minimize it, you can create a VBScript wrapper, but that’s optional.
Sound plays but cuts off. The script exits immediately after starting the sound. For MP3s, the Start-Sleep command keeps PowerShell alive long enough. Increase the sleep time to match your sound’s length.
Task doesn’t appear in the list. Make sure you clicked “Finish” in the wizard. If you closed the wizard early, the task wasn’t created.
If you get an error about execution policy, you might need to run PowerShell as administrator and set the policy to allow scripts. But the commands above are single-line and usually work without changing policy.
Frequently Asked Questions
Can I use a system sound like the default beep?
Yes. Use a WAV file from C:\Windows\Media, such as Alarm01.wav or chimes.wav. Just change the path in the script.
Will this work if my PC is locked or asleep?
It will work if the PC is locked, but not if it’s asleep. To wake the PC, you’d need to enable a wake timer in Task Scheduler’s Conditions tab, but that only works if your hardware supports it.
Can I play a sound every few minutes without Task Scheduler?
Yes, you could create a loop in a script, but Task Scheduler is more reliable and doesn’t require leaving a window open. You can also use third-party tools, but the built-in method is safest.
What if I want to stop the sound temporarily?
Right-click the task in Task Scheduler and choose “Disable.” This stops future runs. To resume, enable it again.
Can I use a different sound for each interval?
Yes, but you’d need to create multiple tasks or a more complex script that picks a random file. For simplicity, stick to one sound per task.
Does this work on Windows 11?
Yes, the same steps work on Windows 11 because Task Scheduler and PowerShell are still present. The menu labels are nearly identical.