How can I mute/unmute my sound from PowerShell

后端 未结 10 2191
孤独总比滥情好
孤独总比滥情好 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:42

    In the second script above, to work in PowerShell 7 or PowerShell Core in the 1st line change:

    -Language CsharpVersion3
    

    to...

    -Language Csharp
    

    Working on W10

提交回复
热议问题