How can I mute/unmute my sound from PowerShell
Starting with Vista you have to use the Core Audio API to control the system volume. It’s a COM API that doesn’t support automation and thus requires a lot of boilerplate to use from .NET and PowerShell. Anyways the code bellow let you access the [Audio]::Volume and [Audio]::Mute properties from PowerShell. This also work on … Read more