Solved

script network printer

Posted on 2012-04-03
2
377 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
Comment Utility
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:Tony1044
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article is the result of a quest to better understand Task Scheduler 2.0 and all the newer objects available in vbscript in this version over  the limited options we had scripting in Task Scheduler 1.0.  As I started my journey of knowledge I f…
In this article, we will see the basic design consideration while designing a Multi-tenant web application in a simple manner. Though, many frameworks are available in the market to develop a multi - tenant application, but do they provide data, cod…
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…

728 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

12 Experts available now in Live!

Get 1:1 Help Now