Devices with USB cameras
Hello,
I was hoping someone could help me setup my Kace Device Inventory to allow for identification of workstations that have USB cameras. We have had an influx of USB cameras deployed to a lot of staff and no way to track which computers they are being used on and would like to insure we can identify the computers that have them connected.
ThanksĀ
Answers (1)
I looked into this a long time ago. A word of caution: unless you want to do A LOT of research you're going to have false negatives and false positives. That's because some cams will not be detected as "Camera" or "Imaging Device" (and some non-webcams will be detected as such) so the most accurate way to check for USB cameras is to compare to a list of known Hardware IDs. It's up to you how much you want to root out these non-obvious webcams vs. having an "okay" solution.
You'll want to create a custom inventory rule with the "ShellCommandTextReturn()" function. Then you can use cmd.exe with a "wmic" command or use Powershell to return a list of devices. Once the custom inventory rule has run against a device (happens during every inventory), you can create a smart label based on that CIR "software" record.
Here are some links you might find helpful:
Using Powershell's Get-PnpDevice to find webcam