How to get a list of printer ports?

August 2, 2009 at 09:57:55
Specs: Windows XP
hey guys,

i've been trying a very long time to get a list of
all printer ports (say, to a script).

the closest i got is to look in the registry here:
HKLM\Software\Microsoft\Windows NT\Current
Version\Ports

it has a list of the ports.. BUT
it has some new ports.. such that i never seen
before, like Ne00, Ne01, Ne02, etc.
besides, my real port-list has the "DOT4" port
(the HP1200 is configured to it), and it does
not appear in the registry in the Ports
container.

so... does anyone know where or how i can
get the real ports list a printer can be
connected to?


See More: How to get a list of printer ports?

Report •


#1
August 2, 2009 at 10:23:39
Use WMI: (TechNet VBScript example)

Report •

#2
August 3, 2009 at 11:40:29
Hey Razor

this only lists the TCP/IP ports.
i need the real - physical ports.


Report •

Related Solutions


Ask Question