prndrvr | new in WS2003 |
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]
-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:
0
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:
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).
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\3\UNIDRV.DLL Data file C:\WINDOWS\system32\spool\DRIVERS\W32X86\3\HPCLJ.GPD Config file C:\WINDOWS\system32\spool\DRIVERS\W32X86\3\UNIDRVUI.DLL Help file C:\WINDOWS\system32\spool\DRIVERS\W32X86\3\UNIDRV.HLP Dependent files C:\WINDOWS\system32\spool\DRIVERS\W32X86\3\PCL5ERES.DLL C:\WINDOWS\system32\spool\DRIVERS\W32X86\3\TTFSUB.GPD C:\WINDOWS\system32\spool\DRIVERS\W32X86\3\UNIRES.DLL C:\WINDOWS\system32\spool\DRIVERS\W32X86\3\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\3\hpbf312G.dll Data file C:\WINDOWS\system32\spool\DRIVERS\W32X86\3\hpbf312I.pmd Config file C:\WINDOWS\system32\spool\DRIVERS\W32X86\3\hpbf312E.dll Help file C:\WINDOWS\system32\spool\DRIVERS\W32X86\3\hpbf312I.hlp Dependent files C:\WINDOWS\system32\spool\DRIVERS\W32X86\3\hpbftm32.dll C:\WINDOWS\system32\spool\DRIVERS\W32X86\3\hpbafd32.dll C:\WINDOWS\system32\spool\DRIVERS\W32X86\3\hpbf312F.dll C:\WINDOWS\system32\spool\DRIVERS\W32X86\3\hpbf312H.dll C:\WINDOWS\system32\spool\DRIVERS\W32X86\3\hpbf312I.dll C:\WINDOWS\system32\spool\DRIVERS\W32X86\3\hpbf312J.dll C:\WINDOWS\system32\spool\DRIVERS\W32X86\3\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