Play Sound at Shutdown in Windows 10  

Page 2 of 7 FirstFirst 1234 ... LastLast
  1. Brink's Avatar
    Posts : 56,205
    64-bit Windows 10 Pro for Workstations build 21354
    Thread Starter
       #10

    xArx said:
    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 Computers

  2. MrMii Win 10's Avatar
    Posts : 51
    Windows 10 Pro (1803) x64, Windows 7 Pro SP1 x64
       #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 Computer

  3. Brink's Avatar
    Posts : 56,205
    64-bit Windows 10 Pro for Workstations build 21354
    Thread Starter
       #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 Computers

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

    Brink said:
    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 Computer

  5. Brink's Avatar
    Posts : 56,205
    64-bit Windows 10 Pro for Workstations build 21354
    Thread Starter
       #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 Computers

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

    Brink said:
    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?

    Play Sound at Shutdown in Windows 10-image.png
      My Computer

  7. Brink's Avatar
    Posts : 56,205
    64-bit Windows 10 Pro for Workstations build 21354
    Thread Starter
       #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 Computers


  8. Posts : 12
    Windows 10 Pro [64-bit]
       #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.)
    Play Sound at Shutdown in Windows 10-ps_ise_sound_script.png

    2. Save the .PS1 file anywhere then copy it to C:\WINDOWS\System32\GroupPolicy\Machine\Scripts\Shutdown.
    Play Sound at Shutdown in Windows 10-copy_ps1_to_shutdown_script_folder.png

    3. Open Group Policy Editor then navigate to:
    Computer Configuration> Windows Settings> Scripts (Startup/Shutdown)> Double-click Shutdown on the right.
    Play Sound at Shutdown in Windows 10-gpedit_shutdown.png

    4. Click PowerShell Scripts Tab then Add...
    Play Sound at Shutdown in Windows 10-shutdown_properties_empty.png

    5. Click Browse...
    Play Sound at Shutdown in Windows 10-add_a_script.png

    6. Double-click the PS1 file you created.
    Play Sound at Shutdown in Windows 10-add_ps1.png

    7. Set "For this GPO, run scripts in the following order" to Run Windows PowerShell scripts first. Then Apply and OK.
    Play Sound at Shutdown in Windows 10-shutdown_properties.png
      My Computer


  9. Posts : 2
    Windows 10
       #18

    problem


    xArx said:
    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 Computer

  10. Brink's Avatar
    Posts : 56,205
    64-bit Windows 10 Pro for Workstations build 21354
    Thread Starter
       #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 Computers


 
Page 2 of 7 FirstFirst 1234 ... 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 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 15:11.
Find Us




Windows 10 Forums