prndrvr | new in WS2003 |
Manages printer drivers.
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]
Lists all printer drivers on the print server.
Deletes all unused printer drivers from the print server.
Name of print server.
Deletes a printer driver.
Name of printer driver.
Version of driver to install, where:
Windows 95/98/Me
Windows NT 3.51
Windows NT 4.0
W2K/XP/2003
If omitted, the version for the OS on the printer server is used.
The environment for the driver, which can be:
If omitted, the environment of the print server is used.
Adds ( installs ) a printer driver.
Path to printer driver.
Printer driver file (if omitted, ntprint.inf is used).
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
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.
Printing , prncnfg , prnjobs , prnmngr , prnqctl