Solved

script network printer

Posted on 2012-04-03
2
380 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
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…

777 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