Play Sound at Shutdown in Windows 10  

Page 2 of 3 FirstFirst 123 LastLast
  1. Brink's Avatar
    Posts : 34,551
    64-bit Windows 10 Pro build 18290
    Thread Starter
       24 Mar 2018 #10

    xArx said: View Post
    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.


    Hello xArx, and welcome to Ten Forums. :)

    Unfortunately, that registry change will indeed add "Exit Windows" to the "Sounds" control panel, but it doesn't actually work to play the sound for it or log on and log off.
      My ComputersSystem Spec

  2. MrMii Win 10's Avatar
    Posts : 51
    Windows 10 Pro (1803) x64, Windows 7 Pro SP1 x64
       24 Apr 2018 #11

    I've applied this tutorial to log off, log on, and shutdown, but it seems as though the shutdown sound doesn't audibly play half the time, even when Task Scheduler says it completed successfully, and when the path is both correct and as close to the C:\Windows\Media folder as possible. I think it's shutting down too quickly for PowerShell to play the sound, as when it plays, it's usually cut off midway. Is there a way to delay this so that it will play and then shutdown after it has finished playing? I think it might be possible with a bit of scripting.
      My ComputerSystem Spec

  3. Brink's Avatar
    Posts : 34,551
    64-bit Windows 10 Pro build 18290
    Thread Starter
       24 Apr 2018 #12

    Hello Robert, :)

    I find that using a short playing sound works best because of this issue of it shutting down sometimes before the sound has finished playing.

    I'm not sure about a way to delay the shutdown until the sound has finished playing.
      My ComputersSystem Spec

  4. MrMii Win 10's Avatar
    Posts : 51
    Windows 10 Pro (1803) x64, Windows 7 Pro SP1 x64
       26 Apr 2018 #13

    Brink said: View Post
    Hello Robert, :)

    I find that using a short playing sound works best because of this issue of it shutting down sometimes before the sound has finished playing.

    I'm not sure about a way to delay the shutdown until the sound has finished playing.
    I'm using the XP version of tada.wav, or one of the varying "Shutdown" voice clips from Distance's announcer, which are all no more than a second at most. Would a full shutdown by holding shift be a way to do that maybe?
      My ComputerSystem Spec

  5. Brink's Avatar
    Posts : 34,551
    64-bit Windows 10 Pro build 18290
    Thread Starter
       26 Apr 2018 #14

    That should be able to play then.

    It wouldn't hurt to test by doing a Shift+Shutdown to see if there's any difference for you.
      My ComputersSystem Spec

  6. MrMii Win 10's Avatar
    Posts : 51
    Windows 10 Pro (1803) x64, Windows 7 Pro SP1 x64
       01 May 2018 #15

    Brink said: View Post
    That should be able to play then.

    It wouldn't hurt to test by doing a Shift+Shutdown to see if there's any difference for you.
    Turns out it wasn't playing due to a typo in the path to the wav file. Instead of "C:\Windows\Media\Distance Announcer\Shutdown.wav," I had it spelled as "Anouncer" in the task actions. Spelling it right would probably help.

    Btw, when I run the command normally inside PowerShell, it tells me that the "-c" at the start isn't recognized as a cmdlet, function, script, etc, but the command still runs. I can also run it without -c at the start, and it doesn't give an error. Is there a point to having the -c at the start?

    Click image for larger version. 

Name:	image.png 
Views:	44 
Size:	22.8 KB 
ID:	186955
      My ComputerSystem Spec

  7. Brink's Avatar
    Posts : 34,551
    64-bit Windows 10 Pro build 18290
    Thread Starter
       02 May 2018 #16

    Great news on the sound playing now. It's always the simple mistakes that get us.

    The command at step 10 was designed to run in a command prompt instead since that's what Task Scheduler uses.

    PowerShell -c (New-Object Media.SoundPlayer 'C:\Windows\Media\Distance Announcer\Shutdown.wav').PlaySync();
      My ComputersSystem Spec


  8. Posts : 12
    Windows 10 Pro [64-bit]
       13 Jul 2018 #17

    My Solution using GPEDIT and PowerShell ISE...


    Note: So I spent half a day figuring out how to get Shutdown sounds to work. I used Group Policy Editor and PowerShell ISE to do this workaround.


    1. Create a .PS1 file with the script provided in the tutorial:
    -c (New-Object Media.SoundPlayer 'C:\Windows\Media\Sound.wav').PlaySync();
    (Change C:\Windows\Media\Sound.wav to the full path of your wav file.)
    Click image for larger version. 

Name:	ps_ise_sound_script.png 
Views:	33 
Size:	37.1 KB 
ID:	195624

    2. Save the .PS1 file anywhere then copy it to C:\WINDOWS\System32\GroupPolicy\Machine\Scripts\Shutdown.
    Click image for larger version. 

Name:	copy_ps1_to_shutdown_script_folder.png 
Views:	39 
Size:	50.8 KB 
ID:	195625

    3. Open Group Policy Editor then navigate to:
    Computer Configuration> Windows Settings> Scripts (Startup/Shutdown)> Double-click Shutdown on the right.
    Click image for larger version. 

Name:	gpedit_shutdown.png 
Views:	33 
Size:	45.5 KB 
ID:	195626

    4. Click PowerShell Scripts Tab then Add...
    Name:  shutdown_properties_empty.png
Views: 163
Size:  20.3 KB

    5. Click Browse...
    Name:  add_a_script.png
Views: 163
Size:  6.4 KB

    6. Double-click the PS1 file you created.
    Click image for larger version. 

Name:	add_ps1.png 
Views:	27 
Size:	23.6 KB 
ID:	195631

    7. Set "For this GPO, run scripts in the following order" to Run Windows PowerShell scripts first. Then Apply and OK.
    Name:  shutdown_properties.png
Views: 162
Size:  21.6 KB
      My ComputerSystem Spec

  9.    15 Oct 2018 #18

    problem


    xArx said: View Post
    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.
    the only problem is (like logon and logoff) the sounds wont play.
      My ComputerSystem Spec

  10. Brink's Avatar
    Posts : 34,551
    64-bit Windows 10 Pro build 18290
    Thread Starter
       15 Oct 2018 #19

    Hello @Nytr0s, and welcome to Ten Forums.

    You might see if the tutorials below may help with logon and logoff sounds.

    Play Sound at Logon (Sign-in) in Windows 10 | Windows 10 Tutorials

    Play Sound at Logoff (Sign-out) in Windows 10 | Windows 10 Tutorials
      My ComputersSystem Spec


 
Page 2 of 3 FirstFirst 123 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 Mixed Reality 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 00:28.
Find Us