Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

batch file to connect a network printer

Status
Not open for further replies.

valicon

MIS
Sep 26, 2000
125
US
Hi all,

I am trying to write a batch file that will connect to a network printer. The problem is that the user account that we are using is a local account, not a domain account. Therefore when the batch file runs, XP will display the dialog box for the user to enter their domain username and password to connect to the resource, this is fine. We have it set up this way because we are using a special scientific app. I have come up with this:

RUNDLL32 PRINTUI.DLL,PrintUIEntry /in /n\\printserver\printer

But this command does not seem to be consistent. Anyone know of a better way? Thanks.



 
I believe you are missing the subtlety of the "/ga" switch in your command line:
General discussion:
Tek-Tips Discussion. an excellent discussion with real-world examples, including possible workarounds if default printer assignments to not persist: thread779-581142 the alternative, you can script this using WHS: thread779-581142
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top