Sign in with
Sign up | Sign in
Your question

rundll32 printui.dll to add printer - but unknown USB port?

Tags:
  • USB
  • DLL
  • Windows XP
  • Printers
  • Rundll32
  • Port
August 15, 2014 1:17:16 PM

I am using rundll32 printui.dll PrintUIEntry to add a new printer to about 300 off-site systems around the country via a batch script. This is a USB printer, so I'm using '.../r "USB001"...' as the switch to add it to that port. Problem is that USB001 may not always be available for each system, so the batch script will fail if that port is not available.

Anyone know of a way to add the printer via USB port without knowing which USB port may be available?

Thank you (and yes, these will be converted to Windows 7 boxes by the end of the year. In the meantime...)

More about : rundll32 printui dll add printer unknown usb port

Related resources
!