В предыдущих версиях Windows пользователь мог изменить системные звуки в «Панель управления» — «Звук» на вкладке «Звуки». Точно так же этом можно сделать и в Windows 10, но в списке доступных для изменения звуков отсутствуют «Вход в Windows», «Выход из Windows», «Завершение работы Windows».
В этой краткой инструкции — о том, как вернуть возможность изменять звуки входа (мелодию запуска) Windows 10, выхода из системы и выключения компьютера (а также разблокировки компьютера), если по какой-то причине стандартные звуки для этих событий вас не устраивают. Возможно также пригодится инструкция: Что делать, если не работает звук в Windows 10 (или работает неправильно).
Включение отображения отсутствующих системных звуков в настройке звуковой схемы
Для того, чтобы появилась возможность изменять звуки входа, выхода и выключения Windows 10, потребуется воспользоваться редактором реестра. Для его запуска либо начните вводить regedit в поиске на панели задач, либо нажмите клавиши Win+R, введите regedit и нажмите Enter. После этого выполните следующие простые шаги.
- В редакторе реестра перейдите к разделу (папки слева) HKEY_CURRENT_USER\ AppEvents\ EventLabels.
- Внутри этого раздела обратите внимание на подразделы SystemExit, WindowsLogoff, WindowsLogon и WindowsUnlock. Они соответствуют завершению работы (хоть это здесь и называется SystemExit), выходу из Windows, входу в Windows и разблокировке системы.
- Для того, чтобы включить отображение любого из этих пунктов в настройке звуков Windows 10, выберите соответствующий раздел и обратите внимание на значение ExcleudeFromCPL в правой части редактора реестра.
- Кликните по значению дважды и измените его значение с 1 на 0.
После того, как вы выполните действие для каждого из нужных вам системных звуков и зайдете в настройки звуковой схемы Windows 10 (это можно сделать не только через панель управления, но и через правый клик по значку динамика в области уведомлений — «Звуки», а в Windows 10 1803 — правый клик по динамику — параметры звука — открыть панель управления звуком).
Там вы увидите необходимые пункты с возможностью изменять звук для включения (не забудьте отметить пункт Проигрывать мелодию запуска Windows), выключения, выхода и разблокировки Windows 10. Обновление: для изменения мелодии запуска в Windows 10 последних версий потребуется выполнить шаги, описанные в этой инструкции.
Вот и всё, готово. Инструкция получилась действительно компактной, но, если что-то не получается или работает не так, как ожидается — задавайте вопросы в комментариях, будем искать решение.
Older Windows versions were able to play a startup sound, a separate logon sound. A sound could also play when Windows logs off or when it shuts down. The user could assign all these sounds from Control Panel -> Sound. Starting with Windows 8, sounds for these events have been eliminated almost entirely. Let’s see how to play the shutdown sound in Windows 10.
In Windows 10, Microsoft focused on making Windows boot and shut down faster. Developers of the OS had completely removed the sounds which play at logon, log off and shutdown. Even if you assign sounds to the events for ‘Exit Windows’, ‘Windows Logon’ and ‘Windows Logoff’ or try to restore these events using the Registry, they will not play. There is the official statement from Microsoft which explains the situation.
«We removed these sound events for performance reasons. We pay a lot of attention to how quickly the machine powers on, powers off, goes to sleep, resumes from sleep, etc. As part of speeding this up, we experiment a lot with what process is in control of the startup and shutdown sounds. In an interim build of Windows 8 while it was under development, we were able to speed things up considerably by moving the shutdown sound from Explorer.exe (which is running while you’re still logged on) to Logonui.exe (which is the process that shows the «Shutting down» circle.)
However moving the shutdown sound this late started running into other problems. The code we use to play the sound (the PlaySound API) needs to read from the registry (to see what the preferences for this sound were) and from the disk (to read the .wav file), and we ran into issues where the sound was unable to play (or got cutoff halfway) because we had shut down the registry or the disk already! We could have spent time rewriting the API but we decided the safest and most performant thing to do was to eliminate the sound altogether.»
Note: The startup sound remained in Windows 10 but it is disabled by default. You need to enable it manually if required. See the following article:
Enable startup sound in Windows 10
Additionally, Windows 10 comes with a fast startup/hybrid boot feature. Due to this feature, when you click Shut down, it logs you out and hibernates the kernel and powers off; it doesn’t really exit Windows. When you turn on your Windows 10 device again, it resumes from hibernate and logs in again. This is different from booting after a full shut down.
In a previous article, I’ve covered how to play a sound at logon. See
How to Play the Logon Sound in Windows 10
Here are instructions to revive the Shutdown sound. The solution is to simply use the Windows event log system to play the sound.
The Shut Down event
We need to create a task in Task Scheduler attached to a special Shut Down event. The event we need has ID 1074 = User Initiated Shutdown, as shown in the following screenshot.
Task Scheduler is able to run tasks attached to any event, so specifying our script as the task’s action will make it play the sound every time you shut down the OS. To play the sound, we have to use PowerShell.
Method limitations
- This method only works when you know and can use credentials for an administrative user account.
- It doesn’t work if your user account has no password.
- It might not work if you have Fast Startup disabled.
Unfortunately, there is no way to bypass these limitations. The method is very tricky and doesn’t work reliable. You’ve been warned.
Play the Shutdown Sound in Windows 10
- Open Administrative Tools.
- Click the Task Scheduler icon.
- In the Task Scheduler library, click on the Create Task… link on the right.
- In Create Task dialog, fill in the Name box some meaningful text like «Play shutdown sound».
- Set the options as follows:
— Configure for Windows 10.
— Run whether user is logged on or not
— Run with highest privileges box - Switch to the Triggers tab and click on the New… button.
- Set the event for the trigger to On an event.
- Select System in the drop down list under Log.
- Enter the value 1074 in the Event ID text box.
- Switch to the Actions tab and click on the New… button.
- In the next dialog, set the action type to Start a program.
- In the Program box, specify powershell.exe as the program.
- Type the next text into the Add arguments text box:
-c (New-Object Media.SoundPlayer 'C:\Windows\Media\Windows Shutdown.wav').PlaySync();
- Switch to the Conditions tab and disable the option Start the task only if the computer is on AC power.
- Click on the OK button to create the task.
- Type your user account password (or other administrative user account credentials).
You are done!
This newly assigned sound will play when you shut down the device. For extra sound files, check out the WinSounds.com web site. It comes with a large collection of sounds for Windows.
Note: I am using the default shutdown sound file which comes with Windows 10. It is short and nice. You can use any WAV file you want. Just provide the correct path in the task.
This trick also applicable to Windows 8 and Windows 8.1.
In the comments, please tell if this method works for you or not. Please specify which Windows 10 version and build number you are running, and if you have the Fast Startup feature disabled or enabled.
Support us
Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:
If you like this article, please share it using the buttons below. It won’t take a lot from you, but it will help us grow. Thanks for your support!
Ещё в Windows 8 с целью оптимизации производительности разработчики Microsoft решили отказаться от традиционного звукового приветствия при загрузке рабочего стола операционной системы, было также отключено звуковое сопровождение при завершении работы, выходе и входе в систему. Тем не менее, если вы не используете быстрый старт, вы можете попробовать включить воспроизведение звука приветствия в окошке «Звуки».
А вот с мелодией завершения работы Windows всё немного сложнее, так как соответствующая опция попросту отсутствует в окошке озвучивания событий и, если вы хотите, чтобы оно также воспроизводилась, придётся действовать в обход. Для этого вам понадобится подходящий аудиофайл, PowerShell и Планировщик заданий, который будет запускать консоль в момент инициации события «Выключение питания», имеющего код 1074.
Чтобы трюк сработал, в параметрах электропитания желательно отключить опцию «Быстрый старт», вторым и обязательным условием является работа под учётной записью администратора, третьим — наличие пароля входа в систему.
Итак, откройте командой taskschd.msc Планировщик заданий и нажмите в правой колонке «Создать задачу».
В окне на вкладке «Общие» даём задаче название, включаем опции «Выполнять для всех пользователей» и «Выполнить с наивысшими правами». Если вы работаете в Windows 10, в меню «Настроить для» не забудьте выбрать «Windows 10».
Далее переключитесь на вкладку «Триггеры», нажмите «Создать».
В меню «Начать задачу» выберите «При событии», в меню «Журнал» укажите «Система», в поле коа события вставьте 1074.
Нажмите «OK», переключитесь на вкладку «Действия», нажмите «Создать».
Действие оставляем по умолчанию, то есть запуск программы, в поле названия приложения вписываем powershell.exe, а в поле аргументов вставляем такой код:
-c (New-Object Media.SoundPlayer 'C:\Windows\Media\Windows Shutdown.wav').PlaySync();
В данном примере используется стандартный звук завершения работы, файл которого Windows Shutdown.wav хранится в папке C:\Windows\Media, вы же, если того пожелаете, можете использовать свой файл.
Почти всё готово. Жмём «OK», переходим на вкладку «Условия» и снимаем там галку с опции «Запускать только при питании от электросети».
Снова жмём «OK», вводим в открывшемся диалоговом окошке свой пароль и сохраняем настройки.
Если всё было сделано правильно, в момент завершения работы проиграет «прощальная» мелодия Windows. Трюк должен работать в Windows 8, 8.1 и 10, хотя и без гарантии, вполне может статься, что система по-прежнему будет завершать свою работу молча.
Quick Links
-
Add the Actions Back to the Sound Control Panel by Editing the Registry
-
Download Our One-Click Registry Hacks
Before Windows 10 came along, we were free to change the sounds that played when we shut down, logged off, or logged on to Windows. For some reason, Microsoft hid those sound actions from being modified in Windows 10. Here’s how to get them back.
Windows has always been pretty good about letting you customize every nook and cranny of the OS, including what sounds played for all kinds of different system events. You can even make Windows play a sound when you toggle your Caps Lock, Scroll Lock, and Num Lock keys. While you can still customize what sounds sounds play for most OS events, Windows 10 hid shut down, logoff, and logon from view. They’re still around, though. You just need to make a few mild changes in the Windows Registry to get them back.
Add the Actions Back to the Sound Control Panel by Editing the Registry
To add the shutdown, logoff, and logon actions back to the menu in the Sound Control Panel app, you just need to make a few little tweaks in the Windows Registry.
Standard warning: Registry Editor is a powerful tool and misusing it can render your system unstable or even inoperable. This is a pretty simple hack and as long as you stick to the instructions, you shouldn’t have any problems. That said, if you’ve never worked with it before, consider reading about how to use the Registry Editor before you get started. And definitely back up the Registry (and your computer!) before making changes.
Open the Registry Editor by hitting Start and typing “regedit.” Press Enter to open Registry Editor and then give it permission to make changes to your PC.
In the Registry Editor, use the left sidebar to navigate to the following key:
HKEY_CURRENT_USER\AppEvents\EventLabels
You’re going to be making one small change in each of three different subkeys inside that EventLabels
key. First, we’ll tackle the shutdown sound or, as Windows likes to call it, System Exit. Under the EventLabels
key on the left side of Registry Editor, select the SystemExit
subkey. On the right side, double-click the ExcludeFromCPL
value.
Note that by default, the value is 1, meaning that the action is excluded from the Control Panel. Change the value to 0 and then click «OK.»
Next, you’re going to make exactly the same change in two other subkeys inside the EventLabels
key: WindowsLogoff
and WindowsLogon
. Head into each of those folders, open the ExcludeFromCPL
value inside, and change the value from 1 to 0.
No need to restart Windows. You can go ahead and test your changes right away. Open up the Sound Control Panel app by right-clicking the speaker icon in your Notification Area and selecting «Sounds.»
You should now see the new actions (Exit Windows, Windows Logoff, and Windows Logon) available in the selection window and you can assign whatever sounds you like to those actions.
If, for whatever reason, you want to hide those actions from the Control Panel again, just head back into Registry Editor and change each of those ExcludeFromCPL
values back to 1.
Download Our One-Click Registry Hacks
If you don’t feel like diving into the Registry yourself, we’ve created some registry hacks you can use. Download and unzip them first. Inside, you’ll find three folders named «System Exit Sound Hacks,» «Windows Logon Sound Hacks,» and «Windows Logoff Sound Hacks.» Inside each of those folders, you’ll find two hacks: one for adding the action to the Sounds Control Panel and one for removing the action again. Double-click the hack you want to use and click through the prompts. When you’ve applied the hack you want, the changes will take place immediately. No need to restart Windows.
Shutdown-Logoff-Logon Sound Hacks
These hacks are really just the individual SystemExit
, WindowsLogoff
, and WindowsLogon
subkeys, stripped down to the ExcludeFromCPL
values we talked about in the previous section and then exported to a .REG file. Running either of the hacks sets that value to the appropriate number. And if you enjoy fiddling with the Registry, it’s worth taking the time to learn how to make your own Registry hacks.