The prnmngr CMD command is a Windows command line prompt that is used to manage printers and printer ports. It is used to add, delete, list, and configure printer ports, as well as list and set the default printer. The prnmngr command is available in Windows XP, Windows Vista, Windows 7, Windows 8, and Windows 10.

Syntax of the prnmngr CMD Command

The syntax of the prnmngr CMD command is as follows:

  • prnmngr [-a -d -l -r] [-p <printer>] [-s <server>] [-t <port>] [-x]

The options for the prnmngr CMD command are as follows:

-a Adds a printer port.
-d Deletes a printer port.
-l Lists printer ports.
-r Renames a printer port.
-p <printer> Specifies the printer to be added, deleted, or set as the default.
-s <server> Specifies the server on which the printer is located.
-t <port> Specifies the port to be added, deleted, or renamed.
-x Sets the specified printer as the default.

Examples of the prnmngr CMD Command

The following are examples of how to use the prnmngr CMD command:

  • To add a printer port: prnmngr -a -p <printer> -s <server> -t <port>
  • To delete a printer port: prnmngr -d -p <printer> -s <server> -t <port>
  • To list printer ports: prnmngr -l
  • To rename a printer port: prnmngr -r -p <printer> -s <server> -t <port>
  • To set the default printer: prnmngr -x -p <printer> -s <server>

How to Use the prnmngr CMD Command

The prnmngr CMD command is a powerful tool for managing printers and printer ports. To use the prnmngr CMD command, you must open a command prompt window. To do this, press the Windows key + R to open the Run dialog box, type cmd in the box, and press Enter. This will open a command prompt window.

Once the command prompt window is open, you can use the prnmngr CMD command to manage printers and printer ports. To add a printer port, use the prnmngr -a option, followed by the -p <printer>, -s <server>, and -t <port> options. To delete a printer port, use the prnmngr -d option, followed by the -p <printer>, -s <server>, and -t <port> options. To list printer ports, use the prnmngr -l option. To rename a printer port, use the prnmngr -r option, followed by the -p <printer>, -s <server>, and -t <port> options. To set the default printer, use the prnmngr -x option, followed by the -p <printer> and -s <server> options.

Conclusion

The prnmngr CMD command is a powerful tool for managing printers and printer ports in Windows. It can be used to add, delete, list, and configure printer ports, as well as list and set the default printer. To use the prnmngr CMD command, you must open a command prompt window and use the appropriate options for the task you wish to perform.

Leave a Reply