Windows Server 2003 in a Nutshell
| prndrvr | new in WS2003 |
Manages printer drivers.
Syntax
prndrvr {-l -x} [-s RemoteComputer ] prndrvr -d [-s RemoteComputer ] -m DriverName -v {0 1 2 3} -e Environment prndrvr -a [-s RemoteComputer ] [-m DriverName ] [-v {0 1 2 3}] [-e Environment ] [-h Path ] [-i FileName .inf]
Options
- -l
-
Lists all printer drivers on the print server.
- -x
-
Deletes all unused printer drivers from the print server.
- -s RemoteComputer
-
Name of print server.
- -d
-
Deletes a printer driver.
- -m DriverName
-
Name of printer driver.
- -v {0 1 2 3}
-
Version of driver to install, where:
-
Windows 95/98/Me
- 1
-
Windows NT 3.51
- 2
-
Windows NT 4.0
- 3
-
W2K/XP/2003
If omitted, the version for the OS on the printer server is used.
- -e Environment
-
The environment for the driver, which can be:
- "Windows NT x86"
- "Windows NT Alpha_AXP"
- "Windows IA64"
- "Windows NT R4000"
- "Windows NT PowerPC"
- "Windows 4.0"
If omitted, the environment of the print server is used.
- -a
-
Adds ( installs ) a printer driver.
- -h Path
-
Path to printer driver.
- -i FileName.inf
-
Printer driver file (if omitted, ntprint.inf is used).
Examples
List the printer drivers installed on the local print server:
prndrvr -l Microsoft (R) Windows Script Host Version 5.6 Copyright (C) Microsoft Corporation 1996-2001. All rights reserved. Server name Driver name HP Color LaserJet,3,Windows NT x86 Version 3 Environment Windows NT x86 Monitor name PJL Language Monitor Driver path C:\WINDOWS\system32\spool\DRIVERS\W32X86\UNIDRV.DLL Data file C:\WINDOWS\system32\spool\DRIVERS\W32X86\HPCLJ.GPD Config file C:\WINDOWS\system32\spool\DRIVERS\W32X86\UNIDRVUI.DLL Help file C:\WINDOWS\system32\spool\DRIVERS\W32X86\UNIDRV.HLP Dependent files C:\WINDOWS\system32\spool\DRIVERS\W32X86\PCL5ERES.DLL C:\WINDOWS\system32\spool\DRIVERS\W32X86\TTFSUB.GPD C:\WINDOWS\system32\spool\DRIVERS\W32X86\UNIRES.DLL C:\WINDOWS\system32\spool\DRIVERS\W32X86\STDNAMES.GPD Server name Driver name HP LaserJet 1200 Series PCL 6,3,Windows NT x86 Version 3 Environment Windows NT x86 Monitor name Driver path C:\WINDOWS\system32\spool\DRIVERS\W32X86\hpbf312G.dll Data file C:\WINDOWS\system32\spool\DRIVERS\W32X86\hpbf312I.pmd Config file C:\WINDOWS\system32\spool\DRIVERS\W32X86\hpbf312E.dll Help file C:\WINDOWS\system32\spool\DRIVERS\W32X86\hpbf312I.hlp Dependent files C:\WINDOWS\system32\spool\DRIVERS\W32X86\hpbftm32.dll C:\WINDOWS\system32\spool\DRIVERS\W32X86\hpbafd32.dll C:\WINDOWS\system32\spool\DRIVERS\W32X86\hpbf312F.dll C:\WINDOWS\system32\spool\DRIVERS\W32X86\hpbf312H.dll C:\WINDOWS\system32\spool\DRIVERS\W32X86\hpbf312I.dll C:\WINDOWS\system32\spool\DRIVERS\W32X86\hpbf312J.dll C:\WINDOWS\system32\spool\DRIVERS\W32X86\hpbf312K.dll Number of printer drivers enumerated 2
Notes
-
This command is a .vbs script and requires CScript to run. You can make CScript your default script host by typing the following at the command prompt:
cscript //h:cscript //s
-
This command requires Administrator credentials. If logged on with different credentials, use -u UserName -w Password to specify suitable credentials.
See Also
Printing , prncnfg , prnjobs , prnmngr , prnqctl