How can I mute/unmute my sound from PowerShell

后端 未结 10 2188
孤独总比滥情好
孤独总比滥情好 2020-11-29 06:14

Trying to write a PowerShell cmdlet that will mute the sound at start, unless already muted, and un-mute it at the end (only if it wasn\'t muted to begin with). Couldn\'t fi

10条回答
  •  渐次进展
    2020-11-29 06:35

    You could skin the cat another way by simply managing the Windows Audio Service. Stop it to mute, start it to unmute.

提交回复
热议问题