Manage printers via command line:
-
Get the default printer details from command line:
cscript C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs -g
-
Get the list of printers added to the system from Windows command line:
cscript C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs -l
-
Set default printer from windows command line:
cscript C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs -t -p "\Servername\printername"