Disassembler0 / Win10-Initial-Setup-Script

PowerShell script for automation of routine tasks done after fresh installations of Windows 10 / Server 2016 / Server 2019
MIT License
4.69k stars 1.08k forks source link

DisableMicrophone option #253

Closed mpgr04 closed 4 years ago

mpgr04 commented 5 years ago

It would be nice to have an option which works the same way as DisableCamera, but for the microphone

r-chvrt commented 5 years ago

As i remember, there is a different GUID per mic. So either we disable all the mic entry in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\MMDevices\Audio\Capture or completely disable by another option (which i don't know except the one in GUI).

The first option is kinda tricky 'cuz you'll need to modify the device state of all the GUID in reg hive i just specified. So it should be something like :