DEV Community

Victor James
Victor James

Posted on • Originally published at on

PRINTBRM Command: Print Queue Backup and Recovery



The PRINTBRM windows command-line tool is to print queue Backup and Recovery.

CMD Line

CMD Line is a text-based interface that transfers the command from the user to the OS.

CLI-Command Line Interpreter

The command-line interpreter (CLI) for windows is CMD.EXE. Also, you can use PowerShell, which can automate many system administration tasks, and these tasks are not approachable in command prompt. With the help of the CLI, you can communicate with your system by typing the text in commands. As a result, your system answers to the text that you have entered previously, and then the user can proceed with the next command line that shows up.

To open the Run command Window

Run command window helps you to run programs, open the files and folders. And there are several ways to open up the run command dialog box. This run command box is useful for you to head straight to the destined program easily.

By using the Keyboard shortcut Key:


One of the most commonly used methods is the Shortcut key method. Also, this method is in all versions of Windows. It would help if you pressed the Windows+ Rkey concurrently to open the Run command dialog box.

Run command box
Run command box

What does the PRINTBRM command do?

The PRINTBRM windows command-line tool is to print queue Backup, Recovery, and Migration. This command helps you to easily back up, restore, and migrate print queues, printer settings, printer ports, and language monitors, and so on.


      PRINTBRM -b -s \\server_name -f file_name options

      PRINTBRM -r -s \\server_name -f file_name options

      PRINTBRM -q options

Enter fullscreen mode Exit fullscreen mode

Parameter Explanation

  • -s server_name – The unc path to the print server.
  • -bBacks up the server to the specified file.
  • -r – Restores the configuration in the file to the server.
  • -q – Queries the server or the backup file.
  • -f file_name – Specifies the backup file.
  • -d directory – Unpack the ** backup file to the directory** (with -r), or repack a backup file from the directory (with -b).
  • -o force – Force’s ** overwriting of existing** objects.
  • -p all – Publish all printers in the directory
  • -p org – Publish the printers that it will originally publish.
  • -nobin – Omits binary files from the backup.
  • -lpr2tcp – Converts LPR ports to standard TCP/IP ports on restore.
  • -c file_name – Uses the specified configuration file.
  • -noacl – Removes ACLs from print queues on restore.
  • -?Help

PRINTBRM will be found at ** %Windir%\System32\spool\tools\printbrm.exe** Path.

  • For to get a list of all printer share names for a print server , use

net view \printserv1

Enter fullscreen mode Exit fullscreen mode
  • The old windows 2003 PrintMig utility replaces the Windows 2008 PrintBRM as it is backward compatible with 2003. And the Windows Server 2012 ** PrintBRM supports both **v3 and v4 print drivers and can back up to CAB files more than 2 GB.
  • The PrintBRM can be run over the network to remote servers, yet the Print share should exist on both the source and target server, ** and the ** Remote Registry Service must be working.
  • In case if you move printers to a different domain, you can utilize -NoACL parameter to prevent the restoration of the print queue’s ACLs.
  • The PrintBRM creates a compressed file that is used to restore or import operations while backup and exporting. And this adds XML files for drivers, forms, port monitors, ports, printers, spooler directories. And these detail can be modified with the -d option to repack into a modified export file.


  • To Restore the printers, specifying your configuration file using your configuration file use

C:\> PrintBrm.exe –r –c BrmConfig.xml –f D:\scripts\backup.printerExport –o force

Enter fullscreen mode Exit fullscreen mode
  • Use this to back up your printer queues

C:\> Printbrm.exe –b –nobin –s \\LaserPrinter –f C:\scripts\backup.printerExport

Enter fullscreen mode Exit fullscreen mode


In this guide, we have stated the PRINTBRM windows command-line tool with its syntax and examples. If you have any suggestions or questions regarding this article, let us know in the comment section,

we will update you shortly.

Related Articles

The post PRINTBRM Command: Print Queue Backup and Recovery appeared first on Windows Commands- SS64 Commands.

Discussion (0)