How to mute and unmute your speaker from command-line on Windows operating system

SoundVolumeView is a freeware tool for Windows which allows you to easily mute and unmute any sound device from command-line and GUI.
In order to mute or unmute your device, you have to run SoundVolumeView, and find the device that you want to mute/unmute:

Let's say that you want to mute the 'Speakers' device in the above screenshot, so the command to mute the 'Speakers' device is:
SoundVolumeView.exe /Mute "Speakers"

However, if there are multiple items with the same name, you have to use the string appeared under the 'Item ID' column or 'Command-Line Friendly ID' column in order to uniquely identify the correct sound device.
In the example of the above screenshot, you can use the 'Realtek High Definition Audio\Device\Speakers\Render' string to identify the device, for example:
SoundVolumeView.exe /Mute "Realtek High Definition Audio\Device\Speakers\Render"

if you want to unmute the device, simply use the /Unmute command:
SoundVolumeView.exe /Unmute "Realtek High Definition Audio\Device\Speakers\Render"

You can switch between mute and unmute state by using the /Switch command, for example:
SoundVolumeView.exe /Switch "Realtek High Definition Audio\Device\Speakers\Render"

If the speaker you want to mute or unmute is the default render device ('Render' appears under the 'Default' column), you can simply specify "DefaultRenderDevice" instead of the device name/ID, for example:
SoundVolumeView.exe /Mute "DefaultRenderDevice"

Be aware that SoundVolumeView works on any version of Windows, starting from Windows Vista and up to Windows 10. Windows XP is not supported.