Published by


Brink's Avatar
Administrator

Posts: 25,183

Show Printable Version 


How to Play Sound at Logon (Sign-in) in Windows 10

information   Information
Starting in Windows 8, the Windows Logon sound event has been disabled. This leaves you unable to change or play the Windows Logon sound at sign-in in Windows 10.

As a workaround, you can still create an elevated task to play a sound at sign-in (logon) to Windows 10.

This tutorial will show you how to play a sound at logon (sign-in) for all users in Windows 10.

You must be signed in as an administrator to create an elevated task.


Here's How:

1. Press the Win+R keys to open Run, type taskschd.msc into Run, and click/tap on OK to open Task Scheduler.

2. Click/tap on Task Scheduler Library in the left pane of Task Scheduler, and click/tap on Create Task in the right Actions pane. (see screenshot below)

Name:  Play_sound_at_logon_task-1.jpg
Views: 150
Size:  75.1 KB

3. In the General tab, type a name (ex: "Play logon sound") you want for this task. (see screenshot below)

Name:  Play_sound_at_logon_task-2.png
Views: 149
Size:  26.4 KB

4. In the General tab, select (dot) Run whether user is logged on or not. (see screenshot below)

Name:  Play_sound_at_logon_task-3.png
Views: 151
Size:  26.0 KB

5. In the General tab, check the Run with highest privileges box. (see screenshot below)

Name:  Play_sound_at_logon_task-4.png
Views: 148
Size:  25.9 KB

6. In the General tab, select Windows 10 in the Configure for drop down. (see screenshot below)

Name:  Play_sound_at_logon_task-5.png
Views: 148
Size:  25.2 KB

7. Click/tap on the Triggers tab, and click/tap on the New button. (see screenshot below)

Name:  Play_sound_at_logon_task-6.png
Views: 149
Size:  21.9 KB

8. Select At log on in the Begin the task drop down, and click/tap on OK. (see screenshot below)
Note   Note
The At log on trigger is for when a user signs in to their account and not currently still signed in from say after lock computer or switch user.
Name:  Play_sound_at_logon_task-7.png
Views: 148
Size:  30.9 KB

9. In the Triggers tab, click/tap on the New button. (see screenshot below)

Name:  Play_sound_at_logon_task-8.png
Views: 149
Size:  18.9 KB

10. Select On connection to user session in the Begin the task drop down, select (dot) Connection from local computer, and click/tap on OK. (see screenshot below)
Note   Note
The On connection to user session trigger is for when a user signs in to their account while currently still signed in from say after switch user.
Name:  Play_sound_at_logon_task-9.png
Views: 150
Size:  36.1 KB

11. Click/tap on the Actions tab, and click/tap on the New button. (see screenshot below)

Name:  Play_sound_at_logon_task-10.png
Views: 149
Size:  22.6 KB

12. Perform the actions below: (see screenshot below)

A) Select Start a program in the Action drop down.

B) Type PowerShell in the Program/script field box.

C) Enter the command below into the Add arguments field box, and click/tap on OK.

-c (New-Object Media.SoundPlayer 'C:\Windows\Media\Windows Logon.wav').PlaySync();

Note   Note
If you wanted to play a sound (.wav file) of your choice instead, you can substitute C:\Windows\Media\Windows Logon.wav in the command above with the full path of the .wav file you want to be played.
Name:  Play_sound_at_logon_task-11.png
Views: 143
Size:  30.1 KB

13. Click/tap on the Conditions tab, uncheck the Start the task only if the computer is on AC power box, and click/tap on OK. (see screenshot below)

Name:  Play_sound_at_logon_task-12.png
Views: 149
Size:  36.2 KB

14. Enter your account's password, and click/tap on OK. (see screenshot below)

Name:  Play_sound_at_logon_task-13.png
Views: 146
Size:  21.2 KB

15. This task (ex: "Play logon sound") is now finished, and will now play a sound at sign-in for all users on your PC. (see screenshot below)

Click image for larger version. 

Name:	Play_sound_at_logon_task-14.png 
Views:	11 
Size:	85.5 KB 
ID:	156686


That's it,
Shawn