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

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
1  
@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

3 Answers

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 http://technet.microsoft.com/en-us/library/ee624057(v=ws.10).aspx for more details.

share|improve this answer

Maybe you need to specify your default username and password:

net use [{DeviceName | *}] [\ComputerName\ShareName[\volume]] [{Password | *}]] [/user:[DomainName]UserName]

share|improve this answer

I think net use can only map network path into one drive letter:

net use l: \\zzzz\laser /persistent:yes /user:"username" "password"

but I am not sure that the above code will function, as I have never mapped printers.

share|improve this answer

Your Answer

 
discard

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