Well the main issue I am thinking about is: If there is a way to check the server for all printers and create a loop to map all of the printers to the local machine.
Main Topics
Browse All TopicsGreetings Experts,
I am doing a domain migration(Move a bunch of computers from one domain to another) this weekend and I would like to know if there is any way to create a script that will:
1. Find out what the default print is
2. Remove all of the printer mappings from the computer
3. Remap all of the printers on a server to the local machine
4. Set the default printer to the correct one.
example) DomainA has a server named Server01 with 3 printers installed, computer has all of the printers mapped to it and one of the printers is the default one (ie. \\server01\printer2) is default. DomainB has a server named Server1 and three printers named the same way. I would like the script to hold the name printer2 as the default printer and then add all of the printers installed on Server1 to the machine and then mark \\server1\printer2 as the default printer. I know it has to do with some parsing of names but if I can get this step done I will save HOURS of leg work as there are alot of machines in the facility.
Thanks in advance,
Jason
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.
ok I found this on EE :
http://www.experts-exchang
Post back and let me know if this helps with regards to that as there was some vbscript coding in there that was meant to loop through the printers on the server from what I could tell.
The accepted answer on that page mentions a very good site and I looked on the first few vbscript pages of that site and came across these 2 vbscript versions of that kixtart example here :
http://www.adminscriptedit
and here :
http://www.adminscriptedit
The 2nd one seems to do with printer servers though and not specifically what you were asking.
I will try and put a script together because I am finding bits and pieces of scripts that are useful so I will post back later on, maybe another expert will beat me to it though.
Just make sure you read all of the documentation etc because if you read the paragraph or so that was written before the script you will see this :
" If you use this, make sure you read the documentation carefully or you will take your existing printserver offline and restore it back. Make sure you choose to "Restore Local" while on the new printserver."
Just so that you are aware before you try it out.
Business Accounts
Answer for Membership
by: gecko_au2003Posted on 2005-11-30 at 11:18:31ID: 15390763
Here is a useful site :
ance.co.uk /Logon/log on_scripts .htm
http://www.computerperform
Although it does not have a full script that you want you can basically take the parts of the different scripts and put one together that stores the name of the default printer into a variable and then uses that variable later on to assign that printer to the other server and so on and so fourth.
It is in the connecting printers section and if you want help to use those and put one together then post back and let me know.