net use printer command builder
Send LPT1 to a shared printer with net use
Write the net use line that sends LPT1, LPT2 or LPT3 to a print server's shared printer or a USB printer, so an old program that only prints to a port works again. Get the check and the undo, and paste what net use prints to read each port and error. It runs in your browser: nothing you type is sent to us.
Paste this in Command Prompt
net use LPT1: "\\print01\Office Mono" /persistent:yesThen check it
net useLPT1 should show OK next to \\print01\Office Mono.
echo test> LPT1Sends one line of text to the port. Some printers hold it until a full page arrives, or print it only after a form feed.
To undo it
net use LPT1: /deleteEnds the redirect and stops LPT1 coming back at sign-in.
/persistent:yes brings LPT1 back each time this person signs in. It is per user: someone else signing in to this computer does not get it.
Run it in a normal Command Prompt, not one opened as administrator: Windows keeps the two sets of connections apart.
This only moves the LPT port. The printer does not appear in Printers and scanners; to add it there, connect the shared printer itself.
Read what net use printed
Paste the list from net use, or an error such as System error 67. The example has one port working and one left over from an old server.
2 printer ports sent to a shared printer; 1 connection is not working: LPT2.
LPT1OKLPT1 goes to \\print01\Office Mono. Connected and working.LPT2UnavailableLPT2 goes to \\oldprint\Lab. Remembered from before but not connected now: the server did not answer at sign-in, or the user needs to sign in to it.
When LPT1 will not print
net use connects a port to a printer shared from a print server. The job still goes through that printer's print queue and the print spooler, so a stuck job there stops the port too.
The old program prints to LPT1 and nothing comes out
Windows has no LPT1 on a modern computer, so the job goes nowhere. net use sends the port to a shared printer; the program does not need to change.
System error 85 when mapping LPT1
LPT1 is already sent somewhere, or the computer has a real parallel port. Delete the old redirect with net use LPT1: /delete, or pick LPT2.
It worked, then it was gone after a restart
It was made without /persistent:yes, or in a window opened as administrator. Make it again in a normal Command Prompt with /persistent:yes.
The printer still is not in Printers and scanners
That is expected: net use only moves the port. To add the printer itself for everyone, use PrintUIEntry /ga or Add-Printer -ConnectionName.
Take it further
- PrintUIEntry command builderAdd the shared printer itself for every user with /ga, so it shows in Printers and scanners.
- PowerShell add printer builderAdd a printer by IP address with its port and driver, no print server needed.
- Print queue clear commandPort mapped but nothing prints? Clear a stuck job and restart the spooler.
- Point and Print registry builderAsked for an administrator when you connect? See who may install the driver.
No ports to map on every computer.
net use sends one computer's LPT port to a shared printer, for one person at a time. In KyberCopy staff send the file from any device, and the relay in the copy room sends it to the printer over IPP.
Book a demo