Solved

script network printer

Posted on 2012-04-03
2
383 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
[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 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 26

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This article shows the method of using the Resultant Set of Policy Tool to locate Group Policy that applies a particular setting.
Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…

691 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