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