Windows 10: Play Sound at Shutdown in Windows 10  

Page 1 of 2 12 LastLast
    Play Sound at Shutdown in Windows 10

    Play Sound at Shutdown in Windows 10

    How to Play a Sound at Shutdown in Windows 10
    Published by Category: Customization
    24 Mar 2018
    Designer Media Ltd

    Published by


    Brink's Avatar
    Administrator

    Posts: 32,329

    Show Printable Version 


    How to Play a Sound at Shutdown in Windows 10


    Starting in Windows 8, the Windows Shutdown sound event has been disabled. This leaves you unable to change or play the Windows Shutdown sound when a user selects to shut down the PC in Windows 10.

    As a workaround, you can still create an elevated task to play a sound at shutdown Windows 10.

    This tutorial will show you how to play a sound at shutdown for all users in Windows 10.

    You must be signed in as an administrator with a password 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_shutdown_task-1.jpg
Views: 4080
Size:  75.1 KB

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

    Name:  Play_sound_at_shutdown_task-2.png
Views: 4170
Size:  26.7 KB

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

    Name:  Play_sound_at_shutdown_task-3.png
Views: 4075
Size:  31.5 KB

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

    Name:  Play_sound_at_shutdown_task-4.png
Views: 4102
Size:  31.2 KB

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

    Name:  Play_sound_at_shutdown_task-5.png
Views: 4058
Size:  30.2 KB

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

    Name:  Play_sound_at_shutdown_task-6.png
Views: 4072
Size:  21.9 KB

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

    A) Select On an event in the Begin the task drop down.

    B) Select System in the Log drop down.

    C) Type 1074 (user initiated shutdown) in the Event ID drop down, and click/tap on OK.

    Name:  Play_sound_at_shutdown_task-7.png
Views: 4093
Size:  37.8 KB

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

    Name:  Play_sound_at_shutdown_task-8.png
Views: 4057
Size:  22.6 KB

    10. 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 Shutdown.wav').PlaySync();

    If you wanted to play a sound (.wav file) of your choice instead, you can substitute C:\Windows\Media\Windows Shutdown.wav in the command above with the full path of the .wav file you want to be played.

    Name:  Play_sound_at_shutdown_task-9.png
Views: 4076
Size:  30.1 KB

    11. 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_shutdown_task-10.png
Views: 4084
Size:  36.2 KB

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

    Name:  Play_sound_at_shutdown_task-11.png
Views: 4086
Size:  21.2 KB

    13. This task (ex: "Play shutdown 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_shutdown_task-12.png 
Views:	277 
Size:	89.7 KB 
ID:	156710


    That's it,
    Shawn


  1. Comp Cmndo's Avatar
    Posts : 255
    Windows 10-Pro 64bit
       25 Dec 2017 #1

    Doesn't work if there is no password.
      My ComputerSystem Spec

  2. Brink's Avatar
    Posts : 32,329
    64-bit Windows 10 Pro build 18242
    Thread Starter
       25 Dec 2017 #2

    Hello Comp Cmdo, :)

    That's correct. You'll need to be signed in to an administrator account with a password to be able to create the task in this tutorial.
      My ComputersSystem Spec

  3.    04 Jan 2018 #3

    Good Morning,

    I have created the scheduled task to play the selected exit sound but the sound will not play. When I open Task Scheduler and click on the task and click run, the .wav plays and the status of the task is ready, any suggestions.

    Anders
      My ComputerSystem Spec

  4. Brink's Avatar
    Posts : 32,329
    64-bit Windows 10 Pro build 18242
    Thread Starter
       04 Jan 2018 #4

    Hello Anders, and welcome to Ten Forums. :)

    Did you follow the steps exactly?

    The key is steps 5 and 12. If a mistake was made with either one, the task will not run.

    In addition, see if having your .wav file in the same location I used as an example may help.
      My ComputersSystem Spec

  5.    04 Jan 2018 #5

    Shutdown Sounds


    Hello Brink,

    Thank you for the welcome and response. I double checked both steps 5 and 12 and both are correct. I had previously tried the registry edit to have the exit sound option show but never unchecked or reverted the registry to its previous status, could this be the problem.

    Anders
      My ComputerSystem Spec

  6. Brink's Avatar
    Posts : 32,329
    64-bit Windows 10 Pro build 18242
    Thread Starter
       04 Jan 2018 #6

    The registry edit to show the Sound setting shouldn't affect this.

    Where do you have the .wav sound located at?

    If you like, upload the .wav file, and I'll test it on my system to rule that out.
      My ComputersSystem Spec

  7.    05 Jan 2018 #7

    Shutdown sound


    Hi Brink,

    I have run the task in Task Scheduler and it plays the exit sound only if I login with a password, if I delete the password, then the sound will not play. I guess I will just not have a shutdown sound.

    Anders
      My ComputerSystem Spec

  8. Brink's Avatar
    Posts : 32,329
    64-bit Windows 10 Pro build 18242
    Thread Starter
       05 Jan 2018 #8

    Anders,

    Yeah, the task requires the password of an administrator account for it to be able to run with highest privileges.
      My ComputersSystem Spec


  9. Posts : 1
    Windows 8.1 x64
       24 Mar 2018 #9

    Nice solution.

    But Windows its actually configurable through the default Sound control panel dialogue after changing a registry setting.

    In the registry editor, go to:

    Code:
    Computer\HKEY_CURRENT_USER\AppEvents\EventLabels\SystemExit
    and change the value of the key

    Code:
    ExcludeFromCPL
    from 1 to 0.

    Then go to (might vary according to Windows version)

    Settings, in the search box, type sounds, and select Change system sounds. In Program Events, Exit Windows will now be an option.

    There are also similar settings for Logon and Logoff.
      My ComputerSystem Spec


 
Page 1 of 2 12 LastLast

Tutorial Categories

Play Sound at Shutdown 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 Xbox Windows Phone


Related Threads
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...
Can't get Windows 10 Home to play shutdown sound. I have tried in regedit , but still it does not work. How can I get Windows 10 Home to play shutdown sound? sorry for my bad english.
I am trying to play system sound through Skype calls so that the other end can hear. I have tried using a Virtual Audio Cable for this but the quality is really bad, just sounds like I'm blasting a speaker into the mic. I've looked through online...
Pretty much what the title says..... thanks
I've browsed through a few threads on here, and because of that, I was able to figure out how to disable fast startup (which allows me to listen to the startup sound), but also replace it as well since I believe by default, there is no startup sound...
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 23:56.
Find Us