?
Solved

Automating network printer deletion and installation

Posted on 2014-09-28
4
Medium Priority
?
123 Views
Last Modified: 2014-10-02
Hello all :)

I am upgrading some wintel servers from 2003 to 2012.

I am at the point now when I need to migrate/set up the print server function.

These servers are running on VMware so I have set up the new file print server running next to the existing 2003 server.

Is there any way to migrate the existing print server setup to the new server?

If not I can manually set up the printers on the new server.

Second question: is there a way to automate the process of deleting the network printers from each users PC (running Win7) and installing the new printer on the new server?

Quite a bit of manual leg work otherwise :(

thanks
Tracy
0
Comment
Question by:tracyprier
[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
  • 3
4 Comments
 
LVL 12

Expert Comment

by:Ganesh Kumar A
ID: 40349218
To manage the migration process, use one of the following:

The Printer Migration Wizard, which you access through Print Management, a snap-in in Microsoft Management Console (MMC).
The Printbrm.exe command-line tool.
Before you can start the migration process, you must ensure the Print and Document Services role is installed on the destination server (PRNT-SRV in our case).

1- Backup the source server (our 2008 R2 server) using the Printer Migration Wizard

From our Windows Server 2012 we will use the Print Management console to perform the Migration.

1- Open Server Manager, click Tools, and then click Print Management.

2- Right Click Print Management, and select Migrate Printer

PS Mig 2

3- Select “Export printer queues and printer drivers to a file”  and click Next

 

image

4- Provide the Server name from which you want to extract to printer queues and drivers. and click next.

 

image

5- Review the list and click Next

 

image

6- Provide a location and a file name to save the extracted data and click Next

 

image

7- When the export is complete click Finish.

image

2- Restore printers to the destination server (PRNT-SRV) using the Printer Migration Wizard

1- Right-click Print Management, and then click Migrate Printers to open the Printer Migration Wizard. Select Import printer queues and printer drivers from a file, and then click Next

After selecting the file we created when we exported the Print Queues and drivers, click Next

image

 

2- Review the printers to be imported and click Next.

image

3- Select “This Print Server (\\PRNT-SRV)” if you are running the Print Management console from the target server, or select the appropriate server in your domain by selecting “A print server on the network”

 image

4- Set the import options and click Next

image

Wen the wizard completes, ensure that you do not have any errors, test the printers,

View event log messages about the migration.
Manually check the destination server for each printer migrated from the source server.
Verify that the printer associated with each printer queue is online
Confirm that a printer queue’s special settings, permissions, or drivers were preserved during the migration
Check the properties for each queue on the destination server and verify that any special settings are still applicable.
If the driver installs any non-standard settings that have been altered as a result of the migration, verify those as well
Make any necessary changes, such as adding a port monitor or a new driver
If you are using Active Directory Domain Services (AD DS) to publish printers, do not publish printers to AD  when you restore printers. This prevents duplicate printers from being displayed by AD DS before the destination server configuration is verified.

On the source server, you must unpublish printers before renaming the source server. To do this, select all printers in the Print Management snap-in, right-click the selected printers, and then click Remove from Directory. This prevents printers from being published twice to AD when the source server is renamed.

After renaming the destination server to the source server’s original name, you can publish all printers on the destination server to AD DS. To do this, select all printers in the Print Management snap-in, right-click the selected printers, and then click List in directory.

Reference : http://technet.microsoft.com/en-us/library/jj134150.aspx
0
 

Author Comment

by:tracyprier
ID: 40349220
I am going from 2003 to 2012 not 2008.

will this still work??
0
 
LVL 12

Expert Comment

by:Ganesh Kumar A
ID: 40349230
This is script which deletes all network printer alone. You need to run this script on the workstations, if you already have any printer setup pushed through GPO remove it first.

You can either push this script as logon script using GPO to make all the network printers to get deleted.


'=================================================================
'In the NAME_OF_THE_SERVER you need to replace with your printserver name.
'=================================================================
Option Explicit

  On Error Resume Next

  Dim objNetwork
  Dim objPrinters, ix
  Set objNetwork = CreateObject("WScript.Network")
  Set objPrinters = objNetwork.EnumPrinterConnections

  ' ### Delete all currently installed network printers
  For ix= 0 to objPrinters.Count - 1 Step 2
   Dim sPrinter, sUNCPath
   sPrinter = objPrinters.Item(ix)
   sUNCPath = objPrinters.Item(ix+1)

   If InStr(1, sPrinter, "NAME_OF_SERVER", 1) > 0 Then
    objNetwork.RemovePrinterConnection sPrinter, True, True
   ElseIf InStr(1, sUNCPath, "NAME_OF_SERVER", 1) > 0 Then
    objNetwork.RemovePrinterConnection sUNCPath, True, True
   End If

   If Err <> 0 Then
    Wscript.Echo "Error deleting printer: " & Err.Description
    Err.Clear
   End If
  Next
0
 
LVL 12

Accepted Solution

by:
Ganesh Kumar A earned 2000 total points
ID: 40349233
I am going from 2003 to 2012 not 2008.

will this still work?? Yes it works on 2012.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Greetings, Experts! First let me state that this website is top notch. I thoroughly enjoy the community that is shared here; those seeking help and those willing to sacrifice their time to help. It is fantastic. I am writing this article at th…
We recently endured a series of broadcast storms that caused our ISP to shut us down for brief periods of time. After going through a multitude of tests, we determined that the issue was related to Intel NIC drivers on some new HP desktop computers …
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

801 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