Microsoft KB Archive/299727

= A List of Command-Line Print Tools in Windows Server 2003 =

PSS ID Number: 299727

Article Last Modified on 12/18/2003

-

The information in this article applies to:


 * Microsoft Windows Server 2003, Standard Edition
 * Microsoft Windows Server 2003, Enterprise Edition
 * Microsoft Windows Server 2003, 64-Bit Enterprise Edition
 * Microsoft Windows Advanced Server, Limited Edition
 * Microsoft Windows Small Business Server 2003, Premium Edition
 * Microsoft Windows Small Business Server 2003, Standard Edition

-



This article was previously published under Q299727



SUMMARY
This article describes the command-line print tools that are available in Windows Server 2003.



MORE INFORMATION
Windows Server 2003 has a suite of command-line print tools, which can help you to manage your printers. These tools are located in the %SystemRoot%\System32 folder.

All of the following command-line tools are Microsoft Visual Basic scripts:
 * Prncnfg:

A printer configuration script for Windows Management Instrumentation (WMI) that is used to receive and set a printer configuration. This script is also used to rename a printer.
 * Prndrvr:

A driver script for WMI that is used to add, delete, and list drivers.
 * Prnjobs:

A job control script for WMI that is used to pause, resume, cancel, and list jobs.
 * Prnmngr:

A printer script for WMI that is used to add, delete, and list printers and connections. Also, this script can receive and set the default printer.
 * Prnport:

A port script for WMI that is used to add, delete, and list ports. Also, this script can receive and set the port configuration.
 * Prnqctl:

A printer control script for WMI that is used to pause, resume, and purge a printer. Also, this script can print a test page on a printer.

For further details and examples, refer to Help and Support on the Start menu.

Additional command-line tools are available in the Support Tools folder of the product CD-ROM and from the Resource Kit.

These tools are .vbs files that should be run by using the Cscript program. For example, at a command prompt, type: cscript script_name.vbs [arguments].

Or, the Cscript program can be set as the default program to run all of the .vbs files by using the cscript //h:cscript //s command. Then, the script can be run without entering &quot;cscript&quot; first, for example, at a command prompt, type: script_name.vbs [arguments].

For additional information about setting the default scripting engine and other supported switches, click the article number below to view the article in the Microsoft Knowledge Base:

245254 Setting the Default Scripting Engine

Keywords: kbinfo KB299727

Technology: kbSBServ2003Pre kbSBServ2003Search kbSBServ2003St kbSBServSearch kbWinServ2003Ent kbWinServ2003Ent64bit kbWinServ2003Ent64bitLE kbWinServ2003Ent64bitSearch kbWinServ2003EntSearch kbWinServ2003Search kbWinServ2003St

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© 2004 Microsoft Corporation. All rights reserved.