Search notes:

Registry: HKEY_CURRENT_USER\Control Panel\Sound

Values

Beep

@reg add "HKEY_CURRENT_USER\Control Panel\Sound" /v Beep /t REG_SZ /d "no"  /f  > nul

ExtendedSounds

@reg add "HKEY_CURRENT_USER\Control Panel\Sound" /v ExtendedSounds /t REG_SZ /d "no"  /f > nul
… however, setting ExtendedSound to no didn't have the expected result. Actually, I am not even sure what it changed or changes.

Relation to beep service / restarting the computer

The relation (if any) to the beep service is unclear.
Some sources on the Internet suggest to stop or restart the beep service after making a change to this key in order to apply the changes with immediate effect.
However, I found that I could not stop the beep service, the service hangs after stopping it:
C:\> sc stop beep

SERVICE_NAME: beep
        TYPE               : 1  KERNEL_DRIVER
        STATE              : 3  STOP_PENDING
                                (STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        WIN32_EXIT_CODE    : 0  (0x0)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0

C:\> sc queryex beep

SERVICE_NAME: beep
        TYPE               : 1  KERNEL_DRIVER
        STATE              : 3  STOP_PENDING
                                (STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        WIN32_EXIT_CODE    : 0  (0x0)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0
        PID                : 0
        FLAGS              :
Thus, it seems, to me at least, that I have to restart the computer to apply the changes.

TODO

What is the relation to HKEY_CURRENT_USER\AppEvents\Schemes\Apps and mmsys.cpl?

See also

HKEY_CURRENT_USER\Control Panel

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Windows/...', 1759971409, '216.73.216.133', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/registry/tree/HKEY_CURRENT_USER/Control-Panel/Sound/index(96): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78