Redirect Users to new print server

Posted on 2009-04-30
Last Modified: 2012-06-27
We are Load Balancing 200 printers on Site1 onto 2 servers Server1 & Server2 .

As of now Server1 is having all the 200 printers.

We have a tool called Printer Migrator Utility Tool which will make the Printers to Migrate from one server to another .

We will have them shared on a 50% basis with no issues on 2 servers.

Is there any possible way from the AD end, where we can Re-Direct the Users (who were using the 50% of servers ) to the New Print Server .
Question by:raju1706
    LVL 6

    Expert Comment

    you can use a login script to remove and redirect which printers they use

    replace SERVERNAME AND SHARENAME accordingly
    see below

    'Login Script begin
    Option Explicit
    Dim objNetwork, strUNCPrinter, bForce, bUpdateProfile
    bForce = "True"
    bUpdateProfile = "True"
    Set objNetwork = CreateObject("WScript.Network") 
    ' Section which removes the network printer
    objNetwork.RemovePrinterConnection strUNCPrinter, _
    bForce, bUpdateProfile
    WScript.Echo "Printer Removed: " & strUNCPrinter
    ' Logon Script ends here 

    Open in new window

    LVL 6

    Expert Comment

    Oh this is a .vbs  script.
    LVL 6

    Accepted Solution

    and this .vbs script is to add the other printer
    ' Begin Windows add printer script
    Option Explicit
    Dim objNetwork, strUNCPrinter
    Set objNetwork = CreateObject("WScript.Network") 
    objNetwork.AddWindowsPrinterConnection strUNCPrinter
    WScript.Echo "Printer Has Been Configured : " & strUNCPrinter
    ' End Windows add printer script.

    Open in new window


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
    Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
    Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    737 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

    22 Experts available now in Live!

    Get 1:1 Help Now