Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a network printer that is properly shared under Windows 7 on network with Windows 7 computers, but when configuring it in command prompt with:

net use lpt1: \\zzzz\laser /persistent:yes

then it requires a user name and password. How can I configure the printer so that this is no longer required?

share|improve this question
@Feroz, next time please take some more time to properly phrase your question. Not everyone is willing to decypher your question, so your less likely to receive an answer. Good luck on your next question! – Ivo Flipse Apr 27 '10 at 5:59

To add a network printer through the command line:

rundll32 printui.dll,PrintUIEntry /ga /c\\computername /n\\servername\printersharename

This adds the shared printer on the server for all users of the computer "computername". Note that PrintUIEntry is case-sensitive, which can be a bit of a pitfall.

Refer to for more details.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.