This doesnt seem to work. I get an error....
Main Topics
Browse All TopicsI need to migrate all printers from one server to another.
I have run printmig and now all printers are setup on the new server.
I need to create a script to delete the old printers from the users profiles,
then re-map using the new server/path.
So far I have created the script below to map all the printers. But I need to first delete the old printers.
I would like you to edit my script accordingly, using server1 as the old server, and server2 as the new server
(the printer shares are the same):
**************************
Dim multiPrinter, UNCpath1, UNCpath2, UNCpath3, UNCpath4, UNCpath5, UNCpath6, UNCpath7, UNCpath8, UNCpath9, UNCpath10, UNCpath11, UNCpath12, UNCpath13, UNCpath14
UNCpath1 = "Printer1"
UNCpath2 = "Printer2"
UNCpath3 = "Printer3"
UNCpath4 = "Printer4"
UNCpath5 = "Printer5"
UNCpath6 = "Printer6"
UNCpath7 = "Printer7"
UNCpath8 = "Printer8 "
UNCpath9 = "Printer9"
UNCpath10 = "Printer10"
UNCpath11 = "Printer11"
UNCpath12 = "Printer12"
UNCpath13 = "Printer13"
UNCpath14 = "Printer14"
Set multiPrinter = CreateObject("WScript.Netw
multiPrinter.AddWindowsPri
multiPrinter.AddWindowsPri
multiPrinter.AddWindowsPri
multiPrinter.AddWindowsPri
multiPrinter.AddWindowsPri
multiPrinter.AddWindowsPri
multiPrinter.AddWindowsPri
multiPrinter.AddWindowsPri
multiPrinter.AddWindowsPri
multiPrinter.AddWindowsPri
multiPrinter.AddWindowsPri
multiPrinter.AddWindowsPri
multiPrinter.AddWindowsPri
multiPrinter.AddWindowsPri
WScript.Quit
**************************
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: purplepomegranitePosted on 2008-07-29 at 05:31:07ID: 22110746
The below will do this.
Select allOpen in new window