Solved

Login Script to Add network Printer,

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

867 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

21 Experts available now in Live!

Get 1:1 Help Now