NET USE



 August 05, 2010

NET USE command can map a network printer to an LPT port (for DOS type applications that print to a port.) but this does not add the printer to Control Panel - Printers.

net use LPT1
\\servername\printername /persistence:yes


Note:  net use is necessary if you are using a DOS based program to print from. It allows you to trick the system into thinking you are using an LPT1 (parallel) port. You will need to go into the DOS based program first and setup the printer to use lpt1 and make sure to delete any other item using lpt1. You can use lpt2, just make sure to compensate for that by typing: net use lpt2, etc.