How to find serial USB port assignments programmatically?

I use a system of 64-bit Windows 7 for hobby hardware / software development.  I am writing a script that controls 3 separate boards via a serial port USB microcontroller.  Unfortunately, I find that the COM port assignments are very dynamic, sometimes change when the boards are power cycled and list again.  I can read the registry in my script and found many entries that contain information (sometimes for the COM port previous assignments that are no longer valid), but I can't tell which are the current assignments.  The information must be available somewhere because Device Manager correctly identifies the current port numbers.  Can someone point me in the right direction?

Thank you
Dave

Hello

The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums.

http://social.msdn.Microsoft.com/forums/en-us/categories

Tags: Windows

Similar Questions

  • Photosmart HP 6510 - can't find the USB port to connect to the computer. It is right in front of my face?

    Photosmart IHP 6510 - can't find the USB port to connect to the computer. It is right in front of my face? I can't find a diagram online. do not have wireless capability. With the help of MacPro with Snowleopard.Thanks.

    Hello

    The usb port is not #22. as seen in the picture. It's in the back of the printer on the side right hiand.

    Best regards

    ERICO

  • How to find serial numbers pour longitudinal programs?

    How to find serial numbers pour longitudinal programs?

    Hi Pascale Adobe,.

    Please consult the following document help on how to find the serial number to purchase

    Adobe product.

    http://helpx.Adobe.com/x-productkb/global/find-serial-number.html

    I hope this helps.

    Please let me know if something goes wrong.

    Kind regards

    Sumit Singh

  • How I fixed my USB ports not working not problem. Two ports left side previously does not... HP Dv7

    So I do not know what is not "where it will honestly, but put there just to try to help someone else who has struggled with this as long as I did it...» I ended up having my two USB ports on the left side (turned out to be my 3.0 ports) working again when they recognize nothing. I could use the USB 2 on right 2.0 ports, but the transfer rate was terrible.

    My answer on another question where someone had a similar problem... good luck!

    'Hi. '

    Not sure if this will help, but I had the same problem, the two ports on the left did not work on my Dv7. All this time I thought that the USB on the right were my 3.0 ports so I thought that would be nice, but it's been over a year that I initially had this problem and made a bunch of maintenance of the system meant that I would look through it again. In any case, I went to the Device Manager through the computer management tool. I know that you can go straight to the Device Manager, but just give you exactly how I did it. You can search just to start computer management.

    So I chose Device Manager in the menu on the left side and it looked like ordinary Device Manager. Went down to Universal Serial bus controllers... at this stage, I watched the action menu on the right and select more actions, opinions and you click Show hidden devices. After that I went through my USB controllers one by one as I had done many times before and checked them, tried the update of drivers, etc... Under the USB controllers Section, I noticed something like xHCI Host controller of compliance Test... I right click it and went into its details, I tried the driver updated and installed the new driver. 2 new USB controllers immediately arises: Renesas Electronics USB 3.0 Host Controller and root hub.

    Switched on a test drive from the right thumb to the left and the computer instantly recognized and installed the driver for the stick.

    And that was all... hope it helps even if this is later. "

    Hi @klark1kent,.

    Thank you for visiting the Forums Support HP's, welcome and thank you for the important information.

    Have a good week.

    Thank you.

  • How to activate the USB Port on Satellite Pro 440 cdt?

    Hello
    I have the old satellite pro 440 cdt and my problem is the USB Port.

    How can I activate the USB Port?

    Thank you

    Hello

    Without any explanation and comments?

  • Pavilion P7 1020 impossible to find two USB ports at the front as described in the master product.

    The specifications for the P7 Pavilion 1020 has 2 ports USP on the front and 4 USB ports in the back.

    I can't find one on the front.

    Great! Thank you very much.  I would have never found.

  • How to disable certain USB ports in a machine of windows 7

    On the 4 USB ports on my PC, I need to block all ports except one. The PC runs on windows 7 Professional - 64-bit. How can I do this by tweak Windows registry.

    You can change the capacity of the ports in your BIOS settings, if you want to enable or disable. If this is the case, you will need to contact the manufacturer of your device to change.

    Kind regards

    Gilles Ova

  • How can I Troubleshoot USB PORT of my laptop (Acer Aspire E1-421)

    Since I installed my Windows 7 Ultimate 36 bit fresh after a big Crash and BSOD and frost took place

    My laptop has often experience problems...

    It has been 2 months since my OS re-installing

    I don't know why this is happening...

    My USB Ports, one is USB 2 (blue) and the other 2 is USB 1 (Silver)

    Cannot read any USB key, connectors or no matter what USB devices connected

    Well maybe im that I'm wrong about the word 'impossible to read.

    because when I PLUG it, it still appears on device and printers,

    and Device Manager...

    Yes, it was red by Ports but is not recognizing that I think...

    One thing I think is one of the problem is...

    As you can see I can not this devices/drivers because when I do it shows...

    Ive also tried to use the Scan for hardware changes, but that's what always happens...

    And it's always...

    I appreciate really all help and step by step answers someone will answer.

    Thank you very much...

    Almost certainly yes a reload will sort it but next time avoid the utility 'finder pilot', they are a pain because too often they go wrong and I speak from personal experience.

    Stick with drivers Acer, there is no chipset graphics drivers followed by Audio 1 and restart, then next LAN. Let the system do its updates and check the Device Manager to each step.

    The SMBus is a little strange because it's undoubtedly part of the chipset, but Acer don't list any as being necessary.

  • How to check the usb ports have enough voltage

    Hello
    I have a dell vostro 3500
    I think my usb ports does not receive enough voltage, because sometimes my usb ports does not work and there is no software problem I checked it
    How could I check that?
    I test my system with hwmonitor, but can not understand anything
    It comes to hwmonitor report on my system
    http://20-up.IR/images/l6ffkm1a9s8xsnbjht.PNG

    Thank you

    Hi Hossein,

    Thank you for your response.

    Check out the following link.

    Code 43: Windows has stopped this device because it has reported problems.

    http://TechNet.Microsoft.com/en-us/library/cc725873 (v = WS.10) .aspx

    I hope this helps.

  • How to get my USB ports working again

    I have a hewlett packard presario CQ61-320SA notebook and my two right usb ports stopped working. I am lost without these elements, what can I do can someone help me please, what about Jill Kellett

    [Moved from comments]

    They are ONLY two USB ports? If this isn't the case, you can well have a hardware failure that would require a repair to a place of authorized service center.

    If they are the ONLY two...

    Go to control panel > view large icon > Device Manager

    Open the Universal Serial Bus Controller section

    Right-click on the first occurrence of a controller, improved and select the UNINSTALL option and follow through with the process...

    Restart the computer and let to re - install the USB controller...

  • HOW TO REPAIR THE USB PORT LEFT OF MY LAPTOP TOSHIBA THAT NO LONGER WORKS

    THE LEFT USB PORT DOESN'T WORK ANYMORE? WHAT TO DO

    Hello

    See this page to select your language:

    http://support.Microsoft.com/common/international.aspx

    ====================================

    Or sorry that it is area English.

    Left click at the bottom of the Microsoft Community page

    English and set your language.

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • How to get 2 usb ports 3 to work on 2215dx hp with windows 7

    I just updated my hard drive on the laptop HP 2215dx with a Samsung ssd. I did a clean install of Windows 7 instead of win 8. The only thing that the doesn't work after installing all the disks that I found is the 2 usb ports 3. They produce an error in Device Manager. What driver to install to get these 2 usb ports work under Windows 7?

    Thanks for the help.

    Hello

    What is a G7-2215dx? Please try:

    http://h10025.www1.HP.com/ewfrf/wc/softwareDownloadIndex?cc=us&LC=en&softwareitem=ob-102571-1

    Kind regards.

  • How to disable the USB port and change DVD drive to read-only?

    I have upgraded my Vista Home Premium from window to window 7 Ultimatum. I tried to disable the USB port and and change the configuration of DVD room to read only via the bios, but I wasn't able to do. The bios always the same, whether it was when I had vista.

    I wonder if the operating system upgrade from Vista home premium to Windows 7 ultimate trigger necessarily upgrading the bios in order to take full advantage of the Windows 7?

    Thank you

    * original title - upgrade from Vista home premium to Windows 7 ultimate necessarily triggers upgrading the bios in order to take full advantage of window 7? *

    rThen your question isn't specific to Windows 7, you must consult the manufacturer. You should be able to disable the USB via the BIOS ports. Also, why do you want to set the optical drive as read only? If it is shared? If so, the advanced sharing disk properties, from there, you can set permissions on the drive. If you releasing It Easy: with Windows | ActiveWin | Laptops | Microsoft MVP

  • How to fix my usb ports? Not correctly recognize the iPod and other devices of storage correctly.

    I had problems with getting my iPod classic 6th generation to be recognized by my computer windows 7.  It works very well but all of a sudden stopped working.  When I connect the iPod, it says on the product than its 'connected' and is in charge, but does not appear on "my computer" or on iTunes.  Now, I supposed that it was a problem with my apple product, but after putting in the store and plug both Mac and PCs, this worked fine, its clear that it is actually a problem with my specific PC.
    All software are up to date and I tried stop and start the unit. (Control Panel > administrative tools > services > device mobile apple).  The PC also recognizes the iPod randomly once in a while and I managed to restore the iPod to factory settings to ensure that there is no problem with the device itself.

    As stated earlier that the iPod is not visible in 'my computer', but when "devices and printers", there are two elements relating to the iPod, appearing almost as if it's two separate devices. the first is "apple ipod usb device" on the devices section and "Apple mobile device USB driver" in the section not specified.  When I click the first device it freezes the computer for awhile.
    I tried to move the ipod to different USB ports that make no difference.  However, when I put in a pen memory USB (TDK 4 GB), it initially also put it in unspecified, but with a yellow warning down logo on the left and when I moved my wireless usb key for my keyboard, it didn't work initially.  These two seem to have resolved themselves in Device Manager...

    In my view, there is a problem with my usb ports grateful drivers. Any idea what I need to do?

    Hello

    Thanks to community Microsoft can help you with your concern for Windows!

    You are facing problems with the USB ports on the computer.

    Method 1:

    Run the troubleshooter of material and check what is happening.

    http://Windows.Microsoft.com/en-us/Windows7/open-the-hardware-and-devices-Troubleshooter

    Method 2:

    As all devices have same also have USB device associated drivers. Appropriate sometimes drivers not detected after initial installation so reinstalling the drivers can fix the problems.

    You can check after uninstalling and reinstalling USB drivers if you are able to connect. You can disconnect all USB devices and then perform the following steps:

    1. click on start and then click Control Panel.

    2. click on system and Maintenance, click System, and then click Device Manager.

    Note: If Control Panel is in Classic view, double-click System and then click on Device Manager.

    If you are prompted for an administrator password or a confirmation, type the password, or click on allow.

    3. in Device Manager, double-click to expand the "USB Bus controllers", right click on the controller host, click "Uninstall" and click "OK".

    Check that if at all, there is an exclamation point on the pilot, it suggests problems with the installed driver.

    4. Repeat step 2 to uninstall all items under 'USB Bus controllers'.

    Then, restart your computer and Windows 7 will automatically reinstall all USB controllers.

    Method 3:

    You can update the driver from chipset from the web site of the manufacturer and then uninstall and reinstall the device driver updated from the web site of the manufacturer.

    Updated a hardware driver that is not working properly

    http://Windows.Microsoft.com/en-us/Windows7/update-a-driver-for-hardware-that-isn ' t-work correctly

    If the problem persists, or you need help on Windows please keep us informed.

    We will be happy to help you!

  • How to find the USB on Windows 8

    I have found how to access my USB on my laptop new windows8

    In general you just plug in, and it will appear and ask "what do you do?

    But if not, open your file Explorer by going to the desktop and clicking on the file browser button in the taskbar.

Maybe you are looking for

  • Cup of text when printing pages

    The print preview page shows it a page will print on two pages. However, when she actually prints, there is text missing between page 1 and page 2. It seems that everything is supposed to print at the bottom 2 inches of the page is simply ignored. Th

  • ITunes Store flickers

    I've just updated Itunes and cannot use the Bank due to flickering video.  Everything else works.  Thanks for the suggestions.

  • I can run the store bought Xbox game

    If I buy a game from the store I can return it

  • Sub_interface not connecting to internet

    I have a subinterface "inside" (see below) and setup the VLAN ID--> connected the VLAN in the SWITCH and routed to the PORT.  The servers recognize the 'new' VLAN / IPs; but have no connectivity to the internet.My assumption is that it is at the door

  • connection to Oracle ebs with 2 different users of the same machine

    Hi allI need your help, I want to know if it is possible to connect with two different users of oracle connection and work with forms and reports from MY MACHINE to oracle ebs SERVER connected to a network. your help will be appreciated, thanks in ad