none
Can anyone Help to get USB , Keyboard ,connected RS232 Com1 IER printer RRS feed

  • Question

  • Can anyone Help VB Script

    1. Need Device ID of USB , Keyboard ,/any USB Device Connected

    2. Need Device ID of connected  RS232 Com1 IER printer.

    Thanks and Regards

    Vishwanath



    • Edited by Vishwanath H R Tuesday, January 23, 2018 1:58 PM
    • Moved by Bill_Stewart Monday, March 12, 2018 8:37 PM This is not "scripts on demand"
    Tuesday, January 23, 2018 12:17 PM

All replies

  • Hey,

    I would use PowerShell and something like that as a starting point:

    Get-WmiObject -Class Win32_USBControllerDevice

    Tuesday, January 23, 2018 2:14 PM
  • Get-WmiObject Win32_PnPEntity | Select Name, DeviceID

    Get-WmiObject Win32_SerialPort | Select Name, DeviceID


    \_(ツ)_/


    • Edited by jrv Tuesday, January 23, 2018 2:25 PM
    Tuesday, January 23, 2018 2:25 PM
  • Hi Jrv  

    Thank you for sharing ,, Tried 

    Get-WmiObject Win32_SerialPort | Select Name, DeviceID ,  not displaying Device ID.

    Tuesday, January 23, 2018 4:09 PM
  • Works fine for me:

    PS > gwmi win32_serialport | fl name, DeviceID
    
    
    name     : Standard Serial over Bluetooth link (COM3)
    DeviceID : COM3



    \_(ツ)_/


    • Edited by jrv Tuesday, January 23, 2018 4:13 PM
    Tuesday, January 23, 2018 4:11 PM