Solved

Login Script to Add network Printer,

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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

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…
Facebook has became the #1 social media platform. People share many funny videos there, yet you don't know how to download them? Now you can download Videos from Facebook in just 3 simple steps.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

733 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