Cannot migrate users print queues to new print server

I am needing to move the print queues on users computers to a new print server that I have set up by I am not able to do so. I have over 200 users at the office. I am thinking it is a problem getting to run it on the clients, but not sure where it is failing...
To start... I have moved the print queues from Server 2003 to Server 2008 R2. The machines are both 64 bit. I was able to export the drivers and the print queues to the new server using the print migrate tool. The names of the printers are the same on both...
The names of the print servers are different. I added a print queue to a test client and was able to print to it without a problem mapped to the new server, so that's not the problem.
What I can't do is use the script (see below) to remap the clients to the new server. I have tried and configured the script as a user log on script, configured a group policy and placed my test user in the OU. Rebooted the machine, logged
on with the test account but the print queues stay the same. I have even tried to run the script locally but still no joy... it runs but the queues stay the same. I used RSOP and see that the script is being applied... I am running Windows 7 Professional.
I really need to get this resolved as the server is being decommissioned within the month.
Option Explicit
Dim from_sv, to_sv, PrinterPath, PrinterName, DefaultPrinterName, DefaultPrinter
Dim DefaultPrinterServer, SetDefault, key
Dim spoint, Loop_Counter, scomma
Dim WshNet, WshShell
Dim WS_Printers
DefaultPrinterName = ""
spoint = 0
scomma = 0
SetDefault = 0
set WshShell = CreateObject("WScript.shell")
from_sv = "\\srvprint_1" 'This should be the name of the old server.
to_sv = "\\srvprint_2" 'This should be the name of your new server.
'Just incase their are no printers and therefor no defauld printer set
' this will prevent the script form erroring out.
On Error Resume Next
key = "HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows\Device"
DefaultPrinter = LCase(WshShell.RegRead (key))
If Err.Number <> 0 Then
    DefaultPrinterName = ""
else
'If the registry read was successful then parse out the printer name so we can 
' compare it with each printer later and reset the correct default printer
' if one of them matches this one read from the registry.
spoint = instr(3,DefaultPrinter,"\")+1 
DefaultPrinterServer = left(DefaultPrinter,spoint-2)
    if lcase(DefaultPrinterServer) = from_sv then
        DefaultPrinterName = mid(DefaultPrinter,spoint,len(DefaultPrinter)-spoint+1)
        scomma = instr(DefaultPrinterName,",")
        DefaultPrinterName = left(DefaultPrinterName,scomma -1)
    end if
end if
Set WshNet = CreateObject("WScript.Network")
Set WS_Printers = WshNet.EnumPrinterConnections
'You have to step by 2 because only the even numbers will be the print queue's
' server and share name. The odd numbers are the printer names.
For Loop_Counter = 0 To WS_Printers.Count - 1 Step 2
    'Remember the + 1 is to get the full path ie..
\\your_server\your_printer.
    PrinterPath = lcase(WS_Printers(Loop_Counter + 1))
    'We only want to work with the network printers that are mapped to the original
    ' server, so we check for "\\Your_server".
    if lcase(LEFT(PrinterPath,len(from_sv))) = from_sv then
        'Now we need to parse the PrinterPath to get rhe Printer Name.
        spoint = instr(3,PrinterPath,"\")+1
        PrinterName = mid(PrinterPath,spoint,len(PrinterPath)-spoint+1)
        'Now remove the old printer connection.
        WshNet.RemovePrinterConnection from_sv+"\"+PrinterName
        'and then create the new connection.
        'Do not create c6100
        if lcase(PrinterName) <> "c6100" then
            WshNet.AddWindowsPrinterConnection to_sv+"\"+PrinterName
            'If this printer matches the default printer that we got from the registry then
            ' set it to be the default printer.
            if DefaultPrinterName = PrinterName then
                WshNet.SetDefaultPrinter to_sv+"\"+PrinterName
            end if
        end if
    end if
Next
Set WS_Printers = Nothing
Set WshNet = Nothing
Set WshShell = Nothing

Hi,
àI added a print
queue to a test client and was able to print to it without a problem mapped to the new server, so that's not the problem.
àWhat I can't
do is use the script (see below) to remap the clients to the new server.
Based on your description, I understand that you have moved print queues to new print server via print migrate
tool successfully. However, when use this script (Remap Printer Connections) to re-map Printer Connections, the script seems to not be ran as expected. Meanwhile,
I noticed that you had ran the script locally. Did you find any error when ran this script?
On current situation, this issue seems to be more related to this Remap Printer Connections script. I suggest
that you would post it in
Official Scripting Guys Forum. I believe we will get a better assistance there.
If anything I misunderstand or any update, please don’t hesitate to let me know.
Best regards,
Justin Gu

Similar Messages

  • Migrate User Profile Disks to new File Server

    I'm looking for some guidance/best practice/advice on moving my user profile disk share. My goal is simple enough, we have a share with UPDs on a stand-alone file server. I'm in the process of configuring a scale-out file server and would like to migrate
    my UPD share to that cluster once it is running smoothly. I'm running a 2012 R2 RDS farm. Is the process as simple as changing the UNC path in Server Manager and migrating the data? If so, should I copy the data then change the UNC path or the other way around?
    On a related note, is there any problems of hosting the UPD share on DFS? I'm not necessarily looking to replicate the share, but it would ease a similar migration in the future if necessary as I could replicate it or use the DFS migration toolkit without
    needing to alter the UNC path in the farm as the client facing path wouldn't change. Just an idea I'm toying with and would love some feedback.

    I would think in a simple/flat scenario, you change the UNC path and the wizard will automatically setup the share on the target folder with the correct root permissions
    then you can do a robocopy.exe /mir to move the individual UPDs over while retaining their unique permissions for each user
    regarding scale out file server, you actually can't use SoFS for just a general file share workload and SoFS + DFS combination also has limited capabilities
    for now, SoFS is only compatible with clustered Hyper-V, IIS, VMM and SQL workloads
    you can use the old fashion clustered file server role with SMB 3.0 for the UPDs however, as 2012 now allows for proper clustered share aliases that allows you to natively use a virtual name under a clustered file share option which works nicely in your
    case
    setting up DFS with the above scenario seems to be supported although I haven't done it before
    http://technet.microsoft.com/en-us/library/hh831349.aspx

  • Firefox won't print with my new HP P1102W printer. The printer will print if I use IE8. Please advise settings tomake firefox print with my new printer

    firefox 3.6.12 won't print with my new HP P1102W laser printer. The printer will print if I use IE8. Please advise settings tomake firefox print with my new printer . I spoke with HP tech support. We reinstalled all drivers. They adamantly say it is a Firefox issue and you should have some modifications for it.
    When I try to print from the internet using Firefox, a dialog box pops up which says "preparing to print." However, it hangs and I have to manually shut it down. Doing this terminates the Firefox session, and it will not restore upon restart. This printer will print files on my hard drive, and if I use IE8, which I do not want.
    Thanks

    It must be a Firefox problem, since it works perfectly in Chrome.

  • Hp 3915. vista 32 "print queue issue" and i have to clear print queue and redo print.

    hp 3915.  vista 32 "print queue issue" and i have to clear print queue and redo print.  I think it may be a driver issue. Is there a driver for 3915 using Vista. Mine says only 2000 and XP. Thanks.

    Hi there ken4863,
    Try downloading and running the print and scan doctor located here:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c03275041&cc=us&dlc=en&lc=en
    It can fix a lot on its own and if not give a better idea of what is going on.
    Best of Luck!
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • Envelope in print queue will not print.

    Envelope on print queue will not print.  other documents print ok.
    I tried "RESTART" of the document to no avail.
    problem started after I ran the utility to clean the rollers because envelope would not feed.  In the past this has worked fine.
    I can print regular documents, just not envelopes.
    Tried, power down/power up.  Tried reboot.
    Windows XP
    2575 photosmart all-in-one

    Problem solved. I deleted the printer and reinstalled a few times and it now works.

  • Migrating email address to a new printer

    HI,
    I had an old HP printer which had a specific email address for ePrint. Now I bought  a new HP printer and will no longer use the old one. I would like to use the old email address on the new printer. Do you know how I can do that?
    Thanks!
    chrisdelz
    This question was solved.
    View Solution.

    Hi chrisdelz,
    I afraid that cannot be done.
    The same HP ePrint address cannot be used on multiple devices, once it was registered for a device it cannot be used for any other device and will not be available for selection.
    You will have to use another address for your new printer.
    Regards,
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • New to Mac - cannot get past step 1 - installing new printer software!

    Hello - just bought my first new iMac and an HP B110 wireless printer. Printer connected and basic printing fine - but the HP software on CD that allows you to add utilities to configure printer for double-sided printing etc does not appear to install. Installing the same CD on a windows machine makes all the HP utilities available - but they just don't install or even get prompted for installation when put into the Mac? I am therefore unable to use the full capabilities of the printer. Can anyone help here please. PS - it's supposed to be easier than this - isn't it?

    Once you resolve your printer issues, see:
    Switching from Windows to Mac OS X,
    Basic Tutorials on using a Mac,
    Mac 101: Mac Essentials,
    Mac OS X keyboard shortcuts,
    Anatomy of a Mac,
    MacTips, and
    Switching to the Mac: The Missing Manual, Snow Leopard Edition.
    Additionally, *Texas Mac Man* recommends:
    Quick Assist,
    Welcome to the Switch To A Mac Guides,
    Take Control E-books, and
    A guide for switching to a Mac.

  • How do I transfer the email address from an old printer to a new printer?

    Hi, I have recently bought a new printer and I wish to use my old email address that is linked to my last printer. However, I cannot transfer it. Even if i change the email against the old printer, it wont allow me to add it against the new printer. But, allows me to change and re-use against the old printer.
    Any suggestions as to how i can transfer this?

    How to Transfer Everything from an Old iPad to New iPad
    http://osxdaily.com/2012/03/16/transfer-old-ipad-to-new-ipad/
     Cheers, Tom

  • PDF Virtual Printer Queue has doc print errors but PDF's created

    This has probably been answered already somewhere here, but I can't seem to find a current solution.
    I am using Windows 7 64bit Pro and Acrobat X Pro. When printing to a PDF from any source - word, excel, email, the PDF is created correctly, but my PDF Printer Queue shows a document print error and leaves the doc in the queue.
    This wasn't happening before so I am not sure if it's a known issue that an update has fixed or something else. If there is another thread that has the answer, let me know. Or a link to the fix would be great! Thanks.

    Hi,  try instead:  http://helpx.adobe.com/x-productkb/global/set-default-printer-print-center.html
    It works for current OS versions. If other dialogs appear, continue to add the printer.
    The printer will be called localhost.  Select it to print from eTax and choose the option to " Print to pdf"
    Directions previous were to go to the manufacturers site, not the Apple site for the install, but its ok, link above is a better alternative.
    Apologies….
    Cheers

  • How can I create more than one printer queue for a printer

    I would like to have more than one "default" setting for my printer.  This is so I can use a 3rd party print utility (fingerprint) to print to a non-airprint printer from my ipad.  The utility prints using the default configuration.  I don't need to get fancy here.  Just "draft B&W' , "normal", and "Color best quality".  If I need something else, I can always email the document to my MacBook.  The utility has something about a virtual printer, but all I could find about that is that it is used for PDF printing and maybe a workflow.
    My technology level:  Used to be a programmer,  after a decade of retirement, I can't even program an applescript today.

    Take a look at this add-on.
    https://addons.mozilla.org/en-US/thunderbird/addon/signature-switch/

  • Cannot install the software for my new printer

    I just purchased this printer yesterday and have been working all this time trying to get the software installed.   I've used the CD that comes with the printer.  I've used the online software and used the assistant to download and install.  I've gone through many of the forums here and troubleshooted with all I've seen.   I keep getting the error message cannot install.   I'm getting frustrated at something so simple in the past has become a chore.   I have only used HP products for my scanners/printers and I'm afraid my next step may be to pack this unit up and take it back to the store for a different brand.   Please help.

    Hello , Welcome to the HP Forums, and thanks for posting. I understand you are having an issue installing your new HP LaserJet Pro M177fw MFP on a Windows 7 computer. I'd love to help you with this. I would recommend first clearing the temp files on your computer to make sure there isn't anything there that is preventing the installation. Here are the instructions: Restart your computer.Click on your Start Menu.In the Search bar, type in %temp%, then press enter. Your Temp folder will open.On your keyboard. Select Ctrl + A (this will select all files)Hit the delete button on your keyboard to remove all temp files.Then I would recommend doing a clean boot of your computer. This will turn off any non-microsoft programs that are loading when you start your computer, to avoid any conflicts with the installer. You can follow the steps here to do a cleanboot: How to perform a clean boot in Windows Once the computer has started up again, try downloading and installing from the HP website: HP Color LaserJet Pro MFP M177 Series Full Software and Drivers If you are still unable to install the printer, try running the MS Fix It tool. This is a tool supplied by Microsoft to resolve Operating System issues, and this version is specific to issues when installing or uninstalling: Fix problems that programs cannot be installed or uninstalled Please respond to let me know if this helped to resolve your issue!Good luck.

  • New Apple user and I can not print to my new printer

    I purchased a new HP 309a printer. I am not able to print to it via Airport or USB. I can check the ink levels but not print. I am able to print from my Windows computer.

    Toyya, welcome to Apple Discussions.
    Does your printer appear in the System Preferences>Printer & Fax preference window?
    BTW - Your listed OS is 10.4.1. You should update to the final Tiger version 10.4.11. Here's the link for the 10.4.11 combo update http://support.apple.com/kb/TA24901?viewlocale=en_US
     Cheers, Tom

  • Printing problems with new printer

    I printed out two different InDesign documents last week with my ailing Epson R260 inkjet printer and everything printed fine (with the exception of the printer head problems with the R260).
    I purchased and installed a new Epson Artisan 50 (which is supposedly the successor to the R260) today, and when I print out the same documents the images and text are reduced in size by about 1/3 and part of the page is not printing. I have made no changes to the InDesign files so I don't understand why I am having this problem. Hope someone can help.

    From ID's print dialog, have you entered the Artisan's Advanced Features (the Setup button at the botton of the Print dialog). The doc could be calling up info from the last printers features.
    Also, the drivers on that CD could be old, always check for Driver Updates from the manufactures site when installing anything.

  • Printing on a new printer

    Hello All,
    In one of the handling unit related layouts, user wants to print the output on a different printer ( that is picked up from a table based on sy-uname ) other than the printer that is set in SU3 transaction.
    This has been working earlier for him. Now, when i tried to check the same, this is working for me but not for the user.
    i guess there is some settings with respect to printer or authorisation issues.
    Appreciate ur help on this.
    Regards,
    Poornima

    It depends on the printer. iOS devices can only print directly to AirPrint printers. All AirPrint printers are wireless but not all wireless printers are capable of using AirPrint.
    To print directly from an iPad / iPhone you will need an AirPrint compatible printer or another device to act as a print server. That can be a Mac computer running Printopia ($19.95 with free trial) or handyPrint (donation - supported). The Mac must be "on" but may be asleep for them to work. Equivalent PC options may exist but you're on your own finding them.
    You can also buy this standalone print server:
    http://www.lantronix.com/it-management/xprintserver/xprintserver.html
    These options enable you to use any printer available to your network, even older ones that may predate AirPrint by decades.
    Otherwise you will need to buy an AirPrint printer or multifunction device.

  • All in one 2545 printer wifi password new printer

    how i solve my wifi password problem i purchase it yesterday. pls suggest me how can i handle this problem

    Sometimes Internet service providers have more control over the router than the printer likes.
    - Unplug the Internet line that runs between the router and the wall
    - Turn the power off on the router, wait 30 seconds, then turn the power back on.
    - Go through the normal process of connecting the printer to the router.
    - Now find the IP address of the printer (it should be on the self-test printout), type it into a browser.
    - On that screen you will find a Networking Tab, then on the left Wireless, then the IPv4 Tab.
    - On this screen you want to set a Manual IP. You need to set an IP address outside the range that the router automatically sets (called the DHCP range). If you know what that is, set an IP outside that range but no higher than 254 (the last number in the address). If you do not know, use the current IP address.
    - Use 255.255.255.0 for the subnet (unless you know it is different, if so, use that)
    - Enter your router's IP (on the self-test printout) for the gateway and first DNS.
    - Leave the second one blank.
    - Click 'Apply'.
    - Finally, plug in the Internet line, reboot the router and test.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

Maybe you are looking for

  • Can't boot after system update: unknown filesystem type

    After running a system update, including updating the kernel, I can't boot to the new kernel. On booting, grub loads the kernel image, runs/loads udev, but then fails to mount the root partition with error: mount: unknown filesystem type 'ext4' I hav

  • Unable to view photos on Instagram properly

    When viewing a user's photos on instagram.com/user, I click on one photo and it opens in a new tab (as opposed to popping up in the same tab in middle of the screen). Then, when I 'X' out the new tab and return to the old one with the rest of the pho

  • Ipod touch has stopped working. the screen showes that it need to connect to power.

    ipod touch has stopped working. the screen showes that it need to connect to power.

  • Coding help reqd

    Hi friends, In MIGO, and Qty field ERFMG...i want to put a coding check that it should display a message as "Quantity should be minimum of 10% less and maximum of 20% high only",whenever the user tries to change the value of the field(existing value

  • Charset versus InputStreamReader:  incoherence with Cp037

    Hello I am tring to use the java.nio.Charset class and it seems incoherent with the InputStreamReader support of various encoding scheme, specialy the EBCDIC IBM US one: Cp037... java version "1.4.1_02" Java(TM) 2 Runtime Environment, Standard Editio