Scripting an USB virtual printer port....

R

Robin

Dear all,

This is my problem: I'm trying to create a silent installation of a printer
driver: The printer will be attached to the PC using USB. The port used is
USB001 . The problem is that this port doesn't exist on this new PC.
So my question is simple how to script this USB001 creation, to install it
before creating the printer queue?

Many thanks and best regards.
Robin.
 
A

Alan Morris [MSFT]

PnP creates the port when the device is attached. You could write the same
registry keys but there is nothing in the spooler to perform this function.

the portname is under this key

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USBPRINT

--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/search/?adv=1

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top