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
Solved

script network printer

Posted on 2012-04-03
2
381 Views
Last Modified: 2016-11-23
i put this in a bat file and it works to install my printer. I have a couple of questions though.

rundll32 printui.dll,PrintUIEntry /in /n "\\WIN-A8RE4F9F5RA\Dell 3130CN - 1"
rundll32 printui.dll,PrintUIEntry /in /n "\\WIN-A8RE4F9F5RA\Dell 3130CN -  2"
rundll32 printui.dll,PrintUIEntry /in /n "\\WIN-A8RE4F9F5RA\Dell 3130CN - 3"

assuming most users already have the printer installed and I setup a new logon script that pushes this out when they logon. Assuming new hires have no problems but what happens to users that already have it installed? will there be some sort of conflict or error?

and how do i make printer #2 the DEFAULT - what's the code to do that?

server is : Windows 2008 R2 - Domain controller
0
Comment
Question by:fstinc
2 Comments
 
LVL 17

Accepted Solution

by:
Anuroopsundd earned 500 total points
ID: 37804777
To make the printer default use the parameter /y
if you want to make sure everything is fine even in old machines. you can use the delete printer first which will delete existing and then create as per your script.

below is good link to see the command line parameters.

http://www.robvanderwoude.com/2kprintcontrol.php
0
 
LVL 25

Expert Comment

by:Tony Johncock
ID: 37804927
Or you could do it via group policy:

http://blogs.technet.com/b/grouppolicy/archive/2009/06/24/gp-preferences-set-a-default-printer.aspx

This puts it in the one location in AD and makes administrative overhead much simpler.
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…

839 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