Skip to main content
ubuntuask.com

Back to all posts

How to Get Usb Device Name Through Windows Command Prompt Or Powershell?

Published on
6 min read
How to Get Usb Device Name Through Windows Command Prompt Or Powershell? image

Best USB Diagnostic Tools to Buy in October 2025

1 Diesel Laptops Nexiq USB Link 3 Wired Edition with Repair Information & Diagnostic Software

Diesel Laptops Nexiq USB Link 3 Wired Edition with Repair Information & Diagnostic Software

  • 12-MONTH WARRANTY FOR PEACE OF MIND WITH EVERY PURCHASE.
  • COMPREHENSIVE TOOLS: FAULT CODES, WIRING DIAGRAMS & REPAIR GUIDES.
  • DIESEL EXPLORER: LIVE DATA, ECM REPORTS & FAULT CODE MANAGEMENT.
BUY & SAVE
$744.00 $794.00
Save 6%
Diesel Laptops Nexiq USB Link 3 Wired Edition with Repair Information & Diagnostic Software
2 USB Diagnostic Tool Scanner KIT for EVINRUDE Outboard Engine E-TEC/Fitch

USB Diagnostic Tool Scanner KIT for EVINRUDE Outboard Engine E-TEC/Fitch

  • EFFORTLESSLY DIAGNOSE EVINRUDE E-TEC/FITCH ENGINES WITH USB SCANNER.
  • COLLECT DATA, RUN TESTS, AND PINPOINT FAULTS IN MINUTES.
  • COMPATIBLE WITH ANY WINDOWS DEVICE FROM XP TO 10 FOR EASY USE.
BUY & SAVE
$59.99
USB Diagnostic Tool Scanner KIT for EVINRUDE Outboard Engine E-TEC/Fitch
3 USB Diagnostic Tool Scanner KIT for EVINRUDE Outboard Engine E-TEC/Fitch

USB Diagnostic Tool Scanner KIT for EVINRUDE Outboard Engine E-TEC/Fitch

  • COMPLETE TOOLKIT: MANUALS, SOFTWARE, AND DRIVERS ON CD-ROM!
  • DURABLE 3-PIN CABLE & 6 FT USB EXTENSION FOR EASY ENGINE ACCESS.
  • COMPATIBLE WITH ALL EVINRUDE E-TEC, FICHT, DI, G2 MODELS 1999-2020!
BUY & SAVE
$54.99
USB Diagnostic Tool Scanner KIT for EVINRUDE Outboard Engine E-TEC/Fitch
4 KTTOOL 6 Pcs Diagnostic Cables Set for Tesla Model S 3 X Y, USB OBD2 Diagnostic Tools Adapter, with OBDII Adapter Harness 1013230-00-A, 1137658-00-C, 1930388-00-A

KTTOOL 6 Pcs Diagnostic Cables Set for Tesla Model S 3 X Y, USB OBD2 Diagnostic Tools Adapter, with OBDII Adapter Harness 1013230-00-A, 1137658-00-C, 1930388-00-A

  • COMPREHENSIVE DIAGNOSTICS: ACCESS CRITICAL VEHICLE DATA BEYOND MAIN SCREENS.

  • SEAMLESS COMPATIBILITY: IDEAL FOR TESLA & LAUNCH X431 TABLET USERS.

  • TOP-NOTCH SUPPORT: ENJOY 24/7 SERVICE FOR ALL YOUR AUTO REPAIR NEEDS.

BUY & SAVE
$39.90
KTTOOL 6 Pcs Diagnostic Cables Set for Tesla Model S 3 X Y, USB OBD2 Diagnostic Tools Adapter, with OBDII Adapter Harness 1013230-00-A, 1137658-00-C, 1930388-00-A
5 OHP FORScan ELM327-based OBD2 to USB Diagnostic Scan Tool with MS-Can/HS-Can Switch for Ford Lincoln Mazda Mercury Vehicles

OHP FORScan ELM327-based OBD2 to USB Diagnostic Scan Tool with MS-Can/HS-Can Switch for Ford Lincoln Mazda Mercury Vehicles

  • DIY DIAGNOSTICS: SAVE ON REPAIRS BY READING AND CLEARING DTCS EASILY.

  • HIGH-SPEED CONNECTION: ELM327 COMPATIBLE WITH UP TO 500 KBIT/S SPEED.

  • FORD & MORE: SUPPORTS A WIDE RANGE OF FORD, MAZDA, LINCOLN MODELS.

BUY & SAVE
$33.99
OHP FORScan ELM327-based OBD2 to USB Diagnostic Scan Tool with MS-Can/HS-Can Switch for Ford Lincoln Mazda Mercury Vehicles
6 Diesel Universal Heavy Duty Truck Excavator Diagnostic Scanner Tool for Nexiq USB Link 2 Heavy Duty Truck Scanner 124032Diagnosis USB Link 2 Interface Adapter

Diesel Universal Heavy Duty Truck Excavator Diagnostic Scanner Tool for Nexiq USB Link 2 Heavy Duty Truck Scanner 124032Diagnosis USB Link 2 Interface Adapter

  • UNIVERSAL COMPATIBILITY: WORKS WITH DIVERSE DIAGNOSTIC APPLICATIONS EASILY.

  • EASY INSTALLATION: USER-FRIENDLY GUIDE ENSURES QUICK SETUP AND SUPPORT.

  • COMPREHENSIVE ACCESSORIES: INCLUDES MULTIPLE ADAPTERS FOR VERSATILE USE.

BUY & SAVE
$279.99
Diesel Universal Heavy Duty Truck Excavator Diagnostic Scanner Tool for Nexiq USB Link 2 Heavy Duty Truck Scanner 124032Diagnosis USB Link 2 Interface Adapter
7 Capital auto Diagnostic USB Cable Scanner Tool Kit for Suzuki Outboard Marine Boat SDS 8.50

Capital auto Diagnostic USB Cable Scanner Tool Kit for Suzuki Outboard Marine Boat SDS 8.50

  • COMPLETE SUZUKI TOOLKIT WITH MANUALS, DRIVERS, AND SOFTWARE INCLUDED.
  • USER-FRIENDLY WITH STEP-BY-STEP GUIDE AND FULL TECHNICAL SUPPORT OFFERED.
  • COMPATIBLE WITH ALL WINDOWS OS AND OUTBOARD SUZUKI ENGINES (1999-2021).
BUY & SAVE
$59.99
Capital auto Diagnostic USB Cable Scanner Tool Kit for Suzuki Outboard Marine Boat SDS 8.50
8 ELM327 USB Adapter OBD2 Scanner for Windows, ELMconfig FoCCCus Diagnostic Scan Tool with MS-Can/HS-Can Switch for Ford Lincoln Mazda Mercury Series Vehicles

ELM327 USB Adapter OBD2 Scanner for Windows, ELMconfig FoCCCus Diagnostic Scan Tool with MS-Can/HS-Can Switch for Ford Lincoln Mazda Mercury Series Vehicles

  • RAPIDLY TROUBLESHOOT VEHICLE ISSUES WITH MS CAN AND HS CAN SWITCHES.
  • RELIABLE USB CONNECTION ENSURES SUPERIOR DTC PROGRAMMING STABILITY.
  • UNLOCK ADVANCED FEATURES LIKE BAMBI MODE AND TIRE SIZE CALIBRATION.
BUY & SAVE
$21.95
ELM327 USB Adapter OBD2 Scanner for Windows, ELMconfig FoCCCus Diagnostic Scan Tool with MS-Can/HS-Can Switch for Ford Lincoln Mazda Mercury Series Vehicles
+
ONE MORE?

To get the USB device name through the Windows command prompt or PowerShell, you can use the "wmic diskdrive get name" command. This command will list all the disk drives connected to your computer, including the USB devices. You can also use the "manage-bde -status" command to view detailed information about the BitLocker encryption status of the USB devices. Additionally, you can use the "Get-PnpDevice" command in PowerShell to get information about all the Plug and Play devices connected to your computer, including the USB devices. These commands can help you easily identify the USB device names through the command prompt or PowerShell in Windows.

How to troubleshoot USB device connection issues in Windows with PowerShell?

Here are some steps you can take to troubleshoot USB device connection issues in Windows using PowerShell:

  1. Check USB device status: Run the following PowerShell command to check the status of all connected USB devices:

Get-PnpDevice | Where-Object {$_.Class -eq "USB"}

This command will display a list of all USB devices connected to your system along with their status.

  1. Restart USB drivers: You can restart the USB drivers using PowerShell by running the following command:

Restart-Service -Name "USBXHCI"

This will restart the USB driver service and may fix any issues related to the USB connection.

  1. Update USB drivers: To update the USB drivers using PowerShell, run the following command:

Update-HostControllerDriver -Confirm:$false

This command will update the USB drivers on your system to the latest version and may resolve any compatibility issues.

  1. Check USB power management settings: You can check and adjust the USB power management settings using PowerShell with the following command:

powercfg /devicequery wake_armed

This command will display a list of devices that are allowed to wake the system from sleep. You can check if the USB device is listed and adjust the power management settings accordingly.

  1. Reset USB controllers: If none of the above steps work, you can reset the USB controllers using PowerShell with the following command:

Get-WmiObject -Query “select * from Win32_USBControllerDevice” | ForEach-Object { $_.Dependent }

This command will reset the USB controllers and may help fix any connection issues.

By following these steps and using PowerShell to troubleshoot USB device connection issues, you should be able to identify and resolve any problems with your USB devices in Windows.

How to identify USB devices in Windows using Command Prompt or PowerShell?

To identify USB devices in Windows using Command Prompt or PowerShell, you can use the following steps:

  1. Open Command Prompt or PowerShell by searching for it in the Start menu or by pressing Win + X and selecting it from the Power User menu.
  2. In the Command Prompt or PowerShell window, type the following command and press Enter:

wmic path Win32_PnPEntity get Caption, DeviceID, Description

This command will list all connected devices, including USB devices, along with their captions, device IDs, and descriptions.

  1. Look for entries with "USB" or "Universal Serial Bus" in the Caption or Description column to identify USB devices.

Alternatively, you can use the following PowerShell command to list USB devices:

Get-WmiObject Win32_USBControllerDevice | ForEach-Object { $_.Dependent } | ForEach-Object { [WMI]$_.DeviceID }

This command will list USB devices with their device IDs.

What is the command to get USB device names in Windows using PowerShell?

Get-WmiObject Win32_USBControllerDevice | ForEach-Object { [Wmi]$.Dependent } | ForEach-Object { $.DeviceID }

How to display USB device properties in Windows through PowerShell?

You can display USB device properties in Windows through PowerShell by following these steps:

  1. Open PowerShell by searching for it in the Start menu or by pressing the Windows key + R, typing "powershell", and pressing Enter.
  2. Run the following command to get a list of all USB devices connected to your computer:

Get-PnpDevice | Where-Object {$_.Class -eq "USB"} | Select-Object Name, FriendlyName, HardwareID

  1. This command will display the name, friendly name, and hardware ID of all USB devices connected to your computer. You can add or remove properties by modifying the Select-Object part of the command.
  2. You can also filter the list to display specific USB devices by modifying the Where-Object part of the command. For example, you can filter by the manufacturer of the USB device using the following command:

Get-PnpDevice | Where-Object {$_.Class -eq "USB" -and $_.Manufacturer -eq "ManufacturerName"} | Select-Object Name, FriendlyName, HardwareID

  1. Once you have the information you need, you can use it to troubleshoot issues with your USB devices or manage them more effectively.

How to find the USB device name in Windows using PowerShell?

To find the USB device name in Windows using PowerShell, you can use the following steps:

  1. Open PowerShell by searching for it in the Start menu or by pressing Win + X and selecting PowerShell from the list.
  2. Type the following command and press Enter to list all connected USB devices:

Get-WMIObject Win32_USBControllerDevice | ForEach-Object { $usb = [Wmi] $_.Dependent $usb.DeviceID }

  1. Look for the DeviceID of the USB device you are interested in. This will typically contain the name or model of the USB device.

Alternatively, you can also use the following command to get more information about all connected USB devices:

Get-WmiObject Win32_PnPEntity | Where-Object {$_.ConfigManagerErrorCode -eq 0} | Select-Object Name, DeviceID, Description

This will list the Name, DeviceID, and Description of all connected USB devices in Windows.

How to retrieve USB device names in Windows with the command line?

To retrieve USB device names in Windows using the command line, you can use the following steps:

  1. Open Command Prompt: Press Win + R on your keyboard to open the Run dialog, type "cmd", and press Enter.
  2. Run the following command to list all the USB devices connected to your computer:

wmic path Win32_PnPEntity where "PNPClass='USB' OR PNPClass='USBHub'" get caption /format:List

  1. Press Enter to execute the command. This will display a list of all the USB devices connected to your computer along with their names.
  2. You can also run the following command to get a more detailed list of USB devices:

wmic path Win32_USBControllerDevice get Dependent /format:List

  1. Press Enter to execute the command. This will provide a detailed list of USB devices including their names.

By following these steps, you can retrieve USB device names in Windows using the command line.