Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In Ubuntu, ifconfig lists all the USB devices with the header "usb0, usb1, ..etc"

I need to know the IP addresses of all the connected USB devices. It would be really helpful if on Windows ipconfig displayed the same thing...but it doesn't.

Is there any way to get this information? (doesn't have to be ipconfig, but needs to be some sort of cmd prompt command)

Thanks

share|improve this question
    
Can you also provide Win version? –  djechelon Jul 25 '12 at 19:47
    
You can list all USB devices with something like this: gwmi Win32_USBControllerDevice |%{[wmi]($_.Dependent)} | Sort Description,DeviceID | ft Description,DeviceID -auto in PowerShell –  Darius Jul 25 '12 at 20:08
    
What's gwmi? You need to be more descriptive, I'm hoping to use things that come with Windows –  robev Jul 25 '12 at 20:16
    
If you need more info for Get WMI and using with PowerShell –  Darius Jul 25 '12 at 20:24
    
OK I did that command but it doesn't list the IP addresses, just the devices (I see my device and its device id...) –  robev Jul 25 '12 at 20:34

2 Answers 2

up vote 1 down vote accepted

To get IP addresses of network devices that are attached to your PC you can run the following command in PowerShell:

Get-WmiObject -Class Win32_NetworkAdapterConfiguration -Filter IPEnabled=TRUE

This should display IP Address, Description and other info for you.

Sample of the results courtesy of ITProGuru

enter image description here

To get all USB devices you can type in the following in PowerShell:

gwmi Win32_USBControllerDevice |%{[wmi]($_.Dependent)} | Sort Description,DeviceID | ft Description,DeviceID -auto 

To get the final result you need to cross reference or maybe some one that is more familiar with PowerShell can shed some light on that.

share|improve this answer
    
Thanks this might work. All my devices have similar Descriptions, so is there a way to filter the list based off of that? It might be the easiest way. Also Their Service Names all say "usb_rndisx" so that could also be a filter. –  robev Jul 26 '12 at 12:46

Basically, it is possible only if they are detected by the OS as network cards. In that case, ipconfig /all solves the problem. Can you provide more information?

share|improve this answer
    
Yes, the devices are listed in the Device Manager as Network adapters. When I do ipconfig I see the device listed, but how do I extract only the IP? And how do I get only the USB devices? (ie: Network Adapters connected via USB) –  robev Jul 25 '12 at 20:06

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.