printbrm restore printers command line

Hi

I have used printbrm to backup my printers on 1 machine to a file and then restore sucessfully on another

The 2 lines below were used to accomplish this 1st line backs up and 2nd line restored

Printbrm.exe   /b    /f      C:\users\test\backup.printerExport

Printbrm.exe   /r    /f      C:\users\test\backup.printerExport

Im trying this again and its not working it does put the drivers into the new system but the printers do not appear in the Devces and printers section as they did before.

I definately just used 2 simple lines before and the internet searches on the same speak of more complex ways

I have fulladmin rights on both machines

I have tried the various switches from printbrm.exe /?

Still no successWhat am I overlooking?

Thanks for reading

Confuseis

March 25th, 2015 8:56pm

Hi Confuseis,

The cmd is ok for me:

To backup type

Printbrm.exe B S \\SourceServerName F \\UNCPath\name.printerexport

To restore

Printbrm.exe -R -S \\DestinationServerName F \\UNCPatch\name.printerExport

Please provide both Source and Destination servers system version, and check the Application column in Event Viewer to find if there is any error or failure during the Migration.

In addition, to migrate printer, please also refer to this article:

Migrating Print Queues quickly using PRINTBRM, configuration files, and the Generic/Text Only Driver

If there is anything else regarding this issue, please feel free to post back.

Best Regards,

Anna Wang

Free Windows Admin Tool Kit Click here and download it now
March 26th, 2015 7:57am

Hi Anna

I have tried the method you mentioned but no luck,

I used the -nobin switch as I just want the printers moved over not necessarily the drivers as in then article you refered me to. No luck there either.

The error I get for the print que section of the command line output is below

On this occasion both machines the source that created the backup and the destination to receive the backup are 32Bit


C:\Windows\System32\spool\tools>printbrm -r -f c:\Users\Public\PrintNobinWin8.Pr
interExport
Operation mode: restore
Target server: local machine
Target file path: c:\Users\Public\PrintNobinWin8.PrinterExport.
Queue publish mode: none
Overwrite mode: keep existing settings
Queue ACL mode: restore ACLs from backup
The following error occurred: 0x80070057.
The parameter is incorrect.

Check the eventlog for detailed information about the error which occurred.

C:\Windows\System32\spool\tools>printbrm /r /f c:\Users\Public\PrintNobinWin8.Pr
interExport
Operation mode: restore
Target server: local machine
Target file path: c:\Users\Public\PrintNobinWin8.PrinterExport.
Queue publish mode: none
Overwrite mode: keep existing settings
Queue ACL mode: restore ACLs from backup
The following error occurred: 0x80070057.
The parameter is incorrect.

Check the eventlog for detailed information about the error which occurred.

C:\Windows\System32\spool\tools>

  • Edited by confuseis 15 hours 36 minutes ago
March 28th, 2015 10:59am

Hi Anna

I have tried the method you mentioned but no luck,

I used the -nobin switch as I just want the printers moved over not necessarily the drivers as in then article you refered me to. No luck there either.

The error I get for the print que section of the command line output is below

On this occasion both machines the source that created the backup and the destination to receive the backup are 32Bit


C:\Windows\System32\spool\tools>printbrm -r -f c:\Users\Public\PrintNobinWin8.Pr
interExport
Operation mode: restore
Target server: local machine
Target file path: c:\Users\Public\PrintNobinWin8.PrinterExport.
Queue publish mode: none
Overwrite mode: keep existing settings
Queue ACL mode: restore ACLs from backup
The following error occurred: 0x80070057.
The parameter is incorrect.

Check the eventlog for detailed information about the error which occurred.

C:\Windows\System32\spool\tools>printbrm /r /f c:\Users\Public\PrintNobinWin8.Pr
interExport
Operation mode: restore
Target server: local machine
Target file path: c:\Users\Public\PrintNobinWin8.PrinterExport.
Queue publish mode: none
Overwrite mode: keep existing settings
Queue ACL mode: restore ACLs from backup
The following error occurred: 0x80070057.
The parameter is incorrect.

Check the eventlog for detailed information about the error which occurred.

C:\Windows\System32\spool\tools>

  • Edited by confuseis Saturday, March 28, 2015 3:25 PM
Free Windows Admin Tool Kit Click here and download it now
March 28th, 2015 2:56pm

To rule out any iisues with compatibilty I cloned my windows 7 32bit VM and added a fake printer to it

ran the printbrm backup and restore but even then it would not work!

Fake VM2 Epson AL-2600  Error: 0x80004005
Unspecified error

I also tried the generic text driver 

The drivers install ok but the print que never does despite being from an identical system using a built in windows driver of the same archetecture.


  • Edited by confuseis 10 hours 10 minutes ago
March 28th, 2015 4:06pm

To rule out any iisues with compatibilty I cloned my windows 7 32bit VM and added a fake printer to it

ran the printbrm backup and restore but even then it would not work!

Fake VM2 Epson AL-2600  Error: 0x80004005
Unspecified error

I also tried the generic text driver 

The drivers install ok but the print que never does despite being from an identical system using a built in windows driver of the same archetecture.


  • Edited by confuseis Saturday, March 28, 2015 8:50 PM
Free Windows Admin Tool Kit Click here and download it now
March 28th, 2015 8:02pm

I have followed the article you gave 

http://blogs.technet.com/b/askperf/archive/2012/04/03/migrating-print-queues-quickly-using-printbrm-configuration-files-and-the-generic-text-only-driver.aspx

I have run the setprinter.exe to set the print processor

I have stripped out the xml files and replaced them with the templates given

Ceated the brmConfig file with the brmc.exe tool

I have updated the printbrm.exe file as giev

I get the error below despite my potning to a different address after "-C"

C:\Windows\System32\spool\tools>PrintBrm.exe -r -f c:\users\Public\PrintRelated\RePacked\Vm1RepackNoBin.printerexport -c C:\Users\Public\PrintRelated\New-Brmcon
fig-xml\BrmConfig.xml

Operation mode: restore
Target server: local machine
Target file path: c:\users\Public\PrintRelated\RePacked\Vm1RepackNoBin.printerexport.
Config File: C:\Users\Public\PrintRelated\New-Brmconfig-xml\BrmConfig.xml
Queue publish mode: none
Overwrite mode: keep existing settings
Queue ACL mode: restore ACLs from backup
The following error occurred: 0x80070002.
The system cannot find the file specified.

Check the eventlog for detailed information about the error which occurred.

Error from application event log

Printbrm.exe (the Printer Migration Wizard or the command-line tool) could not load .xml file C:\Users\spock\AppData\Local\Temp\8D2FE4F9-E99F-479D-8B7B-3CB6E562EDA4\BrmDrivers.xml while restoring print queues from a file.  Error: Invalid at the top level of the document.

March 29th, 2015 5:05pm

I have ensured the remote rehistry serivice is running and a printer is shared on botht systems so the print$  is available

I could have migrated hundreds of printers by now manually though Im still looking to get this to work

Free Windows Admin Tool Kit Click here and download it now
March 30th, 2015 8:19pm

What are you attempting to accomplish?

We assume all the printers are using Standard TCP/IP Ports.

Are the machines NOT server class?  

You can use printbrm.exe to restore printers on client machines but it is also a good idea to enable the remote spooler endpoint on the machine.  Adding a shared printer first should open this up but there is a policy for this as well.

Computer /  Admin Templates / Printers / Allow Print Spooler to accept client connections 

April 9th, 2015 2:15pm

Hi

Im just trying to automate PC builds so we dont have to manually record and reinstall printers on the end users machine every time we transfer their data etc. to a new machine.

The machine's are not server classs and are all windows 7 32bit. 

They are all networlk printers with TCP/IP ports

I have enabled the remote spooler service on the machines and also have shared out a printer on both machines but the erros keep appearing as mentioned prior.

Free Windows Admin Tool Kit Click here and download it now
April 10th, 2015 1:58pm

Can you share the printerexport file? I've done the same thing many times without issue.

thanks

April 10th, 2015 11:26pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics