How to get printer information from a command line


  
 Applies To 
  
 Product(s):MICROSTATION
 Version(s):N\A
 Environment: N\A
 Area: Print/Plot
 Subarea: N\A
 Original Author:Evert de Jong, Bentley Technical Support Group
  

Problem

How to get printer information from a command line.

Solution

The following key-in will create a file called PrinterInfo.

for %a in (PRINTER PRINTERCONFIG ) do wmic/append:C:\Users\PrinterInfo.htm > nul %a get /format:htable

See: WMIC /?

From command line for more options

NB: You must have access to the output directory. Otherwise the error message: Invalid File Name appears