Solved

Login Script to Add network Printer,

Posted on 2003-10-28
2
4,140 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
A procedure for exporting installed hotfix details of remote computers using powershell
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

707 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now