I am looking for the proper WMI Win32 or CIM Class property to find the location of a USB device. In device manager, shown below, the Location is known as "Port_#0002.Hub_#0009". Any ideas on the class and property that this is in the Windows API or if it is an arbitrary value Device Manager gives another property which is more cryptic. If the latter, what is the "more cryptic" class and property?
Windows USB Device Location
1.3k Views Asked by user2588050 At
2
There are 2 best solutions below
Related Questions in .NET
- file download method in visual studio 2017
- Repository manager receives the wrong connection string in .net core
- MongoDb not connecting C#
- The current .NET SDK does not support targeting .NET Core 6.0. Brand new WPF Project VS Community 2022 17.9.5
- Why Scanning GSI on DynamoDb doesnt work as fast as expected when using CONTAINS?
- Are "blittable types" really unmanaged types for StructLayout Sequential
- Failed to fetch dynamically imported module on Blazor JS Interop
- Problem to upload several images per one request
- Implementing Azure AD B2C Authentication in .NET 8 Blazor Project (RenderMode: InteractiveAuto)
- Stripe connect payout - throws exceptions
- 'IOException: The cloud file provider is not running', when trying to delete 'cloud' folder
- Azure Application Insights Not Displaying Custom Logs for Azure Functions with .NET 8
- Convert C# DateTime.Ticks to Bigquery DateTime Format
- Socket.io nodejs server .NET connection
- Producer Batching Service Bus Vs Kafka
Related Questions in WINDOWS
- how to play a sounds in c# forms?
- Echo behaviour of Microsoft Windows Telnet Client
- Getting error while running spark-shell on my system; pyspark is running fine
- DirectX 9 With No SDK Installed - How To Translate a D3DMATRIX?
- Gradle 8.7 cannot find installed JDK 22 in IntelliJ
- 'IOException: The cloud file provider is not running', when trying to delete 'cloud' folder
- Cannot load modules/mod_dav_svn.so into server
- Issue with launching application after updating ElectronJs to version 28.0.0 on Windows and Linux
- 32-bit applications do not display some files in Windows 10
- 'bun' is not recognized as an internal or external command
- mkssecreenshotmgr taking a screenshot
- Next js installation in windows 7 os
- Can't resize a partition using Mini Tool?
- Is there any way to set a printer as default according with Active Directory Policy Security Group and PC hostname?
- Electron Printing not working on Windows (Works on Mac)
Related Questions in USB
- How to "Enable mobile data" on a Huawei E3372 4G USB dongle using a bash script in Windows
- onCompletion(mp: MediaPlayer?) is unintentionally called after USB storage is connected
- How to detect a pc from android
- Raspberry Pi sending/receiving data over usb
- Process incoming USB message without sitting in a while loop
- Linux to QNX USB driver convert
- To execute a program from a USB drive
- How do I create a way to communicate between a phone and a computer using a usb in Java
- USB is not recognized
- Transfer SQLite Database via USB-Cable
- Updating Ublox module via commandline with file
- RS422 communication using PySerial (Raspberry PI)
- USB and GPIB devices not recognized with PyVISA using ni-visa and ni-488.2 on Ubuntu 22.04 Linux
- How to write a Android native linux app to communicate via usb to PC?
- transfer data and/or receive data via a USB cable by connecting Android applications with Windows applications
Related Questions in WMI
- NullReferenceException when Invoking Method to Enable/Disable Smart Card Reader using C#
- Running wmi queries as a non-admin user on a remote machine using C#
- WMI from centos to remote host
- Getting system info using WMI
- Getting Windows version 23H2 from Win32_OperatingSystem
- How do I access a uint64 in a VARIANT structure?
- c++ WMI: Failure to both enumerate and get instance methods (Windows 10 21H2)
- Why is the WMI win32_Process commandline property is giving null for only some processes of non-admin users?
- Associating WinRT DeviceInformation objects with WMI objects (Win32_PnPEntity)
- How to get "Capabilities" of a PnP device in PowerShell
- Only one ManagementEventWatcher process listens for events at a time
- WMI ThreadsPerHost Quota exceeded
- Get SCCM Deployment's Tab properties using PowerShelll
- How to find type of PCI slots on windows server
- What event does Windows use to detect a drive has been unlocked by bitlocker?
Related Questions in DEVICE-MANAGER
- Finding and Using Camera found in “Imaging Devices” in VB.NET
- NullReferenceException when Invoking Method to Enable/Disable Smart Card Reader using C#
- Switch between installed device drivers programmatically
- Сan't install a specific one .inf driver that I need to usb device that i've plugged in
- Programatically launch Update Driver Wizard for specific device
- Check device state from Device Manager in Python
- Xamarin.Forms android emulator wont start in Visual Studio
- A Windows program cannot obtain a SP_DEVINFO_DATA for a device
- How do I make a powershell script to set a HID device power saving option?
- Win10 Device Manager Replaces Valid Driver with Broken One on Restart
- Can't set focus on Device Manager window after connecting using Pywinauto
- Physical Mobile Device detected but not listed in Device Selection Spinner Android Studio
- Different behaviour of command launched from subprocess and from prompt
- 'best driver already installed' when trying to replace generic HID with WinUSB
- how to dismount the USB which connected on remote machine using c++
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You might cross-reference the Port_#X.Hub_#Y with the output of USBView. I've used this tool numerous times to get information about the existing USB tree.
The USBView sample is available in the WDK. If you are unfamiliar with this, simply run it - this tool walks the entire USB tree on the system and prints out information and descriptor listings for each device, as well as locations on the host controllers and hubs.
Start at the RefreshTree() function in this sample, you can then follow the code to see how it enumerates the host controllers, hubs and finally devices.
The easiest way to get the source to this sample is to install the 7.1.0 WDK which is currently available here: http://www.microsoft.com/en-us/download/details.aspx?id=11800