The solution I found today (after much Googling) was the installing of the devcon.exe which you can extract from the toolkit:
EnterpriseWDK_rs2_release_15063_20170317-1834.zip
Make sure you use the correct version 32 or 64 bit. It's in the directory "\Program Files\Windows Kits\10\tools\x64" in the zip file.
I copied it to my Windows\system32 directory.
Use Devcon to find the HardwareID of the microphone.
I then wrote a quick batch file to toggle the microphone on and off. Has to be run as admin though.
@echo off
cls
devcon status @SWD\MMDEVAPI\{0.0.1.00000000}.{6355EED0-821D-4586-82E0-3C583C11A927} >%temp%\mic.txt
cls
find "running" %temp%\mic.txt >nul
if %errorlevel% equ 1 goto enable
goto disable
:disable
devcon disable @SWD\MMDEVAPI\{0.0.1.00000000}.{6355EED0-821D-4586-82E0-3C583C11A927}
exit
:enable
devcon enable @SWD\MMDEVAPI\{0.0.1.00000000}.{6355EED0-821D-4586-82E0-3C583C11A927}
exit
Of course the "@SWD\MMDEVAPI\{0.0.1.00000000}.{6355EED0-821D-4586-82E0-3C583C11A927}" is what I found for my mic using the command "devcon hwids * > hwids.txt" and looking in the hwids.txt file.
The only slight downside is that it has to be run as administrator (pop up window) but using a shortcut it is possible to run that on a keystroke. I have an older Microsoft keyboard with user-definable "fav" keys - so I just added the shortcut url to the key.
It does work! The mic is enabled and disabled using this approach.