Windows Server 2008 Printers commands

by George Chetcuti [Published on 15 June 2011 / Last Updated on 15 June 2011]

Windows Server 2008 and Windows 7 include tools that help you manage printers from the command prompt using Visual Basic scripts. You can find these scripts in the Windows\System32\Printing_Admin_Scripts\en-US\ folder. Since these tools are Visual Basic scripts you need to run the cscript command and pass the full path to the script file as the first parameter. Additional parameters can be added after the script. For example, to list all options of the PrnCnfg.vbs script at the command prompt type:
Cscript C:\Users\george7>cscript c:\windows\system32\Printing_Admin_Scripts\en-US\prncnfg.vbs -?
The scripts available are:
PrnMngr.vbs – Allows you to add and remove printers.
PrnCnfg.vbs – Allows you to configure printers such as, changing printer names and permissions.
PrnDrvr.vbs – Allows you to add, remove or list printer drivers where you can add a driver to make it available for automatic installation by users.
PrnJobs.vbs – Allows you to manage print jobs where you can cancel documents in the print queue.
PrnPort.vbs – Allows you to manage printer ports such as, creating ports for network printers.
PrnQctl.vbs – Allows you to print a test page, pause and resume a printer.
PubPrn.vbs – Allows you to publish a printer in Active Directory.

Windows Server 2008 and Windows 7 include tools that help you manage printers from the command prompt using Visual Basic scripts. You can find these scripts in the Windows\System32\Printing_Admin_Scripts\en-US\ folder. Since these tools are Visual Basic scripts you need to run the cscript command and pass the full path to the script file as the first parameter. Additional parameters can be added after the script. For example, to list all options of the PrnCnfg.vbs script at the command prompt type:

Cscript C:\Users\george7>cscript c:\windows\system32\Printing_Admin_Scripts\en-US\prncnfg.vbs -?

The scripts available are:

PrnMngr.vbs – Allows you to add and remove printers.

PrnCnfg.vbs – Allows you to configure printers such as, changing printer names and permissions.

PrnDrvr.vbs – Allows you to add, remove or list printer drivers where you can add a driver to make it available for automatic installation by users.

PrnJobs.vbs – Allows you to manage print jobs where you can cancel documents in the print queue.

PrnPort.vbs – Allows you to manage printer ports such as, creating ports for network printers.

PrnQctl.vbs – Allows you to print a test page, pause and resume a printer.

PubPrn.vbs – Allows you to publish a printer in Active Directory.

Add Review or Comment

Featured Links