Devices with USB cameras


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.


0 Comments   [ + ] Show comments

Answers (1)

Posted by: JasonEgg 2 years ago
Red Belt

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

Displaying USB devices using wmi Win32_USBControllerDevice

Detecting USB devices using wmic CIM_LogicalDevice

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ