Re: How do I clean out unwanted virtual COM ports?



When windows detects a device on a USB port it runs the found new hardware
wizard and puts information in the registry. If I have a parade of devices
with unique serial numbers the registry grows and grows with clutter. The
problem is even worse when the devices are USB to serial devices that are
assigned the next available COM port as well. I have avoided the problem in
my test by not allowing the device to re-register with windows after
assigning a unique serial number. However if the device is re-tested it will
want to run the found new hardware wizard and add to the registry.

Again my question is how do I clean out the unwanted clutter from the
registry and clear COM ports tagged as in-use? It does not seem wise to just
guess at what registry values apply and start hacking with regedit.

Is there an elegant way to undo what the found new hardware wizard does?
Is there a place to find out what is changed in the registry if I have to do
it the hard way, (especially where COM ports are flagged as in-use)?

"Patrick Keenan" wrote:

"Alphaxi" <Alphaxi@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:6337D9D2-1685-41B2-832E-0582B4E92564@xxxxxxxxxxxxxxxx


"MartyG" wrote:

I have a hardware test project where I connect USB to Serial devices to
my
computer. The devices have unique serial numbers and so each time
different
device is plugged into my USB the New Hardware Wizard launches and
assigns
the next available COM port number to the device. There are two things I
want
to do:

1) I want to free up COMxx port numbers consumed by devices I will not
see
again.

Why would you expect Windows to know what devices you will not see again?

I know the devices are gone for good and I want to pass this gem of
knowledge on to windows to remove clutter and free consumed resources.




2) I want to control the assignment of COM port numbers in some automated
way (via my test software) to assign the port number I want.

That would be a feature of the test software, which is telling Windows what
port to create. Windows is not dictating the port number, except for
blocking in-use ports.

Windows does indeed choose the next available port without asking any
advice. I can reassign the port to a lower number and ignore the warning but
mostly I want to be able to clean the clutter out that has already collected.


Properly designed software should remove the virtual port when it shuts
down. It should not orphan those ports.

You might consider contacting the publisher of the test software for a
solution, since it is the behavior of *that* software that you're asking
about, not Windows. Windows is just doing what it's told to do.

The problem I am having is independent of any software other than windows.
The port itself is not left open. The add hardware wizard leaves stuff in the
registry that I would like to clean out. Are the registry mods known only to
the author of the device driver?


HTH
-pk

I am having the exact same problem, has anyone responded?



.



Relevant Pages

  • RE: Networking and DOS attacks
    ... Windows has found 55 Critical System Errors... ... Install Repair Registry Pro. ... I have tracked all of these UDP port hits since 2001. ...
    (Security-Basics)
  • Re: keeping ports open
    ... If a port is open, it means that 1) a software or service is running on your ... and 2) you're not using a firewall or your firewall isn't ... Use firewall software and hardware and antivirus software that is ... Follow the instructions for hardening Windows and IIS at ...
    (microsoft.public.security)
  • [Full-Disclosure] ron1n phone home, episode 4
    ... Hacking from Windows 3.x, 95 and NT ... Use secret Windows 95 DOS commands to track down and port surf computers ... Download hacker tools such as port scanners and password crackers designed ... Now you have the option of eight TCP/IP utilities to play with: telnet, ...
    (Full-Disclosure)
  • Re: How to Maintain an IIS Server?
    ... > server running on a Windows 2000 server. ... before a firewall and antivirus have been installed]. ... open ports; however, this will not identify which program is using the port. ...
    (microsoft.public.inetserver.iis.security)
  • Re: How do I clean out unwanted virtual COM ports?
    ... If I have a parade of devices with unique serial numbers the registry grows and grows with clutter. ... The problem is even worse when the devices are USB to serial devices that are assigned the next available COM port as well. ... However if the device is re-tested it will want to run the found new hardware wizard and add to the registry. ... I know the devices are gone for good and I want to pass this gem of knowledge on to windows to remove clutter and free consumed resources. ...
    (microsoft.public.windowsxp.general)

Loading