How To View List Of Printers In Command Line

By Ammarrauf01

How To View List Of Printers In Command Line. In this article, you will read how to get a list of installed printers on Windows 10. Windows 10 has many features. One of the valuable features is the command line interpreters. You can execute almost anything using it. You can view the list of printers in the command line on your PC and export them into a .txt file.

How To View List Of Printers In Command Line?

Command Prompt and Windows Power Shell are the two command-line interpreters in Windows 10. Both can view the list of printers using different command lines.

Method 1 – View List of Printers With Command Prompt:

Use Command Prompt to view the list of printers using the wmic command line. To use the wmic command line in Command Prompt:

1.Press Windows + R keys to launch the Run utility.
2.Type cmd.
3.Press Ctrl + Shift + Enter to open an elevated Command Prompt.
4.Now, type wmic printer list brief command.
5.Press Enter.
6.This will show the list of printers in Command Prompt.

To export the printer list from Command Prompt to a text file:

1.After listing the printers in the command prompt, type the following command and press Enter.
wmic printer list brief > %userprofile%\Desktop\printers_list.txt

2.A new file will be created on your Desktop, when the above command is entered.
3.It will contain the printer list.

How To View List Of Printers In Command Line - pic1

Method 2 – View List of Printers With PowerShell:

To view the list of printers with PowerShell:

1.Right-click on the start button.
2.Select the Windows PowerShell option from the pop-up menu.
3.Type the following command and press Enter:
Get-Printer | Format-Table

4.The printers list will appear on your screen.

To export the printer list into a .txt file:

1.After following the above two steps, type the following command:
Get-Printer | Format-Table | Out-File “$env:userprofile\Desktop\installed_printers.txt”

2.The .txt file will be created on the desktop with a list of all the printers.

How To AView List Of Printers In Command Line - pic2