Of course, no one keeps an audio device muted all the time. They will increase or decrease the volume but no one habitually mutes an audio device. If you use a pair of headphones with your desktop, and often have to disconnect them, you can use a little PowerShell script that will automatically mute sound when you unplug your headphones.Look for and click on the ‘Advanced gesture configuration’ option. Scroll down to either the three or four finger gestures. Open the dropdown under the gesture that you want to use to mute/unmute system volume and select the ‘Mute’ option. That’s all you have to do.Press the “Mute” key once to mute all system sound. Press and hold the “Volume Down” key until the mute symbol appears, or simply press and release this key repeatedly until you reach mute status. Press the “Mute” key again to unmute the MacBook’s sound volume. Similarly, why do I have no Sound on my MacBook air?
Is there a way to mute audio from PowerShell?
Anyways the code bellow let you access the [Audio]::Volume and [Audio]::Mute properties from PowerShell. This also work on a remote computer which could be useful.
How to mute and Unmute system volume in Windows 10?
This tutorial will show you different ways on how to mute and unmute the system volume or sound volume of individual devices and apps in Windows 10. The actual key you press on the keyboard will vary per manufacturer. Muting the default playback device (system volume) will mute all by default. 1 Press the Win + G keys to open the Game Bar.
Is there a PowerShell command to increase the volume of sound?
It seems that no PowerShell command codes could use to modify sound volume up to maximum only. The easy answer may use Nircmd to modify sound volume. Thanks, Snakefist.
How to mute and Unmute sound on MacBook Air?
Mute and Unmute Sound Volume in Settings. 1 Open Settings, and click/tap on the System icon. 2 Click/tap on Sound on the left side. (see screenshots below) 3 If you have more than one sound output device, select the device you want to mute or unmute in the Choose your output device drop menu.

Below are two helpful articles on a similar topic 👇
How to turn off trash disposal sound on MacBook Air?How do I mute or unmute my microphone during a Zoom meeting?