Use Powershell to find which process is using a USB camera?

Troy R. Nelson 1 Reputation point
2021-10-25T17:26:55.42+00:00

I'm trying to figure out which Process is using a USB camera in Powershell. How do you do that?
I currently have the AV Bridge selected as the USB camera and being viewed through Zoom.

I've explored using:

Get-Process -Name Zoom | Format-List * #I'm looking to see what info I can get about the Zoom application

Get-WmiObject -Class Win32_PnPEntity | Where-Object {$_.name -match 'AV Bridge'} #Search for the AV Bridge USB camera.

Get-WmiObject Win32_PnPEntity | where {$_.caption -match 'camera'}

Get-Service -Name usbvideo | Format-List *

PS C:\windows\system32> Get-PnpDevice -FriendlyName 'AV Bridge'

Status Class FriendlyName InstanceId


OK Camera AV Bridge USB\VID_25C1...
OK MEDIA AV Bridge USB\VID_25C1...

PS C:\windows\system32> Get-PnpDevice -FriendlyName 'AV Bridge' | Format-List *

Class : Camera
FriendlyName : AV Bridge
InstanceId : USB\VID_25C1&PID_0004&MI_00\6&249C6464&0&0000
Problem : CM_PROB_NONE
ConfigManagerErrorCode : CM_PROB_NONE
ProblemDescription :
Caption : AV Bridge
Description : USB Video Device
InstallDate :
Name : AV Bridge
Status : OK
Availability :
ConfigManagerUserConfig : False
CreationClassName : Win32_PnPEntity
DeviceID : USB\VID_25C1&PID_0004&MI_00\6&249C6464&0&0000
ErrorCleared :
ErrorDescription :
LastErrorCode :
PNPDeviceID : USB\VID_25C1&PID_0004&MI_00\6&249C6464&0&0000
PowerManagementCapabilities :
PowerManagementSupported :
StatusInfo :
SystemCreationClassName : Win32_ComputerSystem
SystemName : ASA-63842
ClassGuid : {ca3e7ab9-b4c3-4ae6-8251-579ef933890f}
CompatibleID : {USB\Class_0e&SubClass_03&Prot_00, USB\Class_0e&SubClass_03, USB\Class_0e}
HardwareID : {USB\VID_25C1&PID_0004&REV_0001&MI_00, USB\VID_25C1&PID_0004&MI_00}
Manufacturer : Microsoft
PNPClass : Camera
Present : True
Service : usbvideo
PSComputerName :
CimClass : ROOT/cimv2:Win32_PnPEntity
CimInstanceProperties : {Caption, Description, InstallDate, Name...}
CimSystemProperties : Microsoft.Management.Infrastructure.CimSystemProperties

Class : MEDIA
FriendlyName : AV Bridge
InstanceId : USB\VID_25C1&PID_0004&MI_02\6&249C6464&0&0002
Problem : CM_PROB_NONE
ConfigManagerErrorCode : CM_PROB_NONE
ProblemDescription :
Caption : AV Bridge
Description : USB Audio Device
InstallDate :
Name : AV Bridge
Status : OK
Availability :
ConfigManagerUserConfig : False
CreationClassName : Win32_PnPEntity
DeviceID : USB\VID_25C1&PID_0004&MI_02\6&249C6464&0&0002
ErrorCleared :
ErrorDescription :
LastErrorCode :
PNPDeviceID : USB\VID_25C1&PID_0004&MI_02\6&249C6464&0&0002
PowerManagementCapabilities :
PowerManagementSupported :
StatusInfo :
SystemCreationClassName : Win32_ComputerSystem
SystemName : ASA-63842
ClassGuid : {4d36e96c-e325-11ce-bfc1-08002be10318}
CompatibleID : {USB\Class_01&SubClass_02&Prot_00, USB\Class_01&SubClass_02, USB\Class_01}
HardwareID : {USB\VID_25C1&PID_0004&REV_0001&MI_02, USB\VID_25C1&PID_0004&MI_02}
Manufacturer : (Generic USB Audio)
PNPClass : MEDIA
Present : True
Service : usbaudio
PSComputerName :
CimClass : ROOT/cimv2:Win32_PnPEntity
CimInstanceProperties : {Caption, Description, InstallDate, Name...}
CimSystemProperties : Microsoft.Management.Infrastructure.CimSystemProperties

PS C:\windows\system32> Get-PnpDevice -FriendlyName 'AV Bridge' -Class Camera | Get-PnpDeviceProperty

InstanceId KeyName Type Data


USB\VID... DEVPKEY_Device_DeviceDesc String USB Video Device
USB\VID... DEVPKEY_Device_HardwareIds StringList {USB\VID_25C1&PID_0004&REV_0001&MI_00, USB\VID_25C1&PID_...
USB\VID... DEVPKEY_Device_CompatibleIds StringList {USB\Class_0e&SubClass_03&Prot_00, USB\Class_0e&SubClass...
USB\VID... DEVPKEY_Device_Service String usbvideo
USB\VID... DEVPKEY_Device_Class String Camera
USB\VID... DEVPKEY_Device_ClassGuid Guid {CA3E7AB9-B4C3-4AE6-8251-579EF933890F}
USB\VID... DEVPKEY_Device_Driver String {ca3e7ab9-b4c3-4ae6-8251-579ef933890f}\0001
USB\VID... DEVPKEY_Device_ConfigFlags UInt32 0
USB\VID... DEVPKEY_Device_Manufacturer String Microsoft
USB\VID... DEVPKEY_Device_FriendlyName String AV Bridge
USB\VID... DEVPKEY_Device_LocationInfo String 0000.0014.0000.004.000.000.000.000.000
USB\VID... DEVPKEY_Device_PDOName String \Device\00000098
USB\VID... DEVPKEY_Device_Capabilities UInt32 164
USB\VID... DEVPKEY_Device_LowerFilters StringList {WdmCompanionFilter}
USB\VID... DEVPKEY_Device_BusTypeGuid Guid {9D7DEBBC-C85D-11D1-9EB4-006008C3A19A}
USB\VID... DEVPKEY_Device_LegacyBusType UInt32 15
USB\VID... DEVPKEY_Device_BusNumber UInt32 0
USB\VID... DEVPKEY_Device_EnumeratorName String USB
USB\VID... DEVPKEY_Device_Address UInt32 4
USB\VID... DEVPKEY_Device_PowerData Binary {56, 0, 0, 0...}
USB\VID... DEVPKEY_Device_RemovalPolicy UInt32 3
USB\VID... DEVPKEY_Device_RemovalPolicyDefault UInt32 3
USB\VID... DEVPKEY_Device_InstallState UInt32 0
USB\VID... DEVPKEY_Device_BaseContainerId Guid {31EC5869-E70D-5E61-8A6B-23BE0BB7365A}
USB\VID... DEVPKEY_NAME String AV Bridge
USB\VID... DEVPKEY_Device_InstanceId String USB\VID_25C1&PID_0004&MI_00\6&249C6464&0&0000
USB\VID... DEVPKEY_Device_DevNodeStatus UInt32 25174026
USB\VID... DEVPKEY_Device_ProblemCode UInt32 0
USB\VID... DEVPKEY_Device_Parent String USB\VID_25C1&PID_0004\001ec09106a4-3
USB\VID... DEVPKEY_Device_Siblings StringList {USB\VID_25C1&PID_0004&MI_02\6&249c6464&0&0002}
USB\VID... DEVPKEY_Device_SafeRemovalRequired Boolean False
USB\VID... DEVPKEY_Device_ContainerId Guid {31EC5869-E70D-5E61-8A6B-23BE0BB7365A}
USB\VID... DEVPKEY_Device_IsPresent Boolean True
USB\VID... DEVPKEY_Device_HasProblem Boolean False
USB\VID... {83DA6326-97A6-4088-9453-A1923F573B29} 15 Boolean True
USB\VID... DEVPKEY_Device_IsRebootRequired Boolean False
USB\VID... DEVPKEY_Device_ReportedDeviceIdsHash UInt32 1216418067
USB\VID... DEVPKEY_Device_InLocalMachineContainer Boolean False
USB\VID... DEVPKEY_Device_Stack StringList {\Driver\ksthunk, \Driver\usbvideo, \Driver\usbccgp}
USB\VID... {A8B865DD-2E3D-4094-AD97-E593A70C75D6} 26 Boolean False
USB\VID... {83DA6326-97A6-4088-9453-A1923F573B29} 23 StringList {WdmCompanionFilter}
USB\VID... {3464F7A4-2444-40B1-980A-E0903CB6D912} 10 UInt32 3
USB\VID... DEVPKEY_Device_BusReportedDeviceDesc String AV Bridge
USB\VID... DEVPKEY_Device_ConfigurationId String usbvideo.inf:USB\Class_0e,USBVideo.NT
USB\VID... {80497100-8C73-48B9-AAD9-CE387E19C56E} 6 UInt32 0
USB\VID... {83DA6326-97A6-4088-9453-A1923F573B29} 3 String usbvideo.inf:db04a16c361f194c:USBVideo.NT:10.0.18362.815...
USB\VID... {83DA6326-97A6-4088-9453-A1923F573B29} 10 String USB\VID_25C1&PID_0004\001ec09106a4-3
USB\VID... DEVPKEY_Device_InstallDate FileTime 10/21/2021 1:10:49 PM
USB\VID... DEVPKEY_Device_FirstInstallDate FileTime 10/21/2021 1:10:49 PM
USB\VID... DEVPKEY_Device_LastArrivalDate FileTime 10/25/2021 9:04:43 AM
USB\VID... DEVPKEY_Device_LocationPaths StringList {PCIROOT(0)#PCI(1400)#USBROOT(0)#USB(4)#USBMI(0), PCIROO...
USB\VID... DEVPKEY_Device_DriverDate FileTime 6/20/2006 5:00:00 PM
USB\VID... DEVPKEY_Device_DriverVersion String 10.0.18362.815
USB\VID... DEVPKEY_Device_DriverDesc String USB Video Device
USB\VID... DEVPKEY_Device_DriverInfPath String usbvideo.inf
USB\VID... DEVPKEY_Device_DriverInfSection String USBVideo.NT
USB\VID... DEVPKEY_Device_MatchingDeviceId String USB\Class_0e
USB\VID... DEVPKEY_Device_DriverProvider String Microsoft
USB\VID... DEVPKEY_Device_DriverRank UInt32 16719874
USB\VID... {A8B865DD-2E3D-4094-AD97-E593A70C75D6} 16 StringList {ks.inf, kscaptur.inf, pci.inf}
USB\VID... DEVPKEY_Device_GenericDriverInstalled Boolean True

Not that I know anything about the innerworkings of Windows, but I'm assuming to figure this out I must relate a process to some type of resource or hardware list. Or there must be a list on something in-between, like the USBvideo service which would show which process is using which USB camera? Can someone please point me in the right direction?

Windows Hardware Performance
Windows Hardware Performance
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,543 questions
0 comments No comments
{count} votes