Login Script to Add network Printer,
Posted on 2003-10-28
The Printer is a HP 4100 series and I'm using a HP jetdirect 170x print server. The network is windows 2000 with AD.
I currently have a login script mapping drives at login.
Is there anyway to script it so when the user logins it maps to the network printer? Not to a shared printer off a local computer.
I know this works for adding printer off a local machine
RUNDLL32 PRINTUI.DLL,PrintUIEntry /dn /n\\COMPUTERNAME\PRINTERNAME
RUNDLL32 PRINTUI.DLL,PrintUIEntry /in /n\\COMPUTERNAME\PRINTERNAME
<--- This actually works
net use lpt1: /delete
net use lpt1: \\COMPUTERNAME\PRINTERNAME /y
<-- This didn't do anything
I'd prefer to have peer-to-peer printing, instead of client-server printing. Just in case there are server problems, so printing will still be available.
I know how to manually setup the computer to connect directly to the jetdirect and printer. So it works without any servers.
Add local port PRINTERNAME Protocol rawport Port Number 9100 then add HP LaserJet 4100 PCL 6. Then it’s done.
Can this be scripted? Cause I don’t feel like doing this on 45 machines.
Has anyone run into a similar problem? If so which way did you end up configuring it?