?
Solved

Login Script to Add network Printer,

Posted on 2003-10-28
2
Medium Priority
?
4,165 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
Cerixus earned 300 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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

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…
This month, Experts Exchange’s free Course of the Month is focused on CompTIA IT Fundamentals.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses
Course of the Month8 days, 11 hours left to enroll

764 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