|
Specific Tasks Adding a network printer for all users Install Additional Driver on older OS When installing Additional Drivers doesn't work How to clean up printer drivers Add Printer or New Hardware Found fails Printing to a Print Server Device Frequently Asked Questions
|
|
|
Printer related Scripts in Windows XP and Server 2003 Using the various functions and parameters of the rundll32 printui.dll,PrintUIEntry command, it is possible to add, delete or configure a printer using a command or script either on the local computer or remotely (for example, see Adding a network printer for all Users). However, this command can not create a new printer port or do some other printer management tasks. Windows XP and Windows Server 2003 (and later versions) include a set of scripts for manipulating printers and printer ports. These are located in the %systemroot%\system32 folder (usually c:\windows\system32). §
prncnfg.vbs - configures or displays
configuration information about a printer §
prndrvr.vbs - adds, deletes, and lists printer
drivers §
prnjobs.vbs - pauses, resumes, cancels, and
lists print jobs §
prnmngr.vbs - Adds, deletes, and lists printers
or printer connections, in addition to setting and displaying the default
printer §
prnport.vbs - add, delete or list Standard TCP/IP
ports §
prnqctl.vbs - prints a test page, pauses or
resumes a printer, and clears a printer queue Some of the functions used by these script do not exist in Windows 2000 and earlier Windows versions, so these script will not necessarily work on earlier Windows versions. For example, prnport.vbs can not add printer ports to computers running Windows 2000 or earlier versions. Thanks to Alan Morris of the Microsoft Printing team for pointing me at this information.
Last Updated 8 Nov 2007
|
|