Get default printer name from command line?

前端 未结 7 1337
盖世英雄少女心
盖世英雄少女心 2020-12-31 08:02

Microsoft Windows XP comes with a VBS script to manage local and network printers from the command line:

To Get the default printer details from command line:

<
7条回答
  •  梦谈多话
    2020-12-31 08:29

    On Windows 10, the scripts are found in the same place as Windows 7. Execute the following command to display the default printer.

    cscript C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs -g
    

    Note if there is no default printer, the script will return nothing

提交回复
热议问题