This I understand:

net use P: \\\SOME_SHARE

(the second argument is a logical share on the given computer)

This, I do NOT understand:

net use LPT2: IP_1.2.3.4

(where IP_1.2.3.4 is the name of a "port" assigned to a printer; the IP is a valid and responding device, but the full string "IP_1.2.3.4" is not)

Can anyone tell me, is there ever a syntax of NET USE that could operate on a printer port like that? I can't get it to work, can't find anything via Google, and am practically in tears.

[Sorry if this is cheating, this is basically a re-post of https://stackoverflow.com/questions/1884235/old-school-windows-2000-printing-or-when-is-a-port-name-a-computer but with the scope narrowed just to the main issue at hand.


Okay, basically, the command Net Use LPT1: \servername\sharename [persistent:yes/no] is what you are looking for. What it does it to point any incoming traffic to the LPT port and redirects it to the share. Assuming either that the computer hosting the printer or the printer itself is sharing itself, you need to determine the servername of the host and you are assuming the IP_1.2.3.4 is the sharename. Try and Net View the IP address.

You can demonstrate this by going to one of your printers in your computer and right clicking and sharing it. Choose something like SHARED_PRINTER. Then go Net View, look for your own computer's name. Then do Net View on your IP or computer name and it should show the share. Then you can do the Net Use command on your self.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.