Prnmngr.vbs Command In Windows Server 2008
This article shows how to use Prnmngr.vbs command in Windows Server 2008 operating system.
Introduction
Prnmnge.vbs command in Windows Server 2008 is used to adds, delete and lists printers or printer connection and it also used to setting and showing the default printer. Syntax used for Prnmngr.vbs command is given below.
Syntax
Cscript Prnmngr {-a | -d | -x | -g | -t | -l | -?} [/c] [-s <ServerName>] [-p <PrinterName>] [-m <PrinterModel>] [-r <PortName>] [-u <UserName>] [-w <Password>]
|
Parameters For Prnmngr.vbs
Parameter |
Description |
-a |
Adds a local printer connection. |
-d |
Deletes a printer connection. |
-x |
Deletes all printers from the server specified with the -s parameter. |
-g |
Shows the default printer. |
-t |
Sets the default printer to the printer specified by the -p parameter. |
-l |
Lists all printers installed on the server specified by the -s parameter. |
-c |
Defines that the parameter applies to printer connections. |
-s <ServerName> |
Defines the name of the remote computer that hosts the printer that you want to manage. |
-p <PrinterName> |
Defines the name of the printer that you want to manage. |
-m <DriverModelName> |
Defines the driver you want to install. |
-r <PortName> |
Defines the port where the printer is connected. |
-u <UserName> -w <Password> |
Defines an account with permissions to connect to the computer that hosts the printer that you want to manage. |
/? |
Shows help at the command prompt. |
Got a programming related question? You may want to post your question here