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. 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. Open up the Sound Control Panel app by right-clicking the speaker icon in your Notification Area and selecting “Sounds.”
You can go ahead and test your changes right away. Head into each of those folders, open the ExcludeFromCPL value inside, and change the value from 1 to 0. Next, you’re going to make exactly the same change in two other subkeys inside the EventLabels key: WindowsLogoff and WindowsLogon. Change the value to 0 and then click “OK.” Note that by default, the value is 1, meaning that the action is excluded from the Control Panel. On the right side, double-click the ExcludeFromCPL value. Under the EventLabels key on the left side of Registry Editor, select the SystemExit subkey.
First, we’ll tackle the shutdown sound or, as Windows likes to call it, System Exit. You’re going to be making one small change in each of three different subkeys inside that EventLabels key. In the Registry Editor, use the left sidebar to navigate to the following key: HKEY_CURRENT_USER\AppEvents\EventLabels