The PRINTBRM windows command-line tool is to print queue Backup and Recovery.
CMD Line is a text-based interface that transfers the command from the user to the OS.
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.
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.
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
- -s server_name – The unc path to the print server.
- -b – Backs 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
- 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
- Use this to back up your printer queues
C:\> Printbrm.exe –b –nobin –s \\LaserPrinter –f C:\scripts\backup.printerExport
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.
- PORTQRY Command: Displays the Status of Ports and Services -RTP The PORTQRY windows command-line tool is for displaying the status of ports and services. This command-line tool is to help you to troubleshoot TCP/IP connectivity issues.
- PRINTBRM Command: Print Queue Backup and Recovery The PRINTBRM windows command-line tool is to print queue Backup, Recovery, and Migration.
- REPLACE Command: Replaces One File with Other File The REPLACE Windows command-line utility tool is to replace one file with another file.
- RMDIR Command: Deletes a Directory The RMDIR Windows command-line tool is used to delete a directory. RMDIR command helps you to delete the directory mentioned by the Directory parameter.
- RMTSHARE Command: Shares a Folder or a Printer The RMTSHARE command-line utility tool manages the files, and the printer shares or on a local or a remote server.