I'm attempting to shut down the microphone and camera on Windows 10. I'm trying to automate this process after loading the OS. I attempt to use Disable-PnpDevice in powershell but that does nothing. Unfortunately I am not at liberty to use Devcon. I thought maybe I'd write a .reg file where I basically just set the value for the audio endpoint and camera to "Deny" but I really have no idea how to do this. Can someone point me in the right direction? Thanks a lot.
Use MS SysInternals procmon, and run while making change to the settings using the Windows UI. Search the output for the regekys / strings that were changed and used that in you script for other target systems as needed.
Secondly, if this is your personal machine, why not get and use devcon, if it an enterprise environment, OK, I've seen where it is not allowed.