Uses Nircmd to switch output between multiple sources (headphones or speakers).
Provide hotkey to mute/unmute microphone.
Mute microphone and speakers when Windows is locked.
Use Soundcard Anaylsis from AHK to identify the device number.
Modify the SoundSet and SoundGet commands to use your device ID number.
Download Nircmd and place nircmd.exe in C:\Windows\System32\ folder.
The device names used are the ones set in the Windows "Sounds" settings.