Skip to main content
ubuntuask.com

Back to all posts

How to Set Sound Scheme to "No Sound" By Powershell?

Published on
2 min read

Table of Contents

Show more
How to Set Sound Scheme to "No Sound" By Powershell? image

To set the sound scheme to "no sound" using PowerShell, you can use the following command:

Set-ItemProperty -Path "HKCU:\AppEvents\Schemes\Apps\.Default\.Default\" -Name "(Default)" -Value ""

This command sets the sound scheme for the default app events to no sound by setting the "(Default)" value to an empty string. This will effectively disable all sounds associated with the default app events.

How to set sound scheme to "no sound" by utilizing Powershell commands?

You can use the following Powershell command to set the sound scheme to "no sound":

Set-ItemProperty -Path "HKCU:\AppEvents\Schemes\Apps\.Default" -Name "(Default)" -Value ""

This command sets the default sound scheme for applications to an empty string, effectively turning off all sound notifications.

What is the correct syntax for setting sound scheme to "no sound" by Powershell?

To set the sound scheme to "no sound" using Powershell, you can use the following command:

New-ItemProperty -Path "HKCU:\AppEvents\Schemes\Apps\.Default" -Name "(Default)" -Value 0 -PropertyType String -Force

This command creates a new registry key in the path "HKCU:\AppEvents\Schemes\Apps.Default" with the value of 0, which corresponds to the "no sound" scheme.

How to use PowerShell to mute sound on your computer?

To mute sound on your computer using PowerShell, you can use the following command:

(New-Object -ComObject WScript.Shell).SendKeys([char]173)

This command uses the SendKeys method from the WScript.Shell com object to send the key combination for muting the sound to the system. The key combination [char]173 corresponds to the mute button on most keyboards.

You can run this command in a PowerShell window to mute the sound on your computer.

What command should I use in Powershell to set the sound scheme to "no sound"?

You can use the following command in Powershell to set the sound scheme to "no sound":

powershell -command "Set-ItemProperty -Path 'HKCU:\AppEvents\Schemes\Apps\.Default' -Name '(Default)' -Value 'No Sounds'"