Get default printer name from command line?

List of all printers names and shows default one (You can get more details read documentation)

wmic printer get name,default

If you want output to file use:

wmic printer get name,default > D:\catalog\file.txt

Availability

The wmic command is an external command that is available in the below Microsoft operating systems as wmic.exe.

Windows XP professional
Windows 2003
Windows Vista
Windows 7
Windows 8
Windows 10

To list active printer components on Windows 8.1:

c:>cscript C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs -l | findstr "Printer name"

enter image description here


i found mine in the sideXside folder...

C:\windows\winsxs\x86_microsoft-windows-p..inscripts.resources_31bf3856ad364e35_6.1.7600.16385_en-us_0e83b619ada3e7ed\

i ran the following: cscript C:\windows\winsxs\x86_microsoft-windows-p..inscripts.resources_31bf3856ad364e35_6.1.7600.16385_en-us_0e83b619ada3e7ed\prnmngr.vbs -g

it worked.


In Windows 7 these same scripts are found in

C:\Windows\System32\Printing_Admin_Scripts\en-US