Toggle the mute on all the microphones.
Whatever the state of the microphones they will be toggled so that they can be muted or unmuted.
Installing AudioDeviceCmdlets must be done by the user.
If an application name is provided then that application's mute status will also be toggled.
PS> .\Set-RecordingMute.ps1
Toggle the state of all the microphones and the state in Teams.
PS> .\Set-RecordingMute.ps1 'Teams'
Code shamelessly pillaged from Mewt.
-
Copy 'Set-RecordingMute.ps1' to 'Powershell\Modules\RecordingMute\RecordingMute.psm1'
-
Copy 'shushing_face.png' to 'Powershell\Modules\RecordingMute'
-
Create 'PowerShell\Scripts\Set-RecordingMute.ps1'
Import-Module RecordingMute Set-RecordingMute 'Teams'
-
Create a Desktop Shortcut:
- Target:
"path\to\pwsh.exe" -NoProfile -WindowStyle hidden -ExecutionPolicy Bypass -File "path\to\PowerShell\Scripts\Set-RecordingMute.ps1"
- Shortcut key:
Ctrl + Shift + Alt + M
- Target: