Johnny Shen 的Blog

-Networking MS Products

首页 新随笔 联系 订阅 管理
 

Printdriverinfo Drivers Source

1.1     Overview

Drivers Source (PrintDriverInfo) is a command-line tool that is used to collect information about printer drivers and is primarily used for support purposes.  The information the tool collects includes the format and the mode of the driver.  The tool also has the ability to map a driver file back to the printer that uses it.

Corresponding Operating System Features

The operating system provides no GUI functionality that corresponds to this tool.

Concepts

A software driver is a device-specific control program that enables a computer to work with a particular device, such as a printer or a disk drive.  Because the driver handles device-specific features, the operating system is freed from the burden of having to understand and support the needs of individual hardware devices. 

System Requirements

The following are the system requirements for PrintDriverInfo:

·         Windows 2000, Windows XP Professional, or Windows Server 2003 operating systems

·         Permissions: Administrator rights to the server are required to display printer driver information. 

·         Files Required

·         Printdriverinfo.exe

1.2     PrintDriverInfo Remarks

PrintDriverInfo General Information

PrinterDriverInfo collects information about all drivers installed on a local server, or about a driver on the local system.  It can do the same for a remote server but needs to use the context of that remote server in the determination (for example, the NTPrint.inf version on that server).

PrintDriverInfo returns the format of the driver as one of the following:

·         Inbox (unidrv/PS/plotter)

·         Non-inbox (OEM), UniDrv/PS

·         Non-inbox (OEM) Monolithic

PrintDriverInfo returns the mode of the driver as one of the following:

·         Kernel mode

·         User mode

PrintDriverInfo returns the file versions and Date and Time stamps of all the files comprising the driver.

This table defines driver formats:

Driver format

Definition

Inbox

Drivers whose names match ntprint.inf

UniDrv/PS

Drivers that do not match ntprint.inf but are unidrv/postscript based

Monolithic

All other drivers

1.3                     PrintDriverInfo Syntax

PrintDriverInfo uses the following syntax:

PrintDriverInfo [/s: ServerName] [/p: PrinterName] [/d: DriverName] [/f: FileName]

Parameters

/s: ServerName

Displays printer driver information contained on a specific server. 

Notes

·         You must have administrator rights to the server to display printer driver information. 

·         Do not include the double backslashes (\\) in the name of the server. 

·         PrintDriverInfo uses the admin$ and print$ shares that are on a server by default. 

/p: PrinterName

Displays printer driver information about a specific printer. 

Note

·         If the name of the printer contains spaces, place it in quotes. 

/d: DriverName

Displays information about the specified driver. 

/f: FileName

Displays information about the specified file. 

Note: You can obtain file information only when one or more printers on a server are shared. 

Note: When run without parameters, PrintDriverInfo displays all printer driver information on the local computer. 

1.4         PrintDriverInfo Examples

Example 1: Finding all Printer Driver Information on a Local Computer

To find all printer driver information on a local computer, type the following at the command line:

printdriverinfo

Press <ENTER>.  Output similar to the following is displayed:

Finding all drivers on local machine:

--------------Report by driver name--------------

Driver Name: Xerox Document Centre 460

Environment: Windows NT x86

Kernel Mode Driver: FALSE

Using inf : C:\WINDOWS\inf\ntprint.inf

Inbox Driver: TRUE

Driver Technology: UNIDRV

Driver Stack File: UNIDRV.DLL , Date: 03/10/2002 , Version: 5.00

Driver Stack File: XRDC460.GPD , Date: 28/10/2002 , Version: 5.00

Driver Stack File: UNIDRVUI.DLL , Date: 03/10/2002 , Version: 5.00

Driver Stack File: UNIDRV.HLP , Date: 03/10/2002 , Version: 5.00

Driver Stack File: PCL5ERES.DLL , Date: 28/10/2002 , Version: 5.00

Driver Stack File: XXPCLIN1.INI , Date: 28/10/2002 , Version: 5.00

Driver Stack File: XrxIDS_1.Gpd , Date: 28/10/2002 , Version: 5.00

Driver Stack File: XXPCLRU1.DLL , Date: 28/10/2002 , Version: 1.02

Driver Stack File: XXUI1.DLL , Date: 28/10/2002 , Version: 1.02

Driver Stack File: xpclres1.dll , Date: 28/10/2002 , Version: 5.00

Driver Stack File: XXWH1HLP.HLP , Date: 28/10/2002 , Version: 5.00

Driver Stack File: ttfsub.gpd , Date: 03/10/2002 , Version: 5.00

Driver Stack File: UNIRES.DLL , Date: 03/10/2002 , Version: 5.00

Driver Stack File: STDNAMES.GPD , Date: 03/10/2002 , Version: 5.00

 

-=Misc Driver Info=-

DriverPath: C:\WINDOWS\system32\spool\DRIVERS\W32X86\3\UNIDRV.DLL

Data File: C:\WINDOWS\system32\spool\DRIVERS\W32X86\3\XRDC460.GPD

Config File: C:\WINDOWS\system32\spool\DRIVERS\W32X86\3\UNIDRVUI.DLL

Help file: C:\WINDOWS\system32\spool\DRIVERS\W32X86\3\UNIDRV.HLP

Monitor Name: (null)

Default Data Type: (null)

Manufacturer Name: Xerox

OEM Url: http://go.microsoft.com/fwlink/?LinkID=49&prd=10798&sbp=Printers

Hardware ID: xeroxxerox_document_1eeb

Provider Name: Microsoft

 

--------------Report by driver name--------------

Driver Name: Lexmark Optra S 2455 (MS)

Environment: Windows NT x86

Kernel Mode Driver: FALSE

Using inf : C:\WINDOWS\inf\ntprint.inf

Inbox Driver: TRUE

Driver Technology: UNIDRV

Driver Stack File: UNIDRV.DLL , Date: 03/10/2002 , Version: 5.00

Driver Stack File: LXOS2455.GPD , Date: 03/10/2002 , Version: 5.00

Driver Stack File: UNIDRVUI.DLL , Date: 03/10/2002 , Version: 5.00

Driver Stack File: UNIDRV.HLP , Date: 03/10/2002 , Version: 5.00

Driver Stack File: LMPCLRES.DLL , Date: 03/10/2002 , Version: 5.00

Driver Stack File: TTFSUB.GPD , Date: 03/10/2002 , Version: 5.00

Driver Stack File: UNIRES.DLL , Date: 03/10/2002 , Version: 5.00

Driver Stack File: STDNAMES.GPD , Date: 03/10/2002 , Version: 5.00

 

-=Misc Driver Info=-

DriverPath: C:\WINDOWS\system32\spool\DRIVERS\W32X86\3\UNIDRV.DLL

Data File: C:\WINDOWS\system32\spool\DRIVERS\W32X86\3\LXOS2455.GPD

Config File: C:\WINDOWS\system32\spool\DRIVERS\W32X86\3\UNIDRVUI.DLL

Help file: C:\WINDOWS\system32\spool\DRIVERS\W32X86\3\UNIDRV.HLP

Monitor Name: (null)

Default Data Type: (null)

Manufacturer Name: Lexmark

OEM Url: http://go.microsoft.com/fwlink/?LinkID=40&prd=10798&sbp=Printers

Hardware ID: lexmark_internationa28bb

Provider Name: Microsoft

 

Example 2: Finding Printer Driver Information for a Network Printer

To display printer driver information about a network printer, type the following at the command line:

printdriverinfo /d:"Lexmark Optra S 2455" /s:rktprnsrv

Press <ENTER>.  Output similar to the following is displayed:

--------------Report by driver name--------------

Driver Name: Lexmark Optra S 2455

Environment: Windows NT x86

Kernel Mode Driver: FALSE

Using inf : \\rktprnsrv\admin$\inf\ntprint.inf

Inbox Driver: FALSE

Driver Technology: Monolithic

Driver Stack File: LMPCL2A.DLL , Date: 21/02/2002 , Version: 7.00

Driver Stack File: LMPCL2AC.DLL , Date: 21/02/2002 , Version: 7.00

Driver Stack File: LMPCL2AC.DLL , Date: 21/02/2002 , Version: 7.00

Driver Stack File: LMPCLNA.HLP , Date: 21/02/2002 , Version: 7.00

Driver Stack File: LMPCL2A$.INI , Date: 21/02/2002 , Version: 7.00

Driver Stack File: LEXUNST.ZIP , Date: 03/05/2002 , Version: 7.00

Driver Stack File: PTZIPW32.DLL , Date: 21/02/2002 , Version: 7.00

Driver Stack File: LEXEDF.DLL , Date: 21/02/2002 , Version: 7.00

Driver Stack File: LMNET2PP.DLL , Date: 21/02/2002 , Version: 7.00

Driver Stack File: LEXDRVX.DLL , Date: 21/02/2002 , Version: 7.00

Driver Stack File: LEXCFI.DLL , Date: 21/02/2002 , Version: 7.00

Driver Stack File: LMPCL2A.ALL , Date: 21/02/2002 , Version: 7.00

Driver Stack File: LEXDRVIN.EXE , Date: 21/02/2002 , Version: 7.00

Driver Stack File: DRVNPANT.DLL , Date: 21/02/2002 , Version: 7.00

Driver Stack File: LEXMV95.HLP , Date: 21/02/2002 , Version: 7.00

Driver Stack File: PTRESW32.DLL , Date: 21/02/2002 , Version: 7.00

Driver Stack File: PTGUIW32.DLL , Date: 21/02/2002 , Version: 7.00

Driver Stack File: PTAPIW32.DLL , Date: 21/02/2002 , Version: 7.00

Driver Stack File: LMPCLHOW.HLP , Date: 21/02/2002 , Version: 7.00

Driver Stack File: LMPCLNA.CNT , Date: 21/02/2002 , Version: 7.00

Driver Stack File: LMHB.HLP , Date: 21/02/2002 , Version: 7.00

Driver Stack File: LMHBNDX.DLL , Date: 21/02/2002 , Version: 7.00

Driver Stack File: LMHBNDD1.DLL , Date: 21/02/2002 , Version: 7.00

Driver Stack File: LMPCL2AX.DLL , Date: 21/02/2002 , Version: 7.00

Driver Stack File: LMPCL2DD.DLL , Date: 21/02/2002 , Version: 7.00

Driver Stack File: C910BM.DLL , Date: 21/02/2002 , Version: 7.00

Driver Stack File: C750BM.DLL , Date: 21/02/2002 , Version: 7.00

Driver Stack File: E32XBM.DLL , Date: 21/02/2002 , Version: 7.00

Driver Stack File: T62XBM.DLL , Date: 21/02/2002 , Version: 7.00

Driver Stack File: J110BM.DLL , Date: 21/02/2002 , Version: 7.00

Driver Stack File: C720BM.DLL , Date: 21/02/2002 , Version: 7.00

Driver Stack File: T61XBM.DLL , Date: 21/02/2002 , Version: 7.00

Driver Stack File: C710BM.DLL , Date: 21/02/2002 , Version: 7.00

Driver Stack File: W820BM.DLL , Date: 21/02/2002 , Version: 7.00

Driver Stack File: W810BM.DLL , Date: 21/02/2002 , Version: 7.00

Driver Stack File: M410BM.DLL , Date: 21/02/2002 , Version: 7.00

Driver Stack File: E855BM.DLL , Date: 21/02/2002 , Version: 7.00

Driver Stack File: OC1200BM.DLL , Date: 21/02/2002 , Version: 7.00

Driver Stack File: K1220BM.DLL , Date: 21/02/2002 , Version: 7.00

Driver Stack File: SC1275BM.DLL , Date: 21/02/2002 , Version: 7.00

Driver Stack File: OPTRASBM.DLL , Date: 21/02/2002 , Version: 7.00

Driver Stack File: LMPCLTHK.DLL , Date: 21/02/2002 , Version: 7.00

 

-=Misc Driver Info=-

DriverPath: \\rktprnsrv\print$\W32X86\3\LMPCL2A.DLL

Data File: \\rktprnsrv\print$\W32X86\3\LMPCL2AC.DLL

Config File: \\rktprnsrv\print$\W32X86\3\LMPCL2AC.DLL

Help file: \\rktprnsrv\print$\W32X86\3\LMPCLNA.HLP

Monitor Name: Lexmark Network Port

Default Data Type: RAW

Manufacturer Name: Lexmark PCL Drivers

OEM Url: http://www.lexmark.com

Hardware ID: LPTENUM\Lexmark_Internationa28BB

Provider Name: (null)

 

Example 3: Finding Printer Driver Information for a Local Printer

To display printer driver information about a local printer, type the following at the command line:

printdriverinfo /p:"HP laserJet 5"

Press <ENTER>.  Output similar to the following is displayed:

--------------Report by printer name--------------

Printer Name: HP LaserJet 5

Server Name: (null)

Driver Name: HP LaserJet 5

Environment: Windows NT x86

Kernel Mode Driver: FALSE

Using inf : C:\WIN\inf\ntprint.inf

Inbox Driver: TRUE

Driver Technology: UNIDRV

Driver Stack File: UNIDRV.DLL , Date: 06/03/2002 , Version: 5.00

Driver Stack File: HPLJ5.GPD , Date: 06/03/2002 , Version: 5.00

Driver Stack File: UNIDRVUI.DLL , Date: 06/03/2002 , Version: 5.00

Driver Stack File: UNIDRV.HLP , Date: 06/03/2002 , Version: 5.00

Driver Stack File: PCL5ERES.DLL , Date: 06/03/2002 , Version: 5.00

Driver Stack File: TTFSUB.GPD , Date: 06/03/2002 , Version: 5.00

Driver Stack File: UNIRES.DLL , Date: 06/03/2002 , Version: 5.00

Driver Stack File: STDNAMES.GPD , Date: 06/03/2002 , Version: 5.00

 

-=Misc Printer Info=-

Share Name: HPLaserJ

Port Name: LPT1:

Print Processor Name: WinPrint

Data type Name: RAW

 

-=Misc Driver Info=-

DriverPath: C:\WIN\system32\spool\DRIVERS\W32X86\3\UNIDRV.DLL

Data File: C:\WIN\system32\spool\DRIVERS\W32X86\3\HPLJ5.GPD

Config File: C:\WIN.NET\system32\spool\DRIVERS\W32X86\3\UNIDRVUI.DLL

Help file: C:\WIN\system32\spool\DRIVERS\W32X86\3\UNIDRV.HLP

Monitor Name: PJL Language Monitor

Default Data Type: (null)

Manufacturer Name: HP

OEM Url: http://go.microsoft.com/fwlink/?LinkID=37&prd=10798&sbp=Printers

Hardware ID: hewlett-packardhp_lae238

Provider Name: Microsoft

posted on 2005-10-25 23:20  Johnny shen  阅读(2408)  评论(0)    收藏  举报