Solved

Login Script to Add network Printer,

Posted on 2003-10-28
2
4,144 Views
Last Modified: 2009-07-29
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?

Thanks,

Ben,
0
Comment
Question by:biggy_b
2 Comments
 
LVL 1

Accepted Solution

by:
Cerixus earned 100 total points
ID: 9637483
I actually just did this last night at my brothers company.  We ended up using con2prt.exe as a login script.  con2prt.exe is included in the Zero Administration Kit, you can find it here: http://www.microsoft.com/ntworkstation/downloads/Recommended/Featured/NTZAK.asp

Here's some more info on using con2prt:
http://www.jsiinc.com/SUBA/tip0400/rh0458.htm

There are also a couple other EE posts concerning this.
0
 
LVL 2

Author Comment

by:biggy_b
ID: 9660877
thanks
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Read about the importance of offline branding in the digital age.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question