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

Page 1 of 7 123 ... LastLast
    How to Play Sound at Logon (Sign-in) in Windows 10

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

    Published by Category: Customization
    24 Apr 2021
    Designer Media Ltd


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


    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 with a password to create an elevated task.



    Contents

    • Option One: Add or Remove Play a Sound at Logon (Sign-in) from Startup Folder using a BAT file
    • Option Two: Add or Remove Play a Sound at Logon (Sign-in) Task Automatically using a BAT file
    • Option Three: Add or Remove Play a Sound at Logon (Sign-in) Task Manually in Task Scheduler






    OPTION ONE

    Add or Remove Play a Sound at Logon (Sign-in) from Startup Folder using a BAT file


    Special thanks to Matthew and Paul Black for providing this option.

    This will create a VBScript that points to the .wav file to be played in either Startup folder below:

    Current User:
    %UserProfile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

    All Users:
    %ProgramData%\Microsoft\Windows\Start Menu\Programs\Startup


    1 Download the Play_Sound_at_Logon_Passwordless.bat file below to your desktop.
    2 Unblock the downloaded .bat file.

    3 Run the .bat file.

    4 If prompted by UAC, click/tap on Yes to approve running the .bat file elevated (run as administrator).

    5 Press the number for the option you want, and press Enter. (see screenshot below)

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

    6 When prompted, enter the full path of the .wav file you want to run at startup, and press Enter. (see screenshot below)

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

    7 When finished, you can close the command prompt. (see screenshot below)

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





    OPTION TWO

    Add or Remove Play a Sound at Logon (Sign-in) Task Automatically using a BAT file


    Special thanks to Matthew for providing the .bat files in this option.


    1 Do step 2 (add) or step 3 (remove) below for what you would like to do.


    2 To Add Play a Sound at Logon (Sign-in) Task

    A) Download the Play_Sound_at_Logon.bat file below to your desktop.
    B) Unblock the downloaded .bat file.

    C) Run the .bat file.

    D) If prompted by UAC, click/tap on Yes to approve running the .bat file elevated (run as administrator).

    E) When prompted, enter the full path of the .wav file you want to play at logon (sign-in). (see screenshot below)

    F) When prompted, enter the password for the account to authorize the task.

    G) When finished, press any key to close the command prompt.

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


    3 To Remove Play a Sound at Logon (Sign-in) Task

    A) Download the Delete_the_scheduled_task.bat file below to your desktop.
    B) Unblock the downloaded .bat file.

    C) Run the .bat file.

    D) If prompted by UAC, click/tap on Yes to approve running the .bat file elevated (run as administrator).

    E) When finished, press any key to close the command prompt.






    OPTION THREE

    Add or Remove Play a Sound at Logon (Sign-in) Task Manually in Task Scheduler


    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)

    How to Play Sound at Logon (Sign-in) in Windows 10-play_sound_at_logon_task-1.jpg

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

    How to Play Sound at Logon (Sign-in) in Windows 10-play_sound_at_logon_task-2.png

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

    How to Play Sound at Logon (Sign-in) in Windows 10-play_sound_at_logon_task-3.png

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

    How to Play Sound at Logon (Sign-in) in Windows 10-play_sound_at_logon_task-4.png

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

    How to Play Sound at Logon (Sign-in) in Windows 10-play_sound_at_logon_task-5.png

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

    How to Play Sound at Logon (Sign-in) in Windows 10-play_sound_at_logon_task-6.png

    8 Select At log on in the Begin the task drop down, and click/tap on OK. (see screenshot below)

    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.

    How to Play Sound at Logon (Sign-in) in Windows 10-play_sound_at_logon_task-7.png

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

    How to Play Sound at Logon (Sign-in) in Windows 10-play_sound_at_logon_task-8.png

    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)

    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.

    How to Play Sound at Logon (Sign-in) in Windows 10-play_sound_at_logon_task-9.png

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

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

    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();

    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 (with .wav file extension included) you want to be played.

    How to Play Sound at Logon (Sign-in) in Windows 10-play_sound_at_logon_task-11.png

    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)

    How to Play Sound at Logon (Sign-in) in Windows 10-play_sound_at_logon_task-12.png

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

    How to Play Sound at Logon (Sign-in) in Windows 10-play_sound_at_logon_task-13.png

    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)

    How to Play Sound at Logon (Sign-in) in Windows 10-play_sound_at_logon_task-14.png


    That's it,
    Shawn



  1. Matthew Wai's Avatar
    Posts : 5,376
    Windows 10 Home 20H2
       #1

    Play_Sound_at_Logon.bat
    Delete_the_scheduled_task.bat

    @Brink, it works the same as the previous one.
    I just found that the password can also be copied and pasted into the Command Prompt window. How to Play Sound at Logon (Sign-in) in Windows 10-success.jpg

    The tasks will be put into this folder: "Task Scheduler Library"-->"TenForums".

    How to Play Sound at Logon (Sign-in) in Windows 10-tenforums-folder.jpg
      My Computer

  2. Brink's Avatar
    Posts : 56,953
    64-bit Windows 10 Pro for Workstations build 21376
    Thread Starter
       #2

    Thank you @Matthew Wai. Now added as option 1.
      My Computers


  3. Posts : 2
    Windows 10
       #3

    The logon sound plays even before entering my pin/password/fingerprint.
    Is there a way to play it only afterwards, when the system loads the desktop?
      My Computer

  4. Matthew Wai's Avatar
    Posts : 5,376
    Windows 10 Home 20H2
       #4

    You may delay the task for a short while, for example 30 seconds.

    How to Play Sound at Logon (Sign-in) in Windows 10-delay-task.jpg
      My Computer

  5. Try3's Avatar
    Posts : 7,714
    Windows 10 Home x64 Version 20H2 Build 19042.928
       #5

    apersononacid said:
    The logon sound plays even before entering my pin/password/fingerprint.
    Is there a way to play it only afterwards, when the system loads the desktop?
    What trigger are you using?

    Denis
      My Computer


  6. Posts : 2
    Windows 10
       #6

    I was using both the triggers set by the script.
    Editing the task manually to run at logon of my user rather than any of them and removing the other trigger seems to have solved my problem.
      My Computer

  7. Try3's Avatar
    Posts : 7,714
    Windows 10 Home x64 Version 20H2 Build 19042.928
       #7

    So, if I understand you correctly,
    - The Trigger At logon waits for you to complete logging in, but
    - The Trigger On connection to user session occurs as soon as soon as the login dialog appears

    An interesting distinction. Thanks for posting this information.

    Denis
      My Computer


  8. Posts : 10
    Windows 10
       #8

    Niether of these work anymore. At least they didn't for me.

    Edit: They seem to work when I use Windows 10's built in Logon Sound but when I try to substitute my own, it won't even play. It's definitely a .wav. They won't even play when I put them into the same folder.
      My Computer

  9. Matthew Wai's Avatar
    Posts : 5,376
    Windows 10 Home 20H2
       #9

    tangre said:
    when I try to substitute my own, it won't even play. It's definitely a .wav. They won't even play when I put them into the same folder.
    Can you upload the .wav file as an attachment, so that I can test it?
      My Computer


 
Page 1 of 7 123 ... LastLast

Tutorial Categories

How to Play Sound at Logon (Sign-in) in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 06:21.
Find Us




Windows 10 Forums