If you need to migrate your print server on a brand new hardware, Microsoft will provide you a free tool to backup and restore all print queues definitions.
This utility is called "Print Migrator" aka "Printmig". It can be freely downloaded.
PrintMig is very usefull and friendly to use. In 2-3 mouse clicks, you will create a *.cab file that contains all drivers, ports and print queues parameters.
And what about all print queues defined by the users?!
How will you be able to update the printers of ALL your users?
PrintQmigrator is the solution!
Some years ago, at the old Windows NT4 time, Microsoft provided ChangePrint.exe in the Windows NT4 resource kit. This tool could be used in the login script and was based on a text file which contained all "Old/New print queues definitions".
However, ChangePrint does not run anymore on Windows XP. And the resource kit provide no solution to this problem. The official answer of Microsoft is: Windows XP support VB scripting, you only need to write some code.
That’s exactly what I done, trying to translatethe ChangePrint in VBScript. I tested my script when I migrated a big print server, and my tool does perfectly the job! I called it PrintQmigrator.
You can call PrintQmigrator from a login script (in \\DC\Netlogon or in a standard GPO). You can also put the text file containing all Old/New print queues definitions in the same location or on a file share. You can also have many text files as you want!
You can call PrintQmigrator from a batch file. Here is an exemple:
REM Migrate your print queues!
IF EXIST %WINDIR%\System32\wscript.exe %WINDIR%\System32\wscript.exe _
%LOGONSERVER%\NETLOGON\PrintQMigrator.vbe %LOGONSERVER%\NETLOGON\ChangePrinter.txt //B //NOLOGO
PrintQmigrator.vbe <TextFileFullPath.txt> --debug:LogFileFullPath.txt
PrintQmigrator.vbe \\FileServer\Share\Printers.txt --debug:\\FileServer\Common\PrintMigrator.txt
Or you can simply double click on the file PrintQmigrator.vbe and it will ask you for a text file where the print queues are defined.
Here is the structure of the text file, where you have to enter the data about your migration:
The PrintQmigrator text file is a basic CSV file, where the separator MUST be a semi-colon (;).
Below, you will find a good sample of a text file, that shows you can migrate the print queue on another server keeping the print queues' names or not. You can also keep the server but just rename the queues:
PrintQmigrator will only read the lines beginning with \\. So you can easily comment the file!
You can use PrintQmigrator if:
- You change the name of your print server;
- You change the name of a print queue;
- You centralize many print server on a big print server (clustered one?);
- You decentralize your main print server on many servers located on branch offices.
PrintQmigrator is flexible, so you can:
- Migrate your print queues by small chunks;
- Place comments in the text file;
- Use a debug parameter to log all operations.
My tool is given to the IT administrator's community. You can freely use it. You can encourage me to produce some other usefull tool by sending me a gift, from my Amazon Wishlist. Thanks a lot!
Leave a comment below, I will try to support you.
Or you can send me a mail at this address: sebastien AT pittet DOT org.
Place this banner on your webpage.