1426
Post New Requests Here / Re: IDEA:Webcam/Mic on/off switch
« Last post by 4wd on March 17, 2016, 01:23 PM »Use devcon to disable/enable the device - you need the Device instance path from Device Properties.
eg.
Disable Microsoft Lifecam HD-3000:
Enable Microsoft Lifecam HD-3000:
Check status:
Put it all together as a simple command file:
Now any time you run the command file the status of the webcam will toggle between enabled and disabled.
DevCon is attached here for ease of download, normally you'd need to download and install a MS development kit but it is available elsewhere on the net.
NOTE: You may need to Run as Admin if you have UAC enabled.
eg.
Disable Microsoft Lifecam HD-3000:
Code: Text [Select]
- devcon disable "@USB\VID_045E&PID_0779&MI_02\6&17F0D2C8&0&0002"
Enable Microsoft Lifecam HD-3000:
Code: Text [Select]
- devcon enable "@USB\VID_045E&PID_0779&MI_02\6&17F0D2C8&0&0002"
Check status:
Code: Text [Select]
- devcon status "@USB\VID_045E&PID_0779&MI_02\6&17F0D2C8&0&0002"
Put it all together as a simple command file:
Code: Text [Select]
- @echo off
- devcon status "@USB\VID_045E&PID_0779&MI_02\6&17F0D2C8&0&0002" | find /i "disabled" >NUL
- if errorlevel 1 goto running
- devcon enable "@USB\VID_045E&PID_0779&MI_02\6&17F0D2C8&0&0002"
- goto alldone
- :running
- devcon disable "@USB\VID_045E&PID_0779&MI_02\6&17F0D2C8&0&0002"
- :alldone
- devcon status "@USB\VID_045E&PID_0779&MI_02\6&17F0D2C8&0&0002"
Now any time you run the command file the status of the webcam will toggle between enabled and disabled.
DevCon is attached here for ease of download, normally you'd need to download and install a MS development kit but it is available elsewhere on the net.
NOTE: You may need to Run as Admin if you have UAC enabled.

Recent Posts


